zope.processlifetime-1.0/0000755000175000017500000000000011202615144015423 5ustar tseavertseaverzope.processlifetime-1.0/README.txt0000644000175000017500000000037211202612071017117 0ustar tseavertseaverzope.processlifetime README =========================== This package provides interfaces / implementations for events relative to the lifetime of a server process (startup, database opening, etc.) It is derived from Zope 3.4's 'zope.app.appsetup'. zope.processlifetime-1.0/CHANGES.txt0000644000175000017500000000027611202615002017232 0ustar tseavertseaverzope.processlifetime Changelog ============================== 1.0 (2009-05-13) ---------------- - Split out event interfaces / implementations from ``zope.app.appsetup`` version 3.10.2. zope.processlifetime-1.0/src/0000755000175000017500000000000011202615144016212 5ustar tseavertseaverzope.processlifetime-1.0/src/zope/0000755000175000017500000000000011202615144017167 5ustar tseavertseaverzope.processlifetime-1.0/src/zope/__init__.py0000644000175000017500000000031111202611721021270 0ustar tseavertseaver# this is a namespace package try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) zope.processlifetime-1.0/src/zope/processlifetime/0000755000175000017500000000000011202615144022364 5ustar tseavertseaverzope.processlifetime-1.0/src/zope/processlifetime/__init__.py0000644000175000017500000000275311202614116024502 0ustar tseavertseaver############################################################################## # # Copyright (c) 2004-2009 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Events in the lifetime of a server process. """ from zope.interface import Attribute from zope.interface import Interface from zope.interface import implements class IDatabaseOpened(Interface): """The main database has been opened. """ database = Attribute("The main database.") class DatabaseOpened(object): implements(IDatabaseOpened) def __init__(self, database): self.database = database class IDatabaseOpenedWithRoot(Interface): """The main database has been opened. """ database = Attribute("The main database.") class DatabaseOpenedWithRoot(object): implements(IDatabaseOpenedWithRoot) def __init__(self, database): self.database = database class IProcessStarting(Interface): """The application server process is starting. """ class ProcessStarting(object): implements(IProcessStarting) zope.processlifetime-1.0/src/zope/processlifetime/tests.py0000644000175000017500000000542711202614561024112 0ustar tseavertseaver############################################################################## # # Copyright (c) 2009 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## import unittest class DatabaseOpenedTests(unittest.TestCase): def _getTargetClass(self): from zope.processlifetime import DatabaseOpened return DatabaseOpened def test_class_conforms_to_IDatabaseOpened(self): from zope.interface.verify import verifyClass from zope.processlifetime import IDatabaseOpened verifyClass(IDatabaseOpened, self._getTargetClass()) def test_instance_conforms_to_IDatabaseOpened(self): from zope.interface.verify import verifyObject from zope.processlifetime import IDatabaseOpened verifyObject(IDatabaseOpened, self._getTargetClass()(object())) class DatabaseOpenedWithRootTests(unittest.TestCase): def _getTargetClass(self): from zope.processlifetime import DatabaseOpenedWithRoot return DatabaseOpenedWithRoot def test_class_conforms_to_IDatabaseOpenedWithRoot(self): from zope.interface.verify import verifyClass from zope.processlifetime import IDatabaseOpenedWithRoot verifyClass(IDatabaseOpenedWithRoot, self._getTargetClass()) def test_instance_conforms_to_IDatabaseOpenedWithRoot(self): from zope.interface.verify import verifyObject from zope.processlifetime import IDatabaseOpenedWithRoot verifyObject(IDatabaseOpenedWithRoot, self._getTargetClass()(object())) class ProcessStartingTests(unittest.TestCase): def _getTargetClass(self): from zope.processlifetime import ProcessStarting return ProcessStarting def test_class_conforms_to_IProcessStarting(self): from zope.interface.verify import verifyClass from zope.processlifetime import IProcessStarting verifyClass(IProcessStarting, self._getTargetClass()) def test_instance_conforms_to_IProcessStarting(self): from zope.interface.verify import verifyObject from zope.processlifetime import IProcessStarting verifyObject(IProcessStarting, self._getTargetClass()()) def test_suite(): return unittest.TestSuite(( unittest.makeSuite(DatabaseOpenedTests), unittest.makeSuite(DatabaseOpenedWithRootTests), unittest.makeSuite(ProcessStartingTests), )) zope.processlifetime-1.0/src/zope.processlifetime.egg-info/0000755000175000017500000000000011202615144024055 5ustar tseavertseaverzope.processlifetime-1.0/src/zope.processlifetime.egg-info/namespace_packages.txt0000644000175000017500000000000511202615144030403 0ustar tseavertseaverzope zope.processlifetime-1.0/src/zope.processlifetime.egg-info/dependency_links.txt0000644000175000017500000000000111202615144030123 0ustar tseavertseaver zope.processlifetime-1.0/src/zope.processlifetime.egg-info/SOURCES.txt0000644000175000017500000000075411202615144025747 0ustar tseavertseaverCHANGES.txt README.txt bootstrap.py buildout.cfg setup.py src/zope/__init__.py src/zope.processlifetime.egg-info/PKG-INFO src/zope.processlifetime.egg-info/SOURCES.txt src/zope.processlifetime.egg-info/dependency_links.txt src/zope.processlifetime.egg-info/namespace_packages.txt src/zope.processlifetime.egg-info/not-zip-safe src/zope.processlifetime.egg-info/requires.txt src/zope.processlifetime.egg-info/top_level.txt src/zope/processlifetime/__init__.py src/zope/processlifetime/tests.pyzope.processlifetime-1.0/src/zope.processlifetime.egg-info/top_level.txt0000644000175000017500000000000511202615144026602 0ustar tseavertseaverzope zope.processlifetime-1.0/src/zope.processlifetime.egg-info/not-zip-safe0000644000175000017500000000000111202613375026307 0ustar tseavertseaver zope.processlifetime-1.0/src/zope.processlifetime.egg-info/requires.txt0000644000175000017500000000003111202615144026447 0ustar tseavertseaversetuptools zope.interfacezope.processlifetime-1.0/src/zope.processlifetime.egg-info/PKG-INFO0000644000175000017500000000246611202615144025162 0ustar tseavertseaverMetadata-Version: 1.0 Name: zope.processlifetime Version: 1.0 Summary: Zope process lifetime events Home-page: http://pypi.python.org/pypi/zope.processlifetime Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: zope.processlifetime README =========================== This package provides interfaces / implementations for events relative to the lifetime of a server process (startup, database opening, etc.) It is derived from Zope 3.4's 'zope.app.appsetup'. zope.processlifetime Changelog ============================== 1.0 (2009-05-13) ---------------- - Split out event interfaces / implementations from ``zope.app.appsetup`` version 3.10.2. Keywords: zope process lifetime events Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 Classifier: Framework :: Zope2 zope.processlifetime-1.0/setup.cfg0000644000175000017500000000007311202615144017244 0ustar tseavertseaver[egg_info] tag_build = tag_date = 0 tag_svn_revision = 0 zope.processlifetime-1.0/bootstrap.py0000644000175000017500000000337011202611721020012 0ustar tseavertseaver############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Bootstrap a buildout-based project Simply run this script in a directory containing a buildout.cfg. The script accepts buildout command-line options, so you can use the -c option to specify an alternate configuration file. $Id: bootstrap.py 73531 2007-03-25 07:22:18Z dobe $ """ import os, shutil, sys, tempfile, urllib2 tmpeggs = tempfile.mkdtemp() ez = {} exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' ).read() in ez ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) import pkg_resources cmd = 'from setuptools.command.easy_install import main; main()' if sys.platform == 'win32': cmd = '"%s"' % cmd # work around spawn lamosity on windows ws = pkg_resources.working_set assert os.spawnle( os.P_WAIT, sys.executable, sys.executable, '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout', dict(os.environ, PYTHONPATH= ws.find(pkg_resources.Requirement.parse('setuptools')).location ), ) == 0 ws.add_entry(tmpeggs) ws.require('zc.buildout') import zc.buildout.buildout zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap']) shutil.rmtree(tmpeggs) zope.processlifetime-1.0/PKG-INFO0000644000175000017500000000246611202615144016530 0ustar tseavertseaverMetadata-Version: 1.0 Name: zope.processlifetime Version: 1.0 Summary: Zope process lifetime events Home-page: http://pypi.python.org/pypi/zope.processlifetime Author: Zope Corporation and Contributors Author-email: zope-dev@zope.org License: ZPL 2.1 Description: zope.processlifetime README =========================== This package provides interfaces / implementations for events relative to the lifetime of a server process (startup, database opening, etc.) It is derived from Zope 3.4's 'zope.app.appsetup'. zope.processlifetime Changelog ============================== 1.0 (2009-05-13) ---------------- - Split out event interfaces / implementations from ``zope.app.appsetup`` version 3.10.2. Keywords: zope process lifetime events Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Zope Public License Classifier: Programming Language :: Python Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Topic :: Internet :: WWW/HTTP Classifier: Framework :: Zope3 Classifier: Framework :: Zope2 zope.processlifetime-1.0/setup.py0000644000175000017500000000375211202614771017151 0ustar tseavertseaver############################################################################## # # Copyright (c) 2009 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (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. # ############################################################################## """Setup for zope.processlifetime package """ import os from setuptools import find_packages from setuptools import setup def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() setup( name='zope.processlifetime', version = '1.0', author='Zope Corporation and Contributors', author_email='zope-dev@zope.org', description="Zope process lifetime events", long_description=(read('README.txt') + '\n\n' + read('CHANGES.txt')), license='ZPL 2.1', keywords="zope process lifetime events", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Zope Public License', 'Programming Language :: Python', 'Natural Language :: English', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP', 'Framework :: Zope3', 'Framework :: Zope2', ], url='http://pypi.python.org/pypi/zope.processlifetime', packages=find_packages('src'), package_dir={'': 'src'}, test_suite='zope.processlifetime.tests', namespace_packages=['zope'], install_requires=['setuptools', 'zope.interface', ], include_package_data=True, zip_safe=False, ) zope.processlifetime-1.0/buildout.cfg0000644000175000017500000000040511202612442017730 0ustar tseavertseaver[buildout] develop = . parts = test python tags [test] recipe = zc.recipe.testrunner eggs = zope.processlifetime [python] recipe = zc.recipe.egg eggs = zope.processlifetime interpreter = python [tags] recipe = z3c.recipe.tag:tags eggs = zope.processlifetime