Hi!
Thanks for your help!
I wrote same thing in modpy. My module is check the request, load the
rights for the requested page, and determine what's happening.
But your libraries seems to be better than my own.
Last question:
Can I get the current controller object/current controller procedure?
Example:
...XController:
def index(self):
callmain()
...
def main(self):
callmain()
...
def about(self):
callmain()
...
callmain is a global procedure. It it I want to something that is
depend on the current controller, and the current procedure; but I
don't want to pass them as parameters (example: callmain(self,
'about')).
Can I reproduce the the controller object itself, and the caller
procedure name from any global variable of Pylons?
Example:
pylons.main.currentcontroller
pylons.main.currentcontrollerproc
I want know that I need to traverse the request path, or pylons is
store it in a global variable?
Thanks for your help:
dd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---