[Zope-CVS] CVS: Products/ZopeVersionControl - nonversioned.py:1.2

Ken Manheimer klm at zope.com
Tue Feb 24 13:36:55 EST 2004


Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv14360

Modified Files:
	nonversioned.py 
Log Message:
Use canonical determination of versionability.


=== Products/ZopeVersionControl/nonversioned.py 1.1 => 1.2 ===
--- Products/ZopeVersionControl/nonversioned.py:1.1	Fri Jan 30 13:59:39 2004
+++ Products/ZopeVersionControl/nonversioned.py	Tue Feb 24 13:36:54 2004
@@ -19,6 +19,7 @@
 from OFS.ObjectManager import ObjectManager
 
 from IVersionControl import INonVersionedData
+from VersionSupport import isAVersionableResource
 
 
 try:
@@ -131,7 +132,7 @@
         attributes = StandardNonVersionedDataAdapter.getNonVersionedData(self)
         for name, value in self.obj.objectItems():
             if value is not None and isProxy is not None:
-                if not getattr(value, '_versionable', 1):
+                if isAVersionableResource(value):
                     # Version the state of subobjects that won't be
                     # versioned independently.
                     continue




More information about the Zope-CVS mailing list