changeset 1194:d76b3f8d7bc4

make import set the id counter to maxid+1
author Richard Jones <richard@users.sourceforge.net>
date Tue, 24 Sep 2002 01:36:04 +0000
parents 190bbd89b4b8
children e0032f4ab334
files roundup/admin.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/admin.py	Mon Sep 23 22:03:51 2002 +0000
+++ b/roundup/admin.py	Tue Sep 24 01:36:04 2002 +0000
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: admin.py,v 1.31 2002-09-18 05:07:47 richard Exp $
+# $Id: admin.py,v 1.32 2002-09-24 01:36:04 richard Exp $
 
 import sys, os, getpass, getopt, re, UserDict, shlex, shutil
 try:
@@ -931,8 +931,8 @@
                 # do the import and figure the current highest nodeid
                 maxid = max(maxid, int(cl.import_list(propnames, l)))
 
-            print 'setting', classname, maxid
-            self.db.setid(classname, str(maxid))
+            print 'setting', classname, maxid+1
+            self.db.setid(classname, str(maxid+1))
         return 0
 
     def do_pack(self, args):

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