[Zope-CVS] CVS: Products/ZopeVersionControl - VersionSupport.py:1.3

Ken Manheimer klm at zope.com
Tue Feb 24 13:33:47 EST 2004


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

Modified Files:
	VersionSupport.py 
Log Message:
Use canonical isAVersionableResource function from Repository, so
everyone's dancing to the same tune.


=== Products/ZopeVersionControl/VersionSupport.py 1.2 => 1.3 ===
--- Products/ZopeVersionControl/VersionSupport.py:1.2	Thu May  9 13:43:40 2002
+++ Products/ZopeVersionControl/VersionSupport.py	Tue Feb 24 13:33:47 2004
@@ -17,12 +17,7 @@
 from Globals import DTMLFile, InitializeClass
 from Utility import VersionControlError
 from Utility import use_vc_permission
-
-
-def _isAVersionableResource(object):
-    if hasattr(object, '__non_versionable__'):
-        return 0
-    return 1
+from Repository import isAVersionableResource
 
 
 class VersionSupport(ExtensionClass.Base):
@@ -31,7 +26,7 @@
     manage_options=(
         {'label': 'Version Control', 'action':'versionControlMain',
          'help':  ('ZopeVersionControl', 'VersionControl.stx'),
-         'filter': _isAVersionableResource,
+         'filter': isAVersionableResource,
          },
         )
 




More information about the Zope-CVS mailing list