diff roundup/backends/back_metakit.py @ 916:76b783c69976

Session storage in the hyperdb was horribly, horribly inefficient. We use a simple anydbm wrapper now - which could be overridden by the metakit backend or RDB backend if necessary. Much, much better.
author Richard Jones <richard@users.sourceforge.net>
date Tue, 30 Jul 2002 08:22:38 +0000
parents 44eb237a8b3e
children fd95d395060f
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py	Tue Jul 30 05:27:30 2002 +0000
+++ b/roundup/backends/back_metakit.py	Tue Jul 30 08:22:38 2002 +0000
@@ -1,5 +1,6 @@
-from roundup import hyperdb, date, password, roundupdb
+from roundup import hyperdb, date, password, roundupdb, security
 import metakit
+from sessions import Sessions
 import re, marshal, os, sys, weakref, time, calendar
 from roundup import indexer 
 
@@ -12,13 +13,15 @@
         self.dirty = 0
         self._db = self.__open()
         self.indexer = Indexer(self.config.DATABASE, self._db)
+        self.sessions = Sessions(self.config)
+        self.security = security.Security(self)
+
         os.umask(0002)
     def post_init(self):
         if self.indexer.should_reindex():
             self.reindex()
 
     def reindex(self):
-        print "Reindexing!!!"
         for klass in self.classes.values():
             for nodeid in klass.list():
                 klass.index(nodeid)

Roundup Issue Tracker: http://roundup-tracker.org/