Skip to content

Commit

Permalink
Update doc strings to ReST
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ruggera committed Sep 2, 2004
1 parent 22e7213 commit b9e4a52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions contentdirective.py
Expand Up @@ -15,6 +15,8 @@
$Id$
"""
__docformat__ = 'restructuredtext'

from types import ModuleType
from zope.interface import classImplements
from zope.schema.interfaces import IField
Expand Down
13 changes: 7 additions & 6 deletions localservice.py
Expand Up @@ -15,6 +15,7 @@
$Id$
"""
__docformat__ = 'restructuredtext'

from zope.interface import implements
from zope.component.exceptions import ComponentLookupError
Expand Down Expand Up @@ -73,7 +74,7 @@ def getNextService(context, name):
return getNextServices(context).getService(name)

def getNextServices(context):
"""Returns the next service manager to the one that contains 'context'.
"""Returns the next service manager to the one that contains `context`.
"""
services = getLocalServices(context).next
if IGlobalServiceManager.providedBy(services):
Expand All @@ -93,12 +94,12 @@ def queryLocalServices(context, default=None):
return default

def getLocalServices(context):
"""Returns the service manager that contains 'context'.
"""Returns the service manager that contains `context`.
If context is a local service, returns the service manager that
contains that service. If context is a service manager, returns context.
If `context` is a local service, returns the service manager that
contains that service. If `context` is a service manager, returns `context`.
Otherwise, raises ComponentLookupError('Services')
Otherwise, raises ``ComponentLookupError('Services')``
"""

# IMPORTANT
Expand All @@ -117,7 +118,7 @@ def serviceServiceAdapter(ob):
"""An adapter ILocation -> IServiceService.
The ILocation is interpreted flexibly, we just check for
__parent__.
``__parent__``.
"""
current = ob
while True:
Expand Down
4 changes: 3 additions & 1 deletion metaconfigure.py
Expand Up @@ -15,6 +15,8 @@
$Id$
"""
__docformat__ = 'restructuredtext'

from zope.interface import Interface
from zope.component.service import UndefinedService
from zope.configuration.exceptions import ConfigurationError
Expand Down Expand Up @@ -61,7 +63,7 @@ def interface(_context, interface, type=None):


def proxify(ob, checker):
"""Try to get the object proxied with the checker, but not too soon
"""Try to get the object proxied with the `checker`, but not too soon
We really don't want to proxy the object unless we need to.
"""
Expand Down

0 comments on commit b9e4a52

Please sign in to comment.