Example #1
0
 def GET(self, ein, slug=None):
     try:
         p = schema.Exempt_Org.select(where='ein=$ein', vars=locals())[0]
     except IndexError:
         raise web.notfound()
     if slug != '/' + helpers.urlify(p.primary_name):
         raise web.redirect('/ein/%s/%s' % (ein, helpers.urlify(p.primary_name)))
     return render.exempt_org(p)
Example #2
0
 def GET(self, ein, slug=None):
     try:
         p = schema.Exempt_Org.select(where='ein=$ein', vars=locals())[0]
     except IndexError:
         raise web.notfound()
     if slug != '/' + helpers.urlify(p.primary_name):
         raise web.redirect('/ein/%s/%s' %
                            (ein, helpers.urlify(p.primary_name)))
     return render.exempt_org(p)
Example #3
0
 def index(self):
     #/ein/\d+/.*
     return ('/ein/%s/%s' % (p.ein, helpers.urlify(p.primary_name))
             for p in db.query('select ein, primary_name from exempt_org'))
Example #4
0
 def index(self):
     #/ein/\d+/.*
     return ('/ein/%s/%s' % (p.ein, helpers.urlify(p.primary_name))
             for p in db.query('select ein, primary_name from exempt_org'))