From: richard Date: Tue, 24 Sep 2002 01:36:04 +0000 (+0000) Subject: make import set the id counter to maxid+1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=583c4b40dbbb17696b33e6d21ed531a32730d818;p=roundup.git make import set the id counter to maxid+1 git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1218 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/admin.py b/roundup/admin.py index a73c086..ff961b7 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -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 @@ Command help: # 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):