diff roundup/backends/back_anydbm.py @ 1790:c8614db86be2

Extract confirm_registration() from client to roundupdb... ...for use in mailgw registration confirmation.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Sat, 06 Sep 2003 07:27:30 +0000
parents d2801a2b0a77
children 2724d14f0c42
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Fri Sep 05 21:05:18 2003 +0000
+++ b/roundup/backends/back_anydbm.py	Sat Sep 06 07:27:30 2003 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-#$Id: back_anydbm.py,v 1.124 2003-09-04 00:47:01 richard Exp $
+#$Id: back_anydbm.py,v 1.125 2003-09-06 07:27:30 jlgijsbers Exp $
 '''
 This module defines a backend that saves the hyperdatabase in a database
 chosen by anydbm. It is guaranteed to always be available in python
@@ -87,8 +87,10 @@
         # reindex the db if necessary
         if self.indexer.should_reindex():
             self.reindex()
+        self.figure_curuserid()
 
-        # figure the "curuserid"
+    def figure_curuserid(self):
+        """Figure out the 'curuserid'."""
         if self.journaltag is None:
             self.curuserid = None
         elif self.journaltag == 'admin':

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