~cjwatson/lazr.restful/test-fixes

« back to all changes in this revision

Viewing changes to src/lazr/restful/docs/webservice-error.txt

  • Committer: Colin Watson
  • Date: 2016-02-17 01:07:21 UTC
  • Revision ID: cjwatson@canonical.com-20160217010721-4d5fqqml5q97ss59
Switch zope.interface, zope.component, and lazr.delegates users from class advice to class decorators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
=====
11
11
 
12
12
    >>> from zope.component import getSiteManager, getUtility
13
 
    >>> from zope.interface import implements
 
13
    >>> from zope.interface import implementer
14
14
    >>> from lazr.restful.interfaces import IWebServiceConfiguration
15
15
    >>> sm = getSiteManager()
16
 
    >>> class SimpleWebServiceConfiguration:
17
 
    ...     implements(IWebServiceConfiguration)
 
16
    >>> @implementer(IWebServiceConfiguration)
 
17
    ... class SimpleWebServiceConfiguration:
18
18
    ...     show_tracebacks = False
19
19
    ...     active_versions = ['trunk']
20
20
    ...     last_version_with_mutator_named_operations = None