[Checkins] SVN: zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/ Remove some unused code.
Sylvain Viollon
sylvain at infrae.com
Thu Nov 5 08:00:56 EST 2009
Log message for revision 105495:
Remove some unused code.
Changed:
U zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/serialize.py
U zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/update.py
-=-
Modified: zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/serialize.py
===================================================================
--- zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/serialize.py 2009-11-05 12:36:27 UTC (rev 105494)
+++ zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/serialize.py 2009-11-05 13:00:55 UTC (rev 105495)
@@ -18,7 +18,7 @@
information at that point as well.
"""
- def __init__(self, storage, changes):
+ def __init__(self, changes):
self.__cache = dict()
self.__changes = dict()
for old, new in changes.iteritems():
@@ -31,9 +31,6 @@
self.__changed = True
return find_global(*names)
- def __factory(self, nothing, modulename, globalname):
- return self.__find_global(modulename, globalname)
-
def __persistent_load(self, reference):
if isinstance(reference, tuple):
oid, klass = reference
Modified: zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/update.py
===================================================================
--- zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/update.py 2009-11-05 12:36:27 UTC (rev 105494)
+++ zodbupdate/branches/sylvain-persistent-load/src/zodbupdate/update.py 2009-11-05 13:00:55 UTC (rev 105495)
@@ -32,7 +32,7 @@
def __init__(self, storage, dry=False, renames=None):
self.dry = dry
self.storage = storage
- self.update = zodbupdate.serialize.ObjectRenamer(storage, renames or {})
+ self.update = zodbupdate.serialize.ObjectRenamer(renames or {})
def __call__(self):
t = transaction.Transaction()
More information about the checkins
mailing list