[Zope-CVS] SVN: zversioning/trunk/src/versioning/repository.py
changed comment
Grégoire Weber
zope.org at incept.ch
Wed Oct 13 05:32:52 EDT 2004
Log message for revision 28054:
changed comment
Changed:
U zversioning/trunk/src/versioning/repository.py
-=-
Modified: zversioning/trunk/src/versioning/repository.py
===================================================================
--- zversioning/trunk/src/versioning/repository.py 2004-10-13 09:30:32 UTC (rev 28053)
+++ zversioning/trunk/src/versioning/repository.py 2004-10-13 09:32:50 UTC (rev 28054)
@@ -76,21 +76,6 @@
class CopyModifyMergeRepository(object):
"""The repository handles simple linear histories.
-
- x>>> class IPyRefHistoryStorage(Interface):
- x.... pass
- x
- x>>> class DummyHistoryStorage:
- x... pass
- x
- x>>> ztapi.provideUtility(IPyRefHistoryStorage, DummyHistoryStorage):
-
- XXX VersionableData vermittelt zwischen den Daten und der Storage, was gespeichert werden soll
- >>> ztapi.provideAdapter((IVersionable, IHistoryStorage), IVersionableAspects, VersionableAspects)
-
- >>> repo = Repository()
-
- >>>
"""
zope.interface.implements(
@@ -100,7 +85,6 @@
def __init__(self):
self.histories = zapi.getUtility(IHistoryStorage)
- #self.checkout_blah = zapi.
def applyVersionControl(self, obj):
"""Put the passed object under version control.
@@ -121,9 +105,9 @@
#
# Why register?
# We like to give the IHistoryStorage component the possibility
- # to veto as early as possible (e.g. to raise "connection to
- # backend repository lost" or "quota for user Ben exceded"
- # exceptions or similar)
+ # to do inevitable things or veto as early as possible (e.g. to
+ # raise "connection to backend repository lost" or "quota for
+ # user John exceded" exceptions or similar)
self.histories.register(obj)
def _declare_versioned(obj):
@@ -131,7 +115,7 @@
"""
ifaces = zope.interface.directlyProvidedBy(obj)
ifaces += IVersioned
- zope.interface.directlyProvides(object, *ifaces)
+ zope.interface.directlyProvides(obj, *ifaces)
def saveAsVersion(self, obj):
"""Save the current state of the object for later retreival.
More information about the Zope-CVS
mailing list