[Mpuls-commits] r846 - in wasko/branches/2.0: . waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jan 25 18:36:19 CET 2010


Author: bh
Date: 2010-01-25 18:36:18 +0100 (Mon, 25 Jan 2010)
New Revision: 846

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/controllers/CaseBase.py
Log:
* waskaweb/controllers/CaseBase.py: Remove commented out code


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-01-25 17:34:25 UTC (rev 845)
+++ wasko/branches/2.0/ChangeLog	2010-01-25 17:36:18 UTC (rev 846)
@@ -1,5 +1,9 @@
 2010-01-25  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/controllers/CaseBase.py: Remove commented out code
+
+2010-01-25  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/controllers/statement.py,
 	waskaweb/controllers/caselifetime.py,
 	waskaweb/controllers/case.py: Do not set c.form_navigation

Modified: wasko/branches/2.0/waskaweb/controllers/CaseBase.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-01-25 17:34:25 UTC (rev 845)
+++ wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-01-25 17:36:18 UTC (rev 846)
@@ -33,11 +33,8 @@
 
 from paste.httpexceptions       import HTTPNotFound
 from waskaweb.lib.base          import *
-#from waskaweb.lib.renderer      import FormDataImpl, ViewRenderer
 from waskaweb.lib.filecache     import FileCache 
 from waskaweb.model.case        import CaseFactory, LoadCaseNotExistsError 
-#from waskaweb.model.data        import PageNode
-#from waskaweb.model.repeatgroup import AidList 
 from waskaweb.lib.security      import checkRole
 
 log = logging.getLogger(__name__)
@@ -128,65 +125,5 @@
         except:
             return False
 
-    #@checkRole(('admin_ka', 'cm_ka', 'pt_dlr'))
-    #def select_item(self, key_id):
-    #    try:
-    #        case = session.get('case')
-    #    except KeyError:
-    #        raise HTTPNotFound()
 
-    #    ds_id = case.id
-
-    #    if case.getMode() == "show":
-    #        return self.show(ds_id, key_id)
-
-    #    return self.edit(ds_id, key_id)
-
-
-    #@checkRole('cm_ka')
-    #def edit(self, ds_id, page_id):
-    #    case_session = session.get('case')
-    #    ds_id        = self._checkInt(ds_id)
-    #    page_id      = self._checkInt(page_id)
-    #    ti           = self.getNavigation().getTreeItem(page_id)
-    #    c.ds_id      = ds_id
-    #    real_id      = ds_id
-    #    # TODO: Move repieatgroup handling in an own controller
-    #    #factory     = CaseFactory()
-    #    #c.case      = factory.loadById(ds_id)
-    #    case_session = session.get('case')
-    #    case_session.setPageId(page_id)
-    #    case_session.setMode("edit")
-    #    case_session.setPageId(page_id)
-    #    session.save()
-
-    #    c.page_id = page_id
-    #    c.print_form = "show" # Which page to open in popup on printing?
-    #    content, navigation, warnings = self._getRenderdFormElements(
-    #        ti, ds_id, page_id, ro_mode=False)
-    #    c.formular = content
-    #    c.form_navigation = navigation 
-    #    c.warnings = warnings 
-    #    return render('/casemanagement/formular.mako')
-
-
-    #@checkRole(('admin_ka', 'cm_ka', 'pt_dlr'))
-    #def show(self, ds_id, page_id):
-    #    #ds_id        = self._checkInt(ds_id)
-    #    #page_id      = self._checkInt(page_id)
-    #    ti           = self.getNavigation().getTreeItem(page_id)
-    #    c.ds_id      = ds_id
-    #    real_id      = ds_id
-    #    c.page_id    = page_id
-    #    c.print_form = "show" # Which page to open in popup on printing?
-    #    case_session = session.get('case')
-    #    case_session.setPageId(page_id)
-    #    case_session.setMode("show")
-    #    session.save()
-    #    content, navigation, warnings = self._getRenderdFormElements(ti, ds_id, page_id, ro_mode=True)
-    #    c.formular = content
-    #    c.form_navigation = navigation 
-    #    c.warnings = warnings 
-    #    return render('/casemanagement/formular.mako')
-
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list