Skip to content

Commit dc42d0e

Browse files
author
Brian Kelley
committed
setid now works so import/export is now enabled in the metakit backend.
The next step is speed improvements!
1 parent 349eaea commit dc42d0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/backends/back_metakit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.70 2004-04-02 05:58:45 richard Exp $
1+
# $Id: back_metakit.py,v 1.71 2004-05-18 15:17:19 wc2so1 Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -339,7 +339,8 @@ def __open(self):
339339
def setid(self, classname, maxid):
340340
''' No-op in metakit
341341
'''
342-
pass
342+
cls = self.getclass(classname)
343+
cls.setid(int(maxid))
343344

344345
def numfiles(self):
345346
'''Get number of files in storage, even across subdirectories.
@@ -410,6 +411,9 @@ def __init__(self, db, classname, **properties):
410411
# default is to journal changes
411412
self.do_journal = 1
412413

414+
def setid(self, maxid):
415+
self.maxid = maxid + 1
416+
413417
def enableJournalling(self):
414418
'''Turn journalling on for this class
415419
'''

0 commit comments

Comments
 (0)