[Zope3-checkins] SVN: Zope3/trunk/src/zope/ Fix whitespaces and
typo.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Apr 27 07:31:55 EDT 2006
Log message for revision 67636:
Fix whitespaces and typo.
Changed:
U Zope3/trunk/src/zope/exceptions/__init__.py
U Zope3/trunk/src/zope/lifecycleevent/__init__.py
-=-
Modified: Zope3/trunk/src/zope/exceptions/__init__.py
===================================================================
--- Zope3/trunk/src/zope/exceptions/__init__.py 2006-04-27 11:21:43 UTC (rev 67635)
+++ Zope3/trunk/src/zope/exceptions/__init__.py 2006-04-27 11:31:54 UTC (rev 67636)
@@ -21,7 +21,7 @@
from zope.exceptions.interfaces import DuplicationError, IDuplicationError
from zope.exceptions.interfaces import UserError, IUserError
-# avoid depency on zope.security:
+# avoid dependency on zope.security:
try:
import zope.security
except ImportError, v:
Modified: Zope3/trunk/src/zope/lifecycleevent/__init__.py
===================================================================
--- Zope3/trunk/src/zope/lifecycleevent/__init__.py 2006-04-27 11:21:43 UTC (rev 67635)
+++ Zope3/trunk/src/zope/lifecycleevent/__init__.py 2006-04-27 11:31:54 UTC (rev 67636)
@@ -79,7 +79,7 @@
class Sequence(object) :
"""
Describes modified keys of an interface.
-
+
>>> from zope.app.container.interfaces import IContainer
>>> desc = Sequence(IContainer, 'foo', 'bar')
>>> desc.interface == IContainer
@@ -88,9 +88,9 @@
('foo', 'bar')
"""
-
+
implements(ISequence)
-
+
def __init__(self, interface, *keys) :
self.interface = interface
self.keys = keys
@@ -107,22 +107,22 @@
def __init__(self, object, *descriptions) :
"""
Init with a list of modification descriptions.
-
+
>>> from zope.interface import implements, Interface, Attribute
>>> class ISample(Interface) :
... field = Attribute("A test field")
>>> class Sample(object) :
... implements(ISample)
-
+
>>> obj = Sample()
>>> obj.field = 42
>>> notify(ObjectModifiedEvent(obj, Attributes(ISample, "field")))
-
+
"""
- super(ObjectModifiedEvent, self).__init__(object)
+ super(ObjectModifiedEvent, self).__init__(object)
self.descriptions = descriptions
-
+
def modified(object, *descriptions):
notify(ObjectModifiedEvent(object, *descriptions))
More information about the Zope3-Checkins
mailing list