on trunk there is such a function, however it takes only user as a parameter
if onlogout:
onlogout(self.user)
On Thursday, March 21, 2013 6:48:40 PM UTC+1, Richard wrote:
>
> I don't see any decaration of on_logout in web2py 2.3.2, search the book
> for on_logout lead to nothing either...
>
> Could it be your own custom function??
>
> Richard
>
>
> On Thu, Mar 21, 2013 at 3:08 AM, Annet <[email protected]<javascript:>
> > wrote:
>
>> After upgrading to web2py version 2.4.4 this no longer works:
>>
>> auth.settings.logout_onlogout = lambda user: on_logout(auth,session)
>>
>> I get the following error:
>>
>> global name 'on_logout' is not defined.
>>
>> on_logout(auth,session) is a function in a module which clears all the
>> settings
>>
>> of the cms part of my application.
>>
>> Is there another way to call on_logout(auth,session) in web2py 2.4.4?
>>
>>
>> Kind regards,
>>
>> Annet
>>
>>
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.