Patch for BerkeleyDB storage backend and Durus 3.6
Jesus Cea
jcea en argo.es
Jue Nov 16 21:27:39 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am not ready to release a new version of my BerkeleyDB Storage Engine
for Durus just now, but the patch to make it works under just released
Durus 3.6 is fairly trivial:
>>>>>
- --- berkeleydb_storage.py (revision 245)
+++ berkeleydb_storage.py (revision 246)
@@ -11,7 +11,7 @@
# This product is covered by the GNU PUBLIC LICENSE, VERSION 2.
# For more detailt, read the file "LICENSE" in the distribution.
- -__version__="20061023"
+__version__="20061116"
# Try to use the newest
@@ -498,8 +498,11 @@
def get_size(self) :
return self._count
- - def gen_oid_record(self) :
+ def gen_oid_record(self, start_oid=None, batch_size=100):
+ if start_oid==None : # Call the generic code
+ for i in Storage.gen_oid_record(start_oid,batch_size) :
+ yield i
+ return
+
# Don't do any writing while you are iterating, since
<<<<<
This patch, applied to my last release, will do the magic.
A storage so patched IS STILL *COMPATIBLE* with previous Durus releases.
My next official release will only work under Durus 3.6 and up.
More info in
http://www.argo.es/~jcea/programacion/durus-berkeleydbstorage.htm
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea en argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea en jabber.org _/_/ _/_/ _/_/_/_/_/
_/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRVzJu5lgi5GaxT1NAQI6QwP/WXf0JXOfRX5visWXR2lz0tRSfnsK6tTL
DGsOxj0ybXVbunHdVm+78OU5OXx6ee9bTmD4a27sMSnsAtytfKuXBE+x1zI7dOvS
Ndk29FRt5EXIoPFqy1mBj1S81I4FmNykKe7Ojc/WdM0rNABxbA7dEci+zrUc4YaE
TfW7BQ8w430=
=anJF
-----END PGP SIGNATURE-----
------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es
Más información sobre la lista de distribución Python-es