~launchpad-pqm/launchpad/devel

14560.2.3 by Curtis Hovey
Moved webservice declarations to lp.services.temporaryblobstorage.
1
# Copyright 22011 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
4
"""All the interfaces that are exposed through the webservice.
5
6
There is a declaration in ZCML somewhere that looks like:
14583.1.9 by Curtis Hovey
Removed c.l interfaces and zcml.
7
  <webservice:register module="lp.patchwebservice" />
14560.2.3 by Curtis Hovey
Moved webservice declarations to lp.services.temporaryblobstorage.
8
9
which tells `lazr.restful` that it should look for webservice exports here.
10
"""
11
12
__metaclass__ = type
13
__all__ = [
14
    'ITemporaryBlobStorage',
15
    'ITemporaryStorageManager',
16
    ]
17
18
from lp.services.temporaryblobstorage.interfaces import (
19
    ITemporaryBlobStorage,
20
    ITemporaryStorageManager,
21
    )
14612.2.1 by William Grant
format-imports on lib/. So many imports.
22
from lp.services.webservice.apihelpers import (
23
    patch_operations_explicit_version,
24
    )
14560.2.3 by Curtis Hovey
Moved webservice declarations to lp.services.temporaryblobstorage.
25
26
# ITemporaryBlobStorage
27
patch_operations_explicit_version(
28
    ITemporaryBlobStorage, 'beta', "getProcessedData", "hasBeenProcessed")
29
30
# ITemporaryStorageManager
31
patch_operations_explicit_version(
32
    ITemporaryStorageManager, 'beta', "fetch")