[Zope-CVS] CVS: Products/ZopeVersionControl - Version.py:1.4
Brian Lloyd
brian@digicool.com
Wed, 31 Oct 2001 12:57:05 -0500
Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv21359
Modified Files:
Version.py
Log Message:
Another fix for using import/export to get state of objects that may
not have been seated in the db yet.
=== Products/ZopeVersionControl/Version.py 1.3 => 1.4 ===
# xxx - fix this!
# obcopy = object._getCopy(object)
- obcopy = object._getCopy(parent)
-
+ try: obcopy = object._getCopy(parent)
+ except:
+ # This may happen for the intial version!
+ obcopy = object._getCopy(Acquisition.aq_parent(parent))
obcopy.__non_versionable__ = 1
self.data = obcopy
return