[Mpuls-commits] r1771 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 12:41:00 CET 2010


Author: torsten
Date: 2010-02-25 12:41:00 +0100 (Thu, 25 Feb 2010)
New Revision: 1771

Added:
   wasko/branches/2.0/mpulsweb/controllers/privacy.py
Log:
* mpulsweb/controllers/privacy.py: New. Controller to handle privacy
releted things in mpuls


Added: wasko/branches/2.0/mpulsweb/controllers/privacy.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/privacy.py	2010-02-25 11:39:20 UTC (rev 1770)
+++ wasko/branches/2.0/mpulsweb/controllers/privacy.py	2010-02-25 11:41:00 UTC (rev 1771)
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+import logging
+from mpulsweb.lib.base import BaseController, render
+
+log = logging.getLogger(__name__)
+
+class PrivacyController(BaseController):
+    '''
+    Controller to handle privacy related things within mpuls. This mainly
+    includes accepting or declining the 'Childs declaration of consent' (known
+    in WASKA/WASKO) or similar. Additionally it is possible to list available
+    static statements. 
+    '''
+    def index(self):
+        return self.listStatements()
+
+    def listStatements(self):
+        '''Will render a list of available static statements related to privacy in mpuls'''
+        return render('privacy/list_statements.mako')
+
+    def accept(self, id):
+        pass
+
+    def decine(self, id):
+        pass
+
+# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8:



More information about the Mpuls-commits mailing list