Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
archetypes.kss.events.VersionedFieldModifiedEvent Class Reference
Inheritance diagram for archetypes.kss.events.VersionedFieldModifiedEvent:
Inheritance graph
[legend]
Collaboration diagram for archetypes.kss.events.VersionedFieldModifiedEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

 fieldnames

Detailed Description

A field has been modified, versioning needed

Definition at line 7 of file events.py.


Constructor & Destructor Documentation

def archetypes.kss.events.VersionedFieldModifiedEvent.__init__ (   self,
  ob,
  fieldnames 
)
Init with a list of (AT) field names.

>>> from zope.interface import Interface, implements
>>> class Sample(object):
...     implements(Interface)

>>> obj = Sample()
>>> obj.field = 42
>>> notify(VersionedFieldModifiedEvent(obj, "field"))

Definition at line 12 of file events.py.

00012 
00013     def __init__(self, ob, *fieldnames) :
00014         """
00015         Init with a list of (AT) field names.
00016 
00017         >>> from zope.interface import Interface, implements
00018         >>> class Sample(object):
00019         ...     implements(Interface)
00020 
00021         >>> obj = Sample()
00022         >>> obj.field = 42
00023         >>> notify(VersionedFieldModifiedEvent(obj, "field"))
00024 
00025         """
00026         super(VersionedFieldModifiedEvent, self).__init__(ob)
00027         self.fieldnames = fieldnames

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file events.py.


The documentation for this class was generated from the following file: