~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/temporaryblobstorage/webservice.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-21 23:58:48 UTC
  • mfrom: (14560.2.30 apocalypse-by-dismantle)
  • Revision ID: launchpad@pqm.canonical.com-20111221235848-inwavwpo2cwo6c1m
[rs=sinzui][no-qa] dismantle modules to migrate code to lp. Deleted
        unused interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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:
 
7
  <webservice:register module="canonical.launchpad.interfaces.webservice" />
 
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.webservice.apihelpers import (
 
19
    patch_operations_explicit_version,
 
20
    )
 
21
from lp.services.temporaryblobstorage.interfaces import (
 
22
    ITemporaryBlobStorage,
 
23
    ITemporaryStorageManager,
 
24
    )
 
25
 
 
26
 
 
27
# ITemporaryBlobStorage
 
28
patch_operations_explicit_version(
 
29
    ITemporaryBlobStorage, 'beta', "getProcessedData", "hasBeenProcessed")
 
30
 
 
31
# ITemporaryStorageManager
 
32
patch_operations_explicit_version(
 
33
    ITemporaryStorageManager, 'beta', "fetch")