def setup_handlers(self, map): """setup the mapper""" map.connect(None, "/login", handler=login.Login) map.connect(None, "/logout", handler=login.Logout) map.connect(None, "/kontakt.html", handler=contact.Contact) map.connect(None, "/welcome", handler=welcome.Welcome) map.connect(None, "/f", handler=Fehler) map.connect(None, "/teilnehmer.html", handler=participants.Participants) map.connect(None, "/css/{path_info:.*}", handler=StaticHandler) map.connect(None, "/js/{path_info:.*}", handler=StaticHandler) map.connect(None, "/img/{path_info:.*}", handler=StaticHandler) map.connect(None, "/", handler=Page) map.connect(None, "/{page}", handler=Page) users.setup_handlers(map) themen.setup_handlers(map) doku.setup_handlers(map)
def setup_handlers(self, map): """setup the mapper""" map.connect(None, "/login", handler=login.Login) map.connect(None, "/logout", handler=login.Logout) map.connect(None, "/kontakt.html", handler=contact.Contact) map.connect(None, "/welcome", handler=welcome.Welcome) map.connect(None, "/f", handler=Fehler) map.connect(None, "/teilnehmer.html", handler=participants.Participants) map.connect(None, "/css/{path_info:.*}", handler=StaticHandler) map.connect(None, "/js/{path_info:.*}", handler=StaticHandler) map.connect(None, "/img/{path_info:.*}", handler=StaticHandler) map.connect(None, "/", handler=Page) map.connect(None, "/{page}", handler=Page) users.setup_handlers(map) themen.setup_handlers(map) doku.setup_handlers(map)
def setup_handlers(map): """setup the handlers""" with map.submapper(path_prefix="/api/1/users") as m: m.connect(None, '/names', handler=usermanager.Names) m.connect(None, '/login', handler=usermanager.Login) m.connect(None, '/token', handler=usermanager.Token) m.connect(None, '/u/{username}/profile', handler=usermanager.PoCo) """ with map.submapper(path_prefix="/api/1/tweets") as m: #m.connect(None, '/{path_info:.*}', handler = content.ContentHandler) # routes for now which use GET and POST on tweets m.connect(None, '/', handler = content.ContentHandler) m.connect(None, '/{tweet_id}', handler = content.TweetHandler, conditions=dict(method=["GET"])) """ users.setup_handlers(map) content.setup_handlers(map)