webpyapp: bootstrap facilité des sessions

This commit is contained in:
Jephté Clain 2017-07-19 23:45:26 +04:00
parent c541958828
commit 46fbec7974
3 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,10 @@ class Server(Application):
def __init__(self, basedir=None, templatedir=None, host=None, port=None, debug=None):
Application.__init__(self, basedir, templatedir, host, port, debug)
def _new_session(self):
pass # décommenter la ligne suivante pour activer les sessions
#return web.session.DiskStore('sessions'), {}
class index(Page):
PREFIX = r'/'

View File

@ -0,0 +1,2 @@
/*
!/.gitignore