[ZODB-Dev] micro patch to OFS
Russ Ferriday
russf at topia.com
Sun Jul 23 12:28:23 EDT 2006
Hello all!
I've spent a frustrating hour tracing the repercussions of a module
name change in a Product on Zope 2.9.3. The problem was visible only
on uninstall.
No need to go into all the details, but the tiny piece of additional
information (in this case, the class name) given by this patch gave
me just the clue I needed. To make things easier for the next guy, I
offer it for inclusion, with no reservations.
Would one of you Zope committers like to vet and apply it?
In zope/lib/python/OFS:
diff -u Uninstalled.py.orig Uninstalled.py
--- Uninstalled.py.orig 2006-07-23 17:06:43.000000000 +0100
+++ Uninstalled.py 2006-07-23 16:38:38.000000000 +0100
@@ -38,7 +38,8 @@
raise SystemError, (
"""This object was originally created by a product that
is no longer installed. It cannot be updated.
- """ )
+ %s
+ """ % repr(self) )
def __getattr__(self, name):
if name[:3]=='_p_':
--r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zodb-dev/attachments/20060723/e7621f40/attachment.htm
More information about the ZODB-Dev
mailing list