From d1a1d4d664c6b10e635146b9c535822c41c0307b Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 20 Jul 2017 00:16:02 +0400 Subject: [PATCH] webpyapp: cosmetic --- lib/ulib/templates/webpyapp/lib/__init__.py | 4 ++++ lib/ulib/templates/webpyapp/server.py | 2 +- lib/ulib/templates/webpyapp/sessions/.gitignore | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 lib/ulib/templates/webpyapp/lib/__init__.py diff --git a/lib/ulib/templates/webpyapp/lib/__init__.py b/lib/ulib/templates/webpyapp/lib/__init__.py new file mode 100644 index 0000000..9d853e8 --- /dev/null +++ b/lib/ulib/templates/webpyapp/lib/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 mode: python -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 + +__all__ = () + diff --git a/lib/ulib/templates/webpyapp/server.py b/lib/ulib/templates/webpyapp/server.py index ea2c9d7..b661a11 100755 --- a/lib/ulib/templates/webpyapp/server.py +++ b/lib/ulib/templates/webpyapp/server.py @@ -7,7 +7,7 @@ from ulib.web import web, Application, Page, defaults class Server(Application): def __init__(self, basedir=None, templatedir=None, host=None, port=None, debug=None): - Application.__init__(self, basedir, templatedir, host, port, debug) + super(Server, self).__init__(basedir, templatedir, host, port, debug) def _new_session(self): pass # décommenter la ligne suivante pour activer les sessions diff --git a/lib/ulib/templates/webpyapp/sessions/.gitignore b/lib/ulib/templates/webpyapp/sessions/.gitignore index a68d087..479aeb7 100644 --- a/lib/ulib/templates/webpyapp/sessions/.gitignore +++ b/lib/ulib/templates/webpyapp/sessions/.gitignore @@ -1,2 +1,3 @@ /* +/*/ !/.gitignore