webpyapp: bootstrap facilité des sessions
This commit is contained in:
parent
c541958828
commit
46fbec7974
|
@ -9,6 +9,10 @@ class Server(Application):
|
||||||
def __init__(self, basedir=None, templatedir=None, host=None, port=None, debug=None):
|
def __init__(self, basedir=None, templatedir=None, host=None, port=None, debug=None):
|
||||||
Application.__init__(self, basedir, templatedir, host, port, debug)
|
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):
|
class index(Page):
|
||||||
PREFIX = r'/'
|
PREFIX = r'/'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
/*
|
||||||
|
!/.gitignore
|
Loading…
Reference in New Issue