Skip to content

Commit

Permalink
Get rid of imports of zope.component.site. Registration objects now l…
Browse files Browse the repository at this point in the history
…ive in

zope.component.components, global stuff in zope.component.globalregistry.
  • Loading branch information
philikon committed Mar 1, 2006
1 parent 0fd1133 commit 540722a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion component.py
Expand Up @@ -25,7 +25,7 @@
HandlerRegistration,
)

from zope.component.site import UtilityRegistration
from zope.component.components import UtilityRegistration
from zope.interface import Interface
from zope.interface.interface import InterfaceClass
import zope.interface.declarations
Expand Down
2 changes: 1 addition & 1 deletion component.txt
Expand Up @@ -304,7 +304,7 @@ Let's first create an adapter registration:
>>> class MyResult(object):
... implements(IResult)

>>> from zope.component.site import AdapterRegistration
>>> from zope.component.components import AdapterRegistration
>>> reg = AdapterRegistration((IFoo, IBar), IResult, 'FooToResult',
... MyResult, 'doc info')

Expand Down
2 changes: 1 addition & 1 deletion presentation.py
Expand Up @@ -16,7 +16,7 @@
$Id$
"""
from types import ClassType, FunctionType
from zope.component.site import AdapterRegistration
from zope.component.components import AdapterRegistration
from zope.interface import Interface

from zope.app import zapi
Expand Down
2 changes: 1 addition & 1 deletion presentation.txt
Expand Up @@ -384,7 +384,7 @@ dictionary for the specified registration.

Let's first create a registration:

>>> from zope.component.site import AdapterRegistration
>>> from zope.component.components import AdapterRegistration
>>> reg = AdapterRegistration((IFile, Interface, IHTTPRequest),
... Interface, 'view.html', Factory, 'reg info')

Expand Down
2 changes: 1 addition & 1 deletion utilitymodule/utilitymodule.py
Expand Up @@ -19,7 +19,7 @@

import base64, binascii

from zope.component.site import UtilityRegistration
from zope.component.components import UtilityRegistration
from zope.interface import implements

from zope.app import zapi
Expand Down

0 comments on commit 540722a

Please sign in to comment.