[Checkins] SVN: zope.app.component/trunk/s - moved IPossibleSite
and ISite from zope.app.component to zope.location
Thomas Lotze
tl at gocept.com
Wed Aug 22 07:57:04 EDT 2007
Log message for revision 79118:
- moved IPossibleSite and ISite from zope.app.component to zope.location
- removed dependency of zope.location on zope.app.component
- bumped versions
Changed:
U zope.app.component/trunk/setup.py
U zope.app.component/trunk/src/zope/app/component/interfaces/__init__.py
-=-
Modified: zope.app.component/trunk/setup.py
===================================================================
--- zope.app.component/trunk/setup.py 2007-08-22 11:56:30 UTC (rev 79117)
+++ zope.app.component/trunk/setup.py 2007-08-22 11:57:04 UTC (rev 79118)
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages, Extension
setup(name='zope.app.component',
- version = '3.4.0b1',
+ version = '3.4.0b2',
url='http://svn.zope.org/zope.app.component',
author='Zope Corporation and Contributors',
author_email='zope3-dev at zope.org',
@@ -39,7 +39,7 @@
'zope.i18nmessageid',
'zope.interface',
'zope.lifecycleevent',
- 'zope.location',
+ 'zope.location>3.4.0b1',
'zope.publisher',
'zope.schema',
'zope.security',
Modified: zope.app.component/trunk/src/zope/app/component/interfaces/__init__.py
===================================================================
--- zope.app.component/trunk/src/zope/app/component/interfaces/__init__.py 2007-08-22 11:56:30 UTC (rev 79117)
+++ zope.app.component/trunk/src/zope/app/component/interfaces/__init__.py 2007-08-22 11:57:04 UTC (rev 79118)
@@ -23,6 +23,8 @@
import zope.deferredimport
+from zope.location.interfaces import IPossibleSite, ISite
+
zope.deferredimport.deprecatedFrom(
"Local registration is now much simpler. The old baroque APIs "
"will go away in Zope 3.5. See the new component-registration APIs "
@@ -32,23 +34,7 @@
'IUtilityRegistration',
)
-class IPossibleSite(zope.interface.Interface):
- """An object that could be a site
- """
- def setSiteManager(sitemanager):
- """Sets the site manager for this object.
- """
-
- def getSiteManager():
- """Returns the site manager contained in this object.
-
- If there isn't a site manager, raise a component lookup.
- """
-
-class ISite(IPossibleSite):
- """Marker interface to indicate that we have a site"""
-
class INewLocalSite(zope.interface.Interface):
"""Event: a local site was created
"""
More information about the Checkins
mailing list