eliminate Zope 3.3 deprecation messages from loops tests

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1587 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-02-18 14:17:26 +00:00
parent 1ffe581a37
commit 315076a575
5 changed files with 20 additions and 20 deletions

View file

@ -23,8 +23,8 @@ $Id$
"""
from zope.app import zapi
from zope.app.annotation.interfaces import IAttributeAnnotatable, IAnnotations
from zope.app.annotation.attribute import AttributeAnnotations
from zope.annotation.interfaces import IAttributeAnnotatable, IAnnotations
from zope.annotation.attribute import AttributeAnnotations
from zope.cachedescriptors.property import Lazy
from zope.interface import Interface, Attribute, implements
from zope.component import adapts

View file

@ -25,7 +25,7 @@ $Id$
from zope import component
from zope.interface import Interface, implements
from zope.cachedescriptors.property import Lazy
from zope.publisher.interfaces.browser import ISkin
from zope.publisher.interfaces.browser import IBrowserSkinType
from zope.app.pagetemplate import ViewPageTemplateFile
@ -108,7 +108,7 @@ class GenericView(object):
def setSkin(self, skinName):
skin = None
if skinName:
skin = component.queryUtility(ISkin, skinName)
skin = component.queryUtility(IBrowserSkinType, skinName)
if skin:
applySkin(self.request, skin)
self.skin = skin

View file

@ -23,7 +23,7 @@ $Id$
"""
from zope.interface import Interface, Attribute
from zope.app.event.interfaces import IObjectEvent
from zope.component.interfaces import IObjectEvent
# relation interfaces

View file

@ -30,9 +30,9 @@ from zope.app import zapi
from zope.app.catalog.catalog import Catalog
from zope.app.catalog.field import FieldIndex
from zope.app.intid.interfaces import IIntIds
from zope.app.location.interfaces import ILocation
from zope.location.interfaces import ILocation
from zope.event import notify
from zope.app.event.objectevent import ObjectEvent
from zope.component.interfaces import ObjectEvent
from zope.security.proxy import removeSecurityProxy
from interfaces import IRelationRegistry, IRelationInvalidatedEvent
@ -198,7 +198,7 @@ def getRelations(first=None, second=None, third=None, relationships=None):
The relationships parameter expects a sequence of relationships
(relation classes or predicate objects).
"""
registry = zapi.getUtility(IRelationRegistry)
registry = component.getUtility(IRelationRegistry)
query = {}
if first is not None: query['first'] = first
if second is not None: query['second'] = second

View file

@ -38,6 +38,6 @@ class IExternalStorage(Interface):
def getData(address, params=None):
""" Retrieve the data from the address specified, using the
(optional) params argument that may give more information on
where and how to the data can be found.
where and how the data can be found.
"""