From b02a4830aa756d66176b909cdd04a91ac04d031d Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 23 Sep 2002 08:17:05 +0000 Subject: [PATCH] import fixes git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1211 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/rdbms_common.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index f3d6821..b5572e3 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.12 2002-09-23 07:15:32 richard Exp $ +# $Id: rdbms_common.py,v 1.13 2002-09-23 08:17:05 richard Exp $ # standard python modules import sys, os, time, re, errno, weakref, copy @@ -1144,18 +1144,22 @@ class Class(hyperdb.Class): value = pwd d[propname] = value + # add the node and journal + self.db.addnode(self.classname, newid, d) + # extract the extraneous journalling gumpf and nuke it if d.has_key('creator'): creator = d['creator'] del d['creator'] + else: + creator = None if d.has_key('creation'): creation = d['creation'] del d['creation'] + else: + creation = None if d.has_key('activity'): del d['activity'] - - # add the node and journal - self.db.addnode(self.classname, newid, d) self.db.addjournal(self.classname, newid, 'create', d, creator, creation) return newid -- 2.30.2