>
> Note that another approach would be to put your _no_trans on
> cherrypy.request.
That solves part of the problem. (func_original returning not the
original function)
This is a two part problem though.
The 2nd part of the problem is that the condition is not being
evaluated at call time. In my debugging, the condition for rwt.when is
being evaluated when it is loaded.
example: @run_with_transaction.when('True')
will call my no_trans method.
but
@run_with_transaction.when('getattr(cherrypy.request,"_no_trans",False)')
will not call the no_trans method even thought the _no_trans attr is
set by the decorator at run time.
I haven't come up with a solution for that part of the problem yet.
BTW, I agree that perhaps the decorators need an overhaul or re-think.
Thanks
Dennis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---