/usr/share/pyshared/zope.lifecycleevent-4.0.3.egg-info/PKG-INFO is in python-zope.lifecycleevent 4.0.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | Metadata-Version: 1.1
Name: zope.lifecycleevent
Version: 4.0.3
Summary: Object life-cycle events
Home-page: http://pypi.python.org/pypi/zope.lifecycleevent
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Description: =================
Life-cycle events
=================
In Zope, events are used by components to inform each other about
relevant new objects and object modifications.
To keep all subscribers up to date it is indispensable that the life
cycle of an object is accompanied by various events.
>>> from zope.event import notify
>>> from zope.lifecycleevent import ObjectCreatedEvent, ObjectModifiedEvent
>>> class Sample(object) :
... "Test class"
>>> obj = Sample()
>>> notify(ObjectCreatedEvent(obj))
>>> obj.modified = True
>>> notify(ObjectModifiedEvent(obj))
Some event consumers like catalogs and caches may need more information to
update themselves in an efficient manner. The necessary information can be
provided as optional modification descriptions of the ObjectModifiedEvent.
Some examples:
>>> from zope.interface import Interface, Attribute, implementer
>>> class IFile(Interface):
... data = Attribute("Data")
...
>>> @implementer(IFile)
... class File(object):
... pass
>>> file = File()
>>> file.data = "123"
>>> notify(ObjectModifiedEvent(obj, IFile))
This says that we modified something via IFile. Note that an interface is an
acceptable description. In fact, we might allow pretty much anything as a
description and it depends on your needs what kind of descriptions you use.
``zope.lifecycleevent`` Changelog
=================================
4.0.3 (2013-09-12)
------------------
- Dropped the dependency on ``zope.component`` as the interface and
implementation of ``ObjectEvent`` is now in ``zope.interface``.
Retained the dependency for the tests.
- Fixed: ``.moved`` tried to notify the wrong event.
4.0.2 (2013-03-08)
------------------
- Add Trove classifiers indicating CPython and PyPy support.
4.0.1 (2013-02-11)
------------------
- Added `tox.ini`.
4.0.0 (2013-02-11)
------------------
- Test coverage at 100%.
- Added support for Python 3.3 and PyPy.
- Replaced deprecated ``zope.interface.implements`` usage with equivalent
``zope.interface.implementer`` decorator.
- Dropped support for Python 2.4 and 2.5.
3.7.0 (2011-03-17)
------------------
- Added convenience functions to parallel zope.lifecycleevent.modified
for the other events defined in this package.
3.6.2 (2010-09-25)
------------------
- Added not declared, but needed test dependency on `zope.component [test]`.
3.6.1 (2010-04-30)
------------------
- Removed dependency on undeclared zope.testing.doctest.
3.6.0 (2009-12-29)
------------------
- Refactor tests to loose zope.annotation and zope.dublincore as dependencies.
3.5.2 (2009-05-17)
------------------
- ``IObjectMovedEvent``, ``IObjectAddedEvent``,
``IObjectRemovedEvent`` interfaces and ``ObjectMovedEvent``,
``ObjectAddedEvent`` and ``ObjectRemovedEvent`` classes copied here
from zope.container (plus tests). The intent is to allow packages
that rely on these interfaces or the event classes to rely on
zope.lifecycleevent (which has few dependencies) instead of
zope.container (which has many).
3.5.1 (2009-03-09)
------------------
- Remove deprecated code and thus remove dependency on zope.deferredimport.
- Change package's mailing list address to zope-dev at zope.org, as
zope3-dev at zope.org is now retired.
- Update package's description and documentation.
3.5.0 (2009-01-31)
------------------
- Remove old module declarations from classes.
- Use zope.container instead of zope.app.container.
3.4.0 (2007-09-01)
------------------
Initial release as an independent package
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development
|