controlling method execution
mic
aldo123 at onet.pl
Thu Nov 20 03:37:11 EST 2003
More information about the Python-list mailing list
Thu Nov 20 03:37:11 EST 2003
- Previous message (by thread): It's a bug!...But is it me or the script?
- Next message (by thread): controlling method execution
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is it possible to control method exectution using similiar mechanism as with get/setatrribute special methods for attributes? I'd like to have every (or some of ) method of class instance run common code defined outside the class without making any explicit references to it. To give an example, I'd like to prepare secure environment, in which users could execute only methods that can be accessed by them. IMO the most universal way to do it would be to run automatically authorisation routine before every method execution. Regards, Michal
- Previous message (by thread): It's a bug!...But is it me or the script?
- Next message (by thread): controlling method execution
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list