- Timestamp:
- Dec 23, 2011, 9:04:31 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 793432f
- Parents:
- aded2d1
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 21:04:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/object_attributes/job_template_attributes.py
raded2d1 rb828a96 19 19 from ..exceptions import ClientErrorAttributes 20 20 21 class JobPriority(Attribute):21 def JobPriority(val): 22 22 """4.2.1 job-priority (integer(1:100)) 23 23 … … 69 69 70 70 71 def __init__(self, val): 72 super(type(self), self).__init__( 73 'job-priority', 74 [Value(IntegerTags.INTEGER), val]) 71 return Attribute( 72 'job-priority', 73 [Value(IntegerTags.INTEGER), val]) 75 74 76 class JobHoldUntil(Attribute):75 def JobHoldUntil(val): 77 76 """4.2.2 job-hold-until (type3 keyword | name (MAX)) 78 77 79 78 """ 80 79 81 def __init__(self, val): 82 raise ClientErrorAttributes, "job-hold-until" 83 84 class JobSheets(Attribute): 80 raise ClientErrorAttributes, "job-hold-until" 81 82 def JobSheets(val): 85 83 """4.2.3 job-sheets (type3 keyword | name(MAX)) 86 84 87 85 """ 86 87 raise ClientErrorAttributes, "job-sheets" 88 88 89 def __init__(self, val): 90 raise ClientErrorAttributes, "job-sheets" 91 92 class MultipleDocumentHandling(Attribute): 89 def MultipleDocumentHandling(val): 93 90 """4.2.4 multiple-document-handling (type2 keyword) 94 91 95 92 """ 96 93 97 def __init__(self, val): 98 raise ClientErrorAttributes, "multiple-document-handling" 94 raise ClientErrorAttributes, "multiple-document-handling" 99 95 100 class Copies(Attribute):96 def Copies(val): 101 97 """4.2.5 copies (integer(1:MAX)) 102 98 103 99 """ 100 101 raise ClientErrorAttributes, "copies" 104 102 105 def __init__(self, val): 106 raise ClientErrorAttributes, "copies" 107 108 class Finishings(Attribute): 103 def Finishings(*vals): 109 104 """4.2.6 finishings (1setOf type2 enum) 110 105 111 106 """ 112 107 113 def __init__(self, *vals): 114 raise ClientErrorAttributes, "finishings" 108 raise ClientErrorAttributes, "finishings" 115 109 116 class PageRanges(Attribute):110 def PageRanges(*vals): 117 111 """4.2.7 page-ranges (1setOf rangeOfInteger (1:MAX)) 118 112 119 113 """ 120 114 121 def __init__(self, *vals): 122 raise ClientErrorAttributes, "page-ranges" 115 raise ClientErrorAttributes, "page-ranges" 123 116 124 class Sides(Attribute):117 def Sides(val): 125 118 """4.2.8 sides (type2 keyword) 126 119 127 120 """ 128 121 129 def __init__(self, val): 130 raise ClientErrorAttributes, "sides" 122 raise ClientErrorAttributes, "sides" 131 123 132 class NumberUp(Attribute):124 def NumberUp(val): 133 125 """4.2.9 number-up (integer(1:MAX)) 134 126 135 127 """ 136 128 137 def __init__(self, val): 138 raise ClientErrorAttributes, "number-up" 129 raise ClientErrorAttributes, "number-up" 139 130 140 class OrientationRequested(Attribute):131 def OrientationRequested(val): 141 132 """4.2.10 orientation-requested (type2 enum) 142 133 143 134 """ 144 135 145 def __init__(self, val): 146 raise ClientErrorAttributes, "orientation-requested" 136 raise ClientErrorAttributes, "orientation-requested" 147 137 148 class Media(Attribute):138 def Media(val): 149 139 """4.2.11 media (type3 keyword | name(MAX)) 150 140 151 141 """ 152 142 153 def __init__(self, val): 154 raise ClientErrorAttributes, "media" 143 raise ClientErrorAttributes, "media" 155 144 156 145 ### XXX: we may want to repurpose this for bitrate? 157 class PrinterResolution(Attribute):146 def PrinterResolution(val): 158 147 """4.2.12 printer-resolution (resolution) 159 148 160 149 """ 161 150 162 def __init__(self, val): 163 raise ClientErrorAttributes, "printer-resolution" 151 raise ClientErrorAttributes, "printer-resolution" 164 152 165 class PrintQuality(Attribute):153 def PrintQuality(val): 166 154 """4.2.13 print-quality (type2 enum) 167 155 168 156 """ 169 157 170 def __init__(self, val): 171 raise ClientErrorAttributes, "print-quality" 158 raise ClientErrorAttributes, "print-quality"
Note: See TracChangeset
for help on using the changeset viewer.