Skip to content

Commit 8cf5450

Browse files
author
Richard Jones
committed
fixed metakit import
1 parent ad723b3 commit 8cf5450

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ are given with the most recent entry first.
44
2004-05-?? 0.7.3
55
Fixed:
66
- add "checked" to truth values for Boolean input
7+
- fixed import in metakit backend
78

89

910
2004-05-17 0.7.2

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.70.2.1 2004-05-18 22:06:08 richard 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)