From df1afd7a87930b5515b2616d8f8239add4bf3a4c Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Thu, 14 Dec 2017 18:36:20 +0100 Subject: [PATCH] add mandayejs common package (#13259) --- debian/control | 4 ++++ debian/python-mandayejs-common.install | 2 ++ debian/rules | 8 ++++++++ mandayejs/common.py | 15 +++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 debian/python-mandayejs-common.install create mode 100644 mandayejs/common.py diff --git a/debian/control b/debian/control index 72c03eb..cbbfffa 100644 --- a/debian/control +++ b/debian/control @@ -31,3 +31,7 @@ Depends: ${misc:Depends}, Recommends: nginx, phantomjs, publik-base-theme Suggests: postgresql Description: Authentication Reverse Proxy + +Package: python-mandayejs-common +Architecture: all +Description: Authentication Reverse Proxy Extra Module diff --git a/debian/python-mandayejs-common.install b/debian/python-mandayejs-common.install new file mode 100644 index 0000000..4f0341f --- /dev/null +++ b/debian/python-mandayejs-common.install @@ -0,0 +1,2 @@ +usr/lib/python2*/*-packages/mandayejs/__init__.py +usr/lib/python2*/*-packages/mandayejs/common.py diff --git a/debian/rules b/debian/rules index de1bd88..89adaba 100755 --- a/debian/rules +++ b/debian/rules @@ -6,3 +6,11 @@ %: dh $@ --with python2 + + +override_dh_install: + dh_install + # don't ship thos files in python-mandayejs, they are also in + # python-mandayejs-common + rm debian/python-mandayejs/usr/lib/python2.*/dist-packages/mandayejs/__init__.py + rm debian/python-mandayejs/usr/lib/python2.*/dist-packages/mandayejs/common.py diff --git a/mandayejs/common.py b/mandayejs/common.py new file mode 100644 index 0000000..8a7755f --- /dev/null +++ b/mandayejs/common.py @@ -0,0 +1,15 @@ +# List of MandayeJS App Settings Classes + +APP_SETTINGS_CLASSES = ( + ('mandayejs.applications.Archimed', 'Archimed'), + ('mandayejs.applications.Arpege', 'Arpege'), + ('mandayejs.applications.Duonet', 'Duonet'), + ('mandayejs.applications.Imuse', 'Imuse'), + ('mandayejs.applications.Sezhame', 'Sezhame'), + ('mandayejs.applications.Teamnet', 'Teamnet'), + ('mandayejs.applications.Test', 'Test') +) + + +def get_application_classes(): + return APP_SETTINGS_CLASSES -- 2.11.0