[Zope-CVS] CVS: Products/ZopeVersionControl - Repository.py:1.14
Sidnei da Silva
sidnei at awkly.org
Mon May 3 11:25:33 EDT 2004
Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv26996
Modified Files:
Repository.py
Log Message:
Make it a soft dependency on References.
=== Products/ZopeVersionControl/Repository.py 1.13 => 1.14 ===
--- Products/ZopeVersionControl/Repository.py:1.13 Wed Mar 24 16:00:00 2004
+++ Products/ZopeVersionControl/Repository.py Mon May 3 11:25:02 2004
@@ -1,14 +1,14 @@
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
__version__='$Revision$'[11:-2]
@@ -122,7 +122,7 @@
security.declarePublic('isResourceChanged')
def isResourceChanged(self, object):
# Return true if the state of a resource has changed in a transaction
- # *after* the version bookkeeping was saved. Note that this method is
+ # *after* the version bookkeeping was saved. Note that this method is
# not appropriate for detecting changes within a transaction!
info = self.getVersionInfo(object)
itime = getattr(info, '_p_mtime', None)
@@ -207,7 +207,7 @@
history = self.getVersionHistory(info.history_id)
ob_path = _findPath(object)
-
+
# Save an audit record of the action being performed.
history.addLogEntry(info.version_id,
LogEntry.ACTION_CHECKOUT,
@@ -401,7 +401,7 @@
# Note - this is not part of the official version control API yet.
# It is here to allow unit testing of the architectural aspects
# that are already in place to support activities in the future.
-
+
info = self.getVersionInfo(object)
if info.status != info.CHECKED_IN:
raise VersionControlError(
More information about the Zope-CVS
mailing list