diff roundup/roundupdb.py @ 2906:a8808157f892

fix some bugs introduced in refactoring of blobfiles filename() unless in debug mode, keep a single persistent connection through a single web or mailgw request fix enabling of DEBUG logging in db_test_case (no cmdline switch yet)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 12 Nov 2004 04:07:05 +0000
parents 3468f74bd7ce
children 3475ae520f19 708ce3b664d4
line wrap: on
line diff
--- a/roundup/roundupdb.py	Thu Nov 11 21:36:07 2004 +0000
+++ b/roundup/roundupdb.py	Fri Nov 12 04:07:05 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: roundupdb.py,v 1.116 2004-10-16 13:31:29 a1s Exp $
+# $Id: roundupdb.py,v 1.117 2004-11-12 04:07:03 richard Exp $
 
 """Extending hyperdb with types specific to issue-tracking.
 """
@@ -55,6 +55,17 @@
                 self.journal_uid = (self.journaltag, uid)
             return self.journal_uid[1]
 
+    def setCurrentUser(self, username):
+        """Set the user that is responsible for current database 
+        activities.
+        """
+        self.journaltag = username
+
+    def isCurrentUser(self, username):
+        """Check if a given username equals the already active user.
+        """
+        return self.journaltag == username
+    
     def getUserTimezone(self):
         """Return user timezone defined in 'timezone' property of user class.
         If no such property exists return 0

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