I think this should be considered a bug. Than you check trunk? On Sunday, 29 July 2012 05:37:51 UTC-5, weheh wrote: > > I haven't traced through all the code carefully, but is_impersonating() > returns current.session.auth.impersonator, which is based on a cPickle. So > you're not getting a boolean, as you might be led to expect from the name > of the function. > > > On Sunday, July 29, 2012 1:38:42 PM UTC+8, mweissen wrote: >> >> I am using "impersonate" (great idea!) and I have a menu item which >> should only appear when somebody is impersonated. I wrote >> >> ('end impersonate', False, URL('endimpersonate'),[],* >> auth.is_impersonating()*) >> >> This did notwork, I had to write >> >> ('end impersonate', False, URL('endimpersonate'),[],* >> auth.is_impersonating()!=None*) >> >> Why? >> Regards, Martin >> >>
--