[Zope3-checkins]
SVN: Zope3/branches/3.3/src/zope/app/zopeappgenerations/evolve5.py
Added a check for those rare cases where an object is
adaptable to IZopeDublinCore but has no metadata yet.
Uwe Oestermeier
uwe_oestermeier at iwm-kmrc.de
Tue Jul 4 08:24:09 EDT 2006
Log message for revision 68965:
Added a check for those rare cases where an object is adaptable to IZopeDublinCore but has no metadata yet.
Changed:
U Zope3/branches/3.3/src/zope/app/zopeappgenerations/evolve5.py
-=-
Modified: Zope3/branches/3.3/src/zope/app/zopeappgenerations/evolve5.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/zopeappgenerations/evolve5.py 2006-07-04 01:47:35 UTC (rev 68964)
+++ Zope3/branches/3.3/src/zope/app/zopeappgenerations/evolve5.py 2006-07-04 12:24:08 UTC (rev 68965)
@@ -39,4 +39,5 @@
# annotations mapping) as dirty. It contains a reference
# to the old class path for ghosts
annotations = IAnnotations(obj)
- annotations[DCkey] = annotations[DCkey]
+ if DCkey in annotations :
+ annotations[DCkey] = annotations[DCkey]
More information about the Zope3-Checkins
mailing list