# named operation explicitly name the version in which it first # appears. This code grandfathers in entries and named operations that # were defined before this rule came into effect. When you change an # interface in the future, you should add explicit version statements to # its definition and get rid of the patch calls here. # ### # IArchive patch_entry_explicit_version(IArchive, 'beta') patch_operations_explicit_version( IArchive, 'beta', "_checkUpload", "deleteComponentUploader", "deletePackageUploader", "deletePackagesetUploader", "deleteQueueAdmin", "getAllPublishedBinaries", "getArchiveDependency", "getBuildCounters", "getBuildSummariesForSourceIds", "getComponentsForQueueAdmin", "getPackagesetsForSource", "getPackagesetsForSourceUploader", "getPackagesetsForUploader", "getPermissionsForPerson", "getPublishedSources", "getQueueAdminsForComponent", "getUploadersForComponent", "getUploadersForPackage", "getUploadersForPackageset", "isSourceUploadAllowed", "newComponentUploader", "newPackageUploader", "newPackagesetUploader", "newQueueAdmin", "newSubscription", "syncSource", "syncSources") # IArchiveDependency patch_entry_explicit_version(IArchiveDependency, 'beta') # IArchivePermission patch_entry_explicit_version(IArchivePermission, 'beta') # IArchiveSubscriber patch_entry_explicit_version(IArchiveSubscriber, 'beta')
"""All the interfaces that are exposed through the webservice. There is a declaration in ZCML somewhere that looks like: <webservice:register module="lp.patchwebservice" /> which tells `lazr.restful` that it should look for webservice exports here. """ __metaclass__ = type __all__ = [ 'ITemporaryBlobStorage', 'ITemporaryStorageManager', ] from lp.services.temporaryblobstorage.interfaces import ( ITemporaryBlobStorage, ITemporaryStorageManager, ) from lp.services.webservice.apihelpers import ( patch_operations_explicit_version, ) # ITemporaryBlobStorage patch_operations_explicit_version( ITemporaryBlobStorage, 'beta', "getProcessedData", "hasBeenProcessed") # ITemporaryStorageManager patch_operations_explicit_version( ITemporaryStorageManager, 'beta', "fetch")
# Copyright 22011 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """All the interfaces that are exposed through the webservice. There is a declaration in ZCML somewhere that looks like: <webservice:register module="lp.patchwebservice" /> which tells `lazr.restful` that it should look for webservice exports here. """ __metaclass__ = type __all__ = [ 'ITemporaryBlobStorage', 'ITemporaryStorageManager', ] from lp.services.temporaryblobstorage.interfaces import ( ITemporaryBlobStorage, ITemporaryStorageManager, ) from lp.services.webservice.apihelpers import ( patch_operations_explicit_version, ) # ITemporaryBlobStorage patch_operations_explicit_version(ITemporaryBlobStorage, 'beta', "getProcessedData", "hasBeenProcessed") # ITemporaryStorageManager patch_operations_explicit_version(ITemporaryStorageManager, 'beta', "fetch")