[Zope-CVS] CVS: Packages/VersionControl - VersionSupport.py:1.5
Ken Manheimer
klm@zope.com
Tue, 30 Oct 2001 13:55:34 -0500
Update of /cvs-repository/Packages/VersionControl
In directory cvs.zope.org:/tmp/cvs-serv4162
Modified Files:
VersionSupport.py
Log Message:
vcCheckOut(), vcCheckIn(), vcUnCheckOut(): When being called without a
REQUEST, return salient version info.
=== Packages/VersionControl/VersionSupport.py 1.4 => 1.5 ===
manage_tabs_message=message
)
+ else:
+ return new_ver
@@ -107,6 +109,8 @@
newself, REQUEST,
manage_tabs_message=message
)
+ else:
+ return ver_id
security.declareProtected('Use version control', 'vcUpdateResource')
def vcUpdateResource(self, version_id, REQUEST=None):
@@ -124,6 +128,8 @@
newself, REQUEST,
manage_tabs_message=message
)
+ else:
+ return new_ver
def isUnderVersionControl(self):
"""Return true if object is under version control."""