Oops, the first option was incroect/buggy, but the second should work. See tests attached.
Cheers, Simon Jeff Watkins wrote: > > On 23 Apr, 2006, at 12:10 pm, Simon Belak wrote: > >> Either add it to func within (inner) require(), or to the result of >> decorator(): >> >> newfunc = decorator(require)(fn) >> newfunc._require = ... >> return newfunc > > I was doing it exactly as you demonstrate and I couldn't access the > _require attribute from the tests. > > -- > Jeff Watkins > http://newburyportion.com/ > > "Just because you have the right to do something, doesn't mean it's > the right thing to do." > -- Fred Friendly, former president of CBS News > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
test_decorator_attr.py
Description: application/python

