I'd add a sentry function in the model to record each usage in a table
def pseudo_impersonate(impersonate arguments):
db.impersonation.insert(impersonator=auth.user_id)
auth.<impersonate function>(impersonate_arguments)
El sábado, 15 de septiembre de 2012 12:46:14 UTC-3, mweissen escribió:
>
> I have built an application where users can impersonate some others. Now I
> want to count the number of persons using this feature, i.e. I want to
> count the impersonators. Is there a place for a global variable or a static
> variable for an application?
>
> Regards, Martin
>
--