Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def url_for(self, action, controller='/character', **kwargs):
- kwargs.update({'action':action, 'controller':controller})
- if self.shortname:
- kwargs.update({'shortname':self.shortname})
- else:
- kwargs.update({'furid':self.furid})
- return h.url_for(**kwargs)
- def blog_post_url(self, slug):
- return self.url_for(controller='blog', action='view', slug=slug)
- ERROR:
- Module furboo.model:445 in blog_post_url
- >> return self.url_for(controller='blog', action='view', slug=slug)
- Module furboo.model:430 in url_for
- >> return h.url_for(**kwargs)
- Module routes.util:189 in url_for
- >> url = config.mapper.generate(*route_args, **newargs)
- Module routes.base:949 in generate
- >> path = route.generate(**kargs)
- Module routes.base:511 in generate
- >> urllist.append(url_quote(val, self.encoding))
- Module routes.util:82 in _url_quote
- >> return urllib.quote_plus(unicode(string).encode(encoding), '/')
- Module mako.runtime:91 in __str__
- >> raise NameError("Undefined")
- <type 'exceptions.NameError'>: Undefined
Add Comment
Please, Sign In to add comment