~cjwatson/lazr.restful/exported-interfaces-honour-all

« back to all changes in this revision

Viewing changes to src/lazr/restful/example/base/filemanager.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:
15
15
     import sha
16
16
     sha_constructor = sha.new
17
17
 
18
 
from zope.interface import implements
 
18
from zope.interface import implementer
19
19
 
20
20
import grokcore.component
21
21
 
24
24
from lazr.restful.utils import get_current_web_service_request
25
25
 
26
26
 
 
27
@implementer(IFileManager)
27
28
class FileManager:
28
 
    implements(IFileManager)
29
29
 
30
30
    def __init__(self):
31
31
        """Initialize with an empty list of files."""