Changeset b01b6d1 for server/lib/gutenbach/ipp/attributes/operation.py
- Timestamp:
- Jan 11, 2012, 12:51:51 AM (12 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/attributes/operation.py
re58af05 rb01b6d1 3 3 'RequestingUserName', 4 4 'IppAttributeFidelity', 5 'LastDocument' 5 'LastDocument', 6 'Limit', 7 'RequestedAttributes', 8 'WhichJobs', 9 'MyJobs', 10 'DocumentName', 11 'Compression', 12 'DocumentFormat', 13 'DocumentNaturalLanguage', 6 14 ] 7 15 … … 28 36 'last-document', 29 37 [Value(IntegerTags.BOOLEAN, val)]) 38 39 def Limit(val): 40 return Attribute( 41 'limit', 42 [Value(IntegerTags.INTEGER, val)]) 43 44 def RequestedAttributes(*vals): 45 return Attribute( 46 'requested-attributes', 47 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 48 49 def WhichJobs(val): 50 return Attribute( 51 'which-jobs', 52 [Value(CharacterStringTags.KEYWORD, val)]) 53 54 def MyJobs(val): 55 return Attribute( 56 'my-jobs', 57 [Value(IntegerTags.BOOLEAN, val)]) 58 59 def DocumentName(val): 60 return Attribute( 61 'document-name', 62 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 63 64 def Compression(val): 65 return Attribute( 66 'compression', 67 [Value(CharacterStringTags.KEYWORD, val)]) 68 69 def DocumentFormat(val): 70 return Attribute( 71 'document-format', 72 [Value(CharacterStringTags.MIME_MEDIA_TYPE, val)]) 73 74 def 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.