diff --git a/lib/ulib/templates/webpyapp/server.py b/lib/ulib/templates/webpyapp/server.py index 38ff7ae..ea2c9d7 100755 --- a/lib/ulib/templates/webpyapp/server.py +++ b/lib/ulib/templates/webpyapp/server.py @@ -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'/' diff --git a/lib/ulib/templates/webpyapp/sessions/.gitignore b/lib/ulib/templates/webpyapp/sessions/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/lib/ulib/templates/webpyapp/sessions/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore diff --git a/lib/ulib/templates/webpyapp/sessions/.keep b/lib/ulib/templates/webpyapp/sessions/.keep deleted file mode 100644 index e69de29..0000000