On Fri, Apr 11, 2003 at 11:51:42AM +0100, Toby Dickenson wrote:
I am pleased to announce the release of DirectoryStorage version 1.1.0.
I'm not able to convert an existing Data.fs into DirectoryStorage data using the conversion script given in the FAQ: it fails with an exception on the copyTransactionsFrom() call: restore() takes exactly 6 arguments (7 given) It looks like the FileStorage.restore() function in Zope 2.6.1 has a 'prev_txn' parameter with no counterpart in DirectoryStorage.Full.restore(). -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA
Me neither ;-) I also got a different error complaining about a sequence thing... sorry I forgot the exact error message. I had to export/import tons of objects. Maby this could be another FAQ candidate, Toby? Always grateful for this wonderful product, Wankyu Choi --------------------------------------------------------------- Wankyu Choi CEO/President NeoQuest Communications, Inc. http://www.zoper.net http://www.neoboard.net --------------------------------------------------------------- -----Original Message----- From: dirstorage-users-admin@lists.sourceforge.net [mailto:dirstorage-users-admin@lists.sourceforge.net] On Behalf Of Fred Yankowski Sent: Saturday, April 12, 2003 1:09 AM To: dirstorage-users@lists.sourceforge.net Cc: zope@zope.org Subject: [Dirstorage-users] Re: [Zope-Annce] DirectoryStorage 1.1.0 On Fri, Apr 11, 2003 at 11:51:42AM +0100, Toby Dickenson wrote:
I am pleased to announce the release of DirectoryStorage version 1.1.0.
I'm not able to convert an existing Data.fs into DirectoryStorage data using the conversion script given in the FAQ: it fails with an exception on the copyTransactionsFrom() call: restore() takes exactly 6 arguments (7 given) It looks like the FileStorage.restore() function in Zope 2.6.1 has a 'prev_txn' parameter with no counterpart in DirectoryStorage.Full.restore(). -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ dirstorage-users mailing list dirstorage-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dirstorage-users
On Friday 11 April 2003 17:08, Fred Yankowski wrote:
On Fri, Apr 11, 2003 at 11:51:42AM +0100, Toby Dickenson wrote:
I am pleased to announce the release of DirectoryStorage version 1.1.0.
I'm not able to convert an existing Data.fs into DirectoryStorage data using the conversion script given in the FAQ: it fails with an exception on the copyTransactionsFrom() call:
restore() takes exactly 6 arguments (7 given)
It looks like the FileStorage.restore() function in Zope 2.6.1 has a 'prev_txn' parameter with no counterpart in DirectoryStorage.Full.restore().
Untested, but try this: Index: Full.py =================================================================== RCS file: /cvsroot/dirstorage/DirectoryStorage/Full.py,v retrieving revision 1.33 diff -c -1 -r1.33 Full.py *** Full.py 24 Feb 2003 12:01:23 -0000 1.33 --- Full.py 12 Apr 2003 10:05:50 -0000 *************** *** 86,88 **** ! def restore(self, oid, serial, data, version, transaction): # The following comment taken from FileStorage: --- 86,88 ---- ! def restore(self, oid, serial, data, version, prev_txn, transaction): # The following comment taken from FileStorage: *************** *** 102,103 **** --- 102,107 ---- # (i.e. one who's creation has been transactionally undone). + # + # - prev_txn is a hint that an identical pickle has been stored + # for the same oid in a previous transaction. Some other storages + # use this to enable a space-saving optimisation. We dont. #
On Sat, Apr 12, 2003 at 11:06:14AM +0100, Toby Dickenson wrote:
It looks like the FileStorage.restore() function in Zope 2.6.1 has a 'prev_txn' parameter with no counterpart in DirectoryStorage.Full.restore().
Untested, but try this:
Index: Full.py ...
I applied that patch and now the conversion script completes without trouble and the DirectoryStorage directory area is much larger. I have not yet tried running Zope from that DirectoryStorage data; I'll try that tomorrow. Thanks for the help. -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 11 April 2003 5:08 pm, Fred Yankowski wrote:
On Fri, Apr 11, 2003 at 11:51:42AM +0100, Toby Dickenson wrote:
I am pleased to announce the release of DirectoryStorage version 1.1.0.
I'm not able to convert an existing Data.fs into DirectoryStorage data using the conversion script given in the FAQ: it fails with an exception on the copyTransactionsFrom() call:
restore() takes exactly 6 arguments (7 given)
It looks like the FileStorage.restore() function in Zope 2.6.1 has a 'prev_txn' parameter with no counterpart in DirectoryStorage.Full.restore().
OK, there is a 1.1.1 on sourceforge containing the fix for this. For reference, the fix is as posted in this article: http://sourceforge.net/mailarchive/message.php?msg_id=4337795 - -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+mmgt99Pa/DbwZfsRAv8mAKCjnQMoHR3r5SHjvgVsW02AdrM0nQCgh5F6 /vbhPiWanu7XtEQ8YgW11sk= =x1Ny -----END PGP SIGNATURE-----
participants (4)
-
Fred Yankowski -
Toby Dickenson -
Toby Dickenson -
Wankyu Choi