Skip to content

Commit 01f0ef6

Browse files
author
Richard Jones
committed
import fixes
1 parent e65117b commit 01f0ef6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

roundup/backends/rdbms_common.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.12 2002-09-23 07:15:32 richard Exp $
1+
# $Id: rdbms_common.py,v 1.13 2002-09-23 08:17:05 richard Exp $
22

33
# standard python modules
44
import sys, os, time, re, errno, weakref, copy
@@ -1144,18 +1144,22 @@ def import_list(self, propnames, proplist):
11441144
value = pwd
11451145
d[propname] = value
11461146

1147+
# add the node and journal
1148+
self.db.addnode(self.classname, newid, d)
1149+
11471150
# extract the extraneous journalling gumpf and nuke it
11481151
if d.has_key('creator'):
11491152
creator = d['creator']
11501153
del d['creator']
1154+
else:
1155+
creator = None
11511156
if d.has_key('creation'):
11521157
creation = d['creation']
11531158
del d['creation']
1159+
else:
1160+
creation = None
11541161
if d.has_key('activity'):
11551162
del d['activity']
1156-
1157-
# add the node and journal
1158-
self.db.addnode(self.classname, newid, d)
11591163
self.db.addjournal(self.classname, newid, 'create', d, creator,
11601164
creation)
11611165
return newid

0 commit comments

Comments
 (0)