Code

fix Link HTML field()
[roundup.git] / roundup / roundupdb.py
index f286dbd2181ef9331098fe6c77d8cc6bd9f3329d..00838061f54211cf90d8c8a51865dad1405f521f 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundupdb.py,v 1.101 2004-03-15 05:50:19 richard Exp $
+# $Id: roundupdb.py,v 1.103 2004-03-22 00:15:34 richard Exp $
 
 """Extending hyperdb with types specific to issue-tracking.
 """
@@ -60,7 +60,7 @@ class Database:
         return timezone
 
     def confirm_registration(self, otk):
-        props = self.otks.getall(otk)
+        props = self.getOTKManager().getall(otk)
         for propname, proptype in self.user.getprops().items():
             value = props.get(propname, None)
             if value is None:
@@ -80,10 +80,9 @@ class Database:
         cl = self.user
       
         props['roles'] = self.config.NEW_WEB_USER_ROLES
-        del props['__time']
         userid = cl.create(**props)
         # clear the props from the otk database
-        self.otks.destroy(otk)
+        self.getOTKManager().destroy(otk)
         self.commit()
         
         return userid
@@ -350,7 +349,7 @@ class IssueClass:
             self.db.config.TRACKER_EMAIL))
 
         line = '_' * max(len(web)+2, len(email))
-        return '%s\n%s\n<%s>\n%s'%(line, email, web, line)
+        return '\n%s\n%s\n<%s>\n%s'%(line, email, web, line)
 
 
     def generateCreateNote(self, nodeid):