[Mpuls-commits] r1035 - wasko/branches/2.0/waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 1 11:04:48 CET 2010


Author: torsten
Date: 2010-02-01 11:04:48 +0100 (Mon, 01 Feb 2010)
New Revision: 1035

Modified:
   wasko/branches/2.0/waskaweb/model/casedocument.py
Log:
* waskaweb/model/casedocument.py (PageCache): Deleted. Class is not
referenced anymore.


Modified: wasko/branches/2.0/waskaweb/model/casedocument.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/casedocument.py	2010-02-01 10:02:53 UTC (rev 1034)
+++ wasko/branches/2.0/waskaweb/model/casedocument.py	2010-02-01 10:04:48 UTC (rev 1035)
@@ -53,21 +53,6 @@
 def leave(cache=None):
     page_cache._pop_object(cache)
 
-class PageCache(object):
-
-    def __init__(self):
-        self.pages = {}
-
-    def getPageStore(self, formed, name, ds_id):
-        try:
-            return self.pages[name+':'+str(ds_id)]
-        except KeyError:
-            nc = formed.findByClassAndName(PageNode, name)
-            db_view = "%s_view" % name.replace('-', '_')
-            page = PageStore(db_view, nc, ds_id)
-            self.pages[name+':'+str(ds_id)] = page
-            return page
-
 class DataSaveException(Exception):
 
     def __init__(self, desc, errors = None):



More information about the Mpuls-commits mailing list