Nadav Samet wrote:
(A) works with multiple decorators in the following way:
def validated_number(self, number=2):
...
validated_number=validate(validators={..})(validated_number)
validated_number=error_handler(index)(validaterd_number)
validated_number=expose()(validaterd_number)
Thanks for your hint. I did not thought of the python magic behind the
scenes. If validated_number was just an ordinary attribute, its value
would have been overwritten which was the reason for my confusion.
But thanks again, works perfectly on Python 2.3.
--
Felix
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---