You'll get something that looks more like what your were expecting if you
modify your example thus:
-----------------------------------------------------------
class entryExit(object): def __init__(self, f): self.f = f def
__call__(self): print "Entering", self.f.__name__ x = self.f() print
"Exited", self.f.__name__ return x def index(): response.flash=T('Welcome to
web2py') return dict(message=T('Hello World 1')) @entryExit def index2():
response.flash=T('Welcome to web2py') return dict(message=T('Hello World
2'))



> On Fri, Dec 19, 2008 at 4:21 PM, yarko <[email protected]> wrote:
>
>>
>>
>> On Dec 19, 3:00 pm, "Yarko Tymciurak" <[email protected]> wrote:
>> > cjparson:
>> >
>> ok - so maybe it is _I_ who do not 'get' decorators (having just spent
>> some time looking over those links I like "so much" ha!)
>>
>> But in any case, your contoller file is read, and your print shown for
>> reasons given....
>>
>> Decorator links I've been lookint at with my "humble pie" -
>> http://www.artima.com/weblogs/viewpost.jsp?thread=240808
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to