[Zope3-checkins] CVS: Zope3/src/zope/component - contextdependent.py:1.3 factory.py:1.3 resource.py:1.3 service.py:1.4 skin.py:1.5 utility.py:1.4 view.py:1.3
Steve Alexander
steve@cat-box.net
Wed, 4 Jun 2003 05:10:15 -0400
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv26591/src/zope/component
Modified Files:
contextdependent.py factory.py resource.py service.py skin.py
utility.py view.py
Log Message:
new style implements()
=== Zope3/src/zope/component/contextdependent.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/contextdependent.py:1.2 Wed Dec 25 09:13:31 2002
+++ Zope3/src/zope/component/contextdependent.py Wed Jun 4 05:09:45 2003
@@ -17,11 +17,12 @@
"""
from zope.component.interfaces import IContextDependent
+from zope.interface import implements
class ContextDependent(object):
"""standard boilerplate for context dependent objects"""
- __implements__ = IContextDependent
+ implements(IContextDependent)
def __init__(self, context):
self.context = context
=== Zope3/src/zope/component/factory.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/factory.py:1.2 Wed Dec 25 09:13:31 2002
+++ Zope3/src/zope/component/factory.py Wed Jun 4 05:09:45 2003
@@ -16,6 +16,7 @@
from zope.interface.verify import verifyObject
+from zope.interface import implements
from zope.component.interfaces import IFactory
from zope.component.interfaces import IFactoryService
from zope.component.exceptions import ComponentLookupError
@@ -28,7 +29,7 @@
class GlobalFactoryService:
- __implements__ = IGlobalFactoryService
+ implements(IGlobalFactoryService)
def __init__(self):
self.__factories={}
=== Zope3/src/zope/component/resource.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/resource.py:1.2 Wed Dec 25 09:13:31 2002
+++ Zope3/src/zope/component/resource.py Wed Jun 4 05:09:45 2003
@@ -17,6 +17,7 @@
"""
from zope.interface.implementor import ImplementorRegistry
+from zope.interface import implements
from zope.component.exceptions import ComponentLookupError
from zope.component import getSkin
from zope.component.interfaces import IResourceService
@@ -47,7 +48,7 @@
def __init__(self):
self.__layers = {}
- __implements__ = IGlobalResourceService
+ implements(IGlobalResourceService)
def getResource(self, object, name, request):
'''See interface IResourceService'''
=== Zope3/src/zope/component/service.py 1.3 => 1.4 ===
--- Zope3/src/zope/component/service.py:1.3 Fri Dec 27 20:42:21 2002
+++ Zope3/src/zope/component/service.py Wed Jun 4 05:09:45 2003
@@ -19,6 +19,7 @@
from zope.exceptions import DuplicationError
from zope.component.interfaces import IServiceService
from zope.component.exceptions import ComponentLookupError
+from zope.interface import implements
class IGlobalServiceManager(IServiceService):
@@ -52,7 +53,7 @@
class GlobalServiceManager:
"""service manager"""
- __implements__ = IGlobalServiceManager
+ implements(IGlobalServiceManager)
def __init__(self):
self.__defs = {}
=== Zope3/src/zope/component/skin.py 1.4 => 1.5 ===
--- Zope3/src/zope/component/skin.py:1.4 Thu May 1 15:35:38 2003
+++ Zope3/src/zope/component/skin.py Wed Jun 4 05:09:45 2003
@@ -17,6 +17,7 @@
"""
from zope.interface.implementor import ImplementorRegistry
+from zope.interface import implements
from zope.component.interfaces import ISkinService
class IGlobalSkinService(ISkinService):
@@ -34,7 +35,7 @@
def __init__(self):
self.__skins = {}
- __implements__ = IGlobalSkinService
+ implements(IGlobalSkinService)
def defineSkin(self, name, view_type, layers):
'''See interface IGlobalSkinService'''
=== Zope3/src/zope/component/utility.py 1.3 => 1.4 ===
--- Zope3/src/zope/component/utility.py:1.3 Fri Apr 11 09:38:28 2003
+++ Zope3/src/zope/component/utility.py Wed Jun 4 05:09:45 2003
@@ -17,6 +17,7 @@
"""
from zope.interface.implementor import ImplementorRegistry
+from zope.interface import implements
from zope.component.interfaces import IUtilityService
from zope.component.exceptions import Invalid, ComponentLookupError
@@ -30,7 +31,7 @@
class GlobalUtilityService:
- __implements__=IGlobalUtilityService
+ implements(IGlobalUtilityService)
def __init__(self):
self.__utilities = {}
=== Zope3/src/zope/component/view.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/view.py:1.2 Wed Dec 25 09:13:31 2002
+++ Zope3/src/zope/component/view.py Wed Jun 4 05:09:45 2003
@@ -17,6 +17,7 @@
"""
from zope.interface.adapter import AdapterRegistry
+from zope.interface import implements
from zope.component.exceptions import ComponentLookupError
from zope.component import getSkin
from zope.component.interfaces import IViewService
@@ -39,7 +40,7 @@
class GlobalViewService:
- __implements__ = IGlobalViewService
+ implements(IGlobalViewService)
def __init__(self):
self.__layers = {}