My views['database/list'] receive the decorated function not the '/',
look:
url_map = Map()
views = {}
def expose(rule, endpoint, **kwargs):
def decorate(f):
epoint = endpoint
views[epoint] = f
url_map.add(Rule(rule, endpoint=epoint, **kwargs))
return f
return decorate
epoin == endpoint == 'database/list'
views[epoint] = f (wich is the decorated function to be called on
application.py):
view = views[endpoint]
response = view(request, **values)
On 5 dez, 08:54, "Rodrigo Moraes" <[EMAIL PROTECTED]> wrote:
> hey,
> apparently, you are not mapping 'database/list' to any valid module.
> views['database/list'] = '/'?
>
> -- rodrigo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---