ok, I think I´m onto something:
def dec(func):
def wrapper(*vars):
print "About to call decorated function %s." %
func.func_name
print request.environ["HTTP_REFERER"]
return render_response(request.environ["HTTP_REFERER"])
print "decorator"
return wrapper
this tries to call the function it was decoration but cannot find the
template
>> raise exceptions.TopLevelLookupException("Cant locate template for uri
>> '%s'" % uri)
mako.exceptions.TopLevelLookupException: Cant locate template for uri
'http://localhost:5000/home'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---