Ignore:
Timestamp:
Jan 11, 2012, 12:51:51 AM (12 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
be6ff03
Parents:
ffbe41d
git-author:
Jessica B. Hamrick <jhamrick@…> (01/11/12 00:51:51)
git-committer:
Jessica B. Hamrick <jhamrick@…> (01/11/12 00:51:51)
Message:

Clean up printer, job, and requests code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/gutenbach/ipp/attributes/operation.py

    re58af05 rb01b6d1  
    33    'RequestingUserName',
    44    'IppAttributeFidelity',
    5     'LastDocument'
     5    'LastDocument',
     6    'Limit',
     7    'RequestedAttributes',
     8    'WhichJobs',
     9    'MyJobs',
     10    'DocumentName',
     11    'Compression',
     12    'DocumentFormat',
     13    'DocumentNaturalLanguage',
    614]
    715
     
    2836        'last-document',
    2937        [Value(IntegerTags.BOOLEAN, val)])
     38
     39def Limit(val):
     40    return Attribute(
     41        'limit',
     42        [Value(IntegerTags.INTEGER, val)])
     43
     44def RequestedAttributes(*vals):
     45    return Attribute(
     46        'requested-attributes',
     47        [Value(CharacterStringTags.KEYWORD, val) for val in vals])
     48
     49def WhichJobs(val):
     50    return Attribute(
     51        'which-jobs',
     52        [Value(CharacterStringTags.KEYWORD, val)])
     53
     54def MyJobs(val):
     55    return Attribute(
     56        'my-jobs',
     57        [Value(IntegerTags.BOOLEAN, val)])
     58
     59def DocumentName(val):
     60    return Attribute(
     61        'document-name',
     62        [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)])
     63
     64def Compression(val):
     65    return Attribute(
     66        'compression',
     67        [Value(CharacterStringTags.KEYWORD, val)])
     68
     69def DocumentFormat(val):
     70    return Attribute(
     71        'document-format',
     72        [Value(CharacterStringTags.MIME_MEDIA_TYPE, val)])
     73
     74def DocumentNaturalLanguage(val):
     75    return Attribute(
     76        'document-natural-language',
     77        [Value(CharacterStringTags.NATURAL_LANGUAGE, val)])
Note: See TracChangeset for help on using the changeset viewer.