daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest May 17th, 2018 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def url_for(self, action, controller='/character', **kwargs):
  2.         kwargs.update({'action':action, 'controller':controller})
  3.         if self.shortname:
  4.             kwargs.update({'shortname':self.shortname})
  5.         else:
  6.             kwargs.update({'furid':self.furid})
  7.         return h.url_for(**kwargs)
  8.  
  9.     def blog_post_url(self, slug):
  10.         return self.url_for(controller='blog', action='view', slug=slug)
  11.  
  12.  
  13. ERROR:
  14. Module furboo.model:445 in blog_post_url        
  15. >>  return self.url_for(controller='blog', action='view', slug=slug)
  16. Module furboo.model:430 in url_for        
  17. >>  return h.url_for(**kwargs)
  18. Module routes.util:189 in url_for        
  19. >>  url = config.mapper.generate(*route_args, **newargs)
  20. Module routes.base:949 in generate        
  21. >>  path = route.generate(**kargs)
  22. Module routes.base:511 in generate        
  23. >>  urllist.append(url_quote(val, self.encoding))
  24. Module routes.util:82 in _url_quote        
  25. >>  return urllib.quote_plus(unicode(string).encode(encoding), '/')
  26. Module mako.runtime:91 in __str__        
  27. >>  raise NameError("Undefined")
  28. <type 'exceptions.NameError'>: Undefined
RAW Paste Data
Top