Skip to content

Commit 84f38e6

Browse files
author
Richard Jones
committed
make import set the id counter to maxid+1
1 parent 88b46de commit 84f38e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.31 2002-09-18 05:07:47 richard Exp $
19+
# $Id: admin.py,v 1.32 2002-09-24 01:36:04 richard Exp $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex, shutil
2222
try:
@@ -931,8 +931,8 @@ class to import.
931931
# do the import and figure the current highest nodeid
932932
maxid = max(maxid, int(cl.import_list(propnames, l)))
933933

934-
print 'setting', classname, maxid
935-
self.db.setid(classname, str(maxid))
934+
print 'setting', classname, maxid+1
935+
self.db.setid(classname, str(maxid+1))
936936
return 0
937937

938938
def do_pack(self, args):

0 commit comments

Comments
 (0)