[Durus-users] Patch for BerkeleyDB storage backend and Durus 3.6
Jesus Cea
jcea en argo.es
Jue Nov 16 21:52:08 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The last patch has a misstype. The right patch is:
- --- 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
<<<<<
- --
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
iQCVAwUBRVzPeJlgi5GaxT1NAQLQmgQAilUVXGQuyuebnhYtoQ3wBzfkpjxzmdTC
IqinI+JcEwTd+9lwUloTkRdRPgLOalKfe4xHqbKFqdWBJLvKnJnfPmtKfHKsc3FC
7vyg17i1AWelqqzyF40mjze+ELViwsktVvX97Na3n0evU13rMVeR8LOunUFoHnQM
cTs4t+VHaK4=
=PkmX
-----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