summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83eee27)
raw | patch | inline | side by side (parent: 83eee27)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 6 Sep 2003 20:02:23 +0000 (20:02 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 6 Sep 2003 20:02:23 +0000 (20:02 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1861 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history | |
roundup/backends/rdbms_common.py | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
index 86b25101a0f1d93853cac4e046f682aa2452cce0..0eaf60593f2816a38fe93eac8675de340d67e4c8 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.125 2003-09-06 07:27:30 jlgijsbers Exp $
+#$Id: back_anydbm.py,v 1.126 2003-09-06 20:01:10 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
self.reindex()
self.figure_curuserid()
- def figure_curuserid(self):
- """Figure out the 'curuserid'."""
- if self.journaltag is None:
- self.curuserid = None
- elif self.journaltag == 'admin':
- # admin user may not exist, but always has ID 1
- self.curuserid = '1'
- else:
- self.curuserid = self.user.lookup(self.journaltag)
-
def reindex(self):
for klass in self.classes.values():
for nodeid in klass.list():
index 1bdec79c8153a4dc70929a75d420bc7ddd5040b5..216fce963e14eaefd2734697688a2b44516f5d16 100644 (file)
-# $Id: rdbms_common.py,v 1.60 2003-09-04 00:47:01 richard Exp $
+# $Id: rdbms_common.py,v 1.61 2003-09-06 20:01:10 jlgijsbers Exp $
''' Relational database (SQL) backend common code.
Basics:
# commit
self.conn.commit()
- # figure the "curuserid"
- if self.journaltag is None:
- self.curuserid = None
- elif self.journaltag == 'admin':
- # admin user may not exist, but always has ID 1
- self.curuserid = '1'
- else:
- self.curuserid = self.user.lookup(self.journaltag)
+ self.figure_curuserid()
def reindex(self):
for klass in self.classes.values():
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 00b6092b602dee2ab5045a75c3e6c1bc04b268bc..14e0622d491b9a80918d3fe9c069422220198615 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundupdb.py,v 1.87 2003-09-06 07:27:30 jlgijsbers Exp $
+# $Id: roundupdb.py,v 1.88 2003-09-06 20:02:23 jlgijsbers Exp $
__doc__ = """
Extending hyperdb with types specific to issue-tracking.
timezone = 0
return timezone
+ def figure_curuserid(self):
+ """Figure out the 'curuserid'."""
+ if self.journaltag is None:
+ self.curuserid = None
+ elif self.journaltag == 'admin':
+ # admin user may not exist, but always has ID 1
+ self.curuserid = '1'
+ else:
+ self.curuserid = self.user.lookup(self.journaltag)
+
def confirm_registration(self, otk):
props = self.otks.getall(otk)
for propname, proptype in self.user.getprops().items():