~ursinha/launchpad/add-all-fl-tests

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/security.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-08-20 12:36:07 UTC
  • mfrom: (9094.2.2 hwdb-device-class-api)
  • Revision ID: launchpad@pqm.canonical.com-20090820123607-w7k7ahwkclxlonh8
[r=cprov][ui=none] allow arbitrary int values for
        HWDeviceClass.main_class and HWDeviceClass.sub_class;
        expose HWDeviceClass to the webservice

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
from canonical.launchpad.interfaces.emailaddress import IEmailAddress
51
51
from lp.registry.interfaces.entitlement import IEntitlement
52
52
from canonical.launchpad.interfaces.hwdb import (
53
 
    IHWDBApplication, IHWDevice, IHWDriver, IHWDriverName,
 
53
    IHWDBApplication, IHWDevice, IHWDeviceClass, IHWDriver, IHWDriverName,
54
54
    IHWDriverPackageName, IHWSubmission, IHWSubmissionDevice, IHWVendorID)
55
55
from lp.services.worlddata.interfaces.language import ILanguage, ILanguageSet
56
56
from lp.translations.interfaces.languagepack import ILanguagePack
1912
1912
    usedfor = IHWDBApplication
1913
1913
 
1914
1914
 
 
1915
class ViewHWDeviceClass(ViewHWDBBase):
 
1916
    usedfor = IHWDeviceClass
 
1917
 
 
1918
 
1915
1919
class ViewArchive(AuthorizationBase):
1916
1920
    """Restrict viewing of private archives.
1917
1921