~cjwatson/lazr.restful/test-fixes

« back to all changes in this revision

Viewing changes to src/lazr/restful/_operation.py

  • 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:
6
6
 
7
7
from zope.component import getMultiAdapter, getUtility, queryMultiAdapter
8
8
from zope.event import notify
9
 
from zope.interface import Attribute, implements, providedBy
 
9
from zope.interface import Attribute, implementer, providedBy
10
10
from zope.interface.interfaces import IInterface
11
11
from zope.schema import Field
12
12
from zope.schema.interfaces import (
208
208
        raise NotImplementedError
209
209
 
210
210
 
 
211
@implementer(IResourceGETOperation)
211
212
class ResourceGETOperation(ResourceOperation):
212
213
    """See `IResourceGETOperation`."""
213
 
    implements(IResourceGETOperation)
214
 
 
215
 
 
 
214
 
 
215
 
 
216
@implementer(IResourceDELETEOperation)
216
217
class ResourceDELETEOperation(ResourceOperation):
217
218
    """See `IResourceDELETEOperation`."""
218
 
    implements(IResourceDELETEOperation)
219
 
 
220
 
 
 
219
 
 
220
 
 
221
@implementer(IResourcePOSTOperation)
221
222
class ResourcePOSTOperation(ResourceOperation):
222
223
    """See `IResourcePOSTOperation`."""
223
 
    implements(IResourcePOSTOperation)
224
224
 
225
225
 
226
226
class IObjectLink(IField):
230
230
        u"The Interface of the Object on the other end of the link.")
231
231
 
232
232
 
 
233
@implementer(IObjectLink)
233
234
class ObjectLink(Field):
234
235
    """A reference to an object."""
235
 
    implements(IObjectLink)
236
236
 
237
237
    def __init__(self, schema, **kw):
238
238
        if not IInterface.providedBy(schema):