- 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_description_attributes.py
raded2d1 rb828a96 37 37 from ..constants import * 38 38 39 class JobUri(Attribute):39 def JobUri(val): 40 40 """4.3.1 job-uri (uri) 41 41 … … 61 61 """ 62 62 63 def __init__(self, val): 64 super(type(self), self).__init__( 65 'job-uri', 66 [Value(CharacterStringTags.URI, val)]) 67 68 class JobId(Attribute): 63 return Attribute( 64 'job-uri', 65 [Value(CharacterStringTags.URI, val)]) 66 67 def JobId(val): 69 68 """4.3.2 job-id (integer(1:MAX)) 70 69 … … 82 81 """ 83 82 84 def __init__(self, val): 85 super(type(self), self).__init__( 86 'job-id', 87 [Value(IntegerTags.INTEGER, val)]) 88 89 class JobPrinterUri(Attribute): 83 return Attribute( 84 'job-id', 85 [Value(IntegerTags.INTEGER, val)]) 86 87 def JobPrinterUri(val): 90 88 """4.3.3 job-printer-uri (uri) 91 89 … … 105 103 """ 106 104 107 def __init__(self, val): 108 super(type(self), self).__init__( 109 'job-printer-uri', 110 [Value(CharacterStringTags.URI, val)]) 111 112 class JobMoreInfo(Attribute): 105 return Attribute( 106 'job-printer-uri', 107 [Value(CharacterStringTags.URI, val)]) 108 109 def JobMoreInfo(val): 113 110 """4.3.4 job-more-info (uri) 114 111 115 112 """ 116 113 117 def __init__(self, val): 118 raise ClientErrorAttributes, "job-more-info" 119 120 class JobName(Attribute): 114 raise ClientErrorAttributes, "job-more-info" 115 116 def JobName(val): 121 117 """4.3.5 job-name (name(MAX)) 122 118 … … 138 134 """ 139 135 140 def __init__(self, val): 141 super(type(self), self).__init__( 142 'job-name', 143 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 144 145 class JobOriginatingUserName(Attribute): 136 return Attribute( 137 'job-name', 138 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 139 140 def JobOriginatingUserName(val): 146 141 """4.3.6 job-originating-user-name (name(MAX)) 147 142 … … 163 158 """ 164 159 165 def __init__(self, val): 166 super(type(self), self).__init__( 167 'job-originating-user-name', 168 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 169 170 class JobState(Attribute): 160 return Attribute( 161 'job-originating-user-name', 162 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 163 164 def JobState(val): 171 165 """4.3.7 job-state (type1 enum) 172 166 … … 181 175 """ 182 176 183 def __init__(self, val): 184 super(type(self), self).__init__( 185 'job-state', 186 [Value(IntegerTags.ENUM, val)]) 187 188 class JobStateReasons(Attribute): 177 return Attribute( 178 'job-state', 179 [Value(IntegerTags.ENUM, val)]) 180 181 def JobStateReasons(val): 189 182 """4.3.8 job-state-reasons (1setOf type2 keyword) 190 183 … … 212 205 """ 213 206 214 def __init__(self, *vals): 215 super(type(self), self).__init__( 216 'job-state-reasons', 217 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 218 219 class JobStateMessage(Attribute): 207 return Attribute( 208 'job-state-reasons', 209 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 210 211 def JobStateMessage(val): 220 212 """4.3.9 job-state-message (text(MAX)) 221 213 222 214 """ 223 215 224 def __init__(self, val): 225 raise ClientErrorAttributes, "job-state-message" 226 227 class JobDetailedStatusMessages(Attribute): 216 raise ClientErrorAttributes, "job-state-message" 217 218 def JobDetailedStatusMessages(val): 228 219 """4.3.10 job-detailed-status-messages (1setOf text(MAX)) 229 220 230 221 """ 231 222 232 def __init__(self, *vals): 233 raise ClientErrorAttributes, "job-detailed-status-messages" 234 235 class JobDocumentAccessErrors(Attribute): 223 raise ClientErrorAttributes, "job-detailed-status-messages" 224 225 def JobDocumentAccessErrors(val): 236 226 """4.3.11 job-document-access-errors (1setOf text(MAX)) 237 227 238 228 """ 239 229 240 def __init__(self, *vals): 241 raise ClientErrorAttributes, "job-document-access-errors" 242 243 class NumberOfDocuments(Attribute): 230 raise ClientErrorAttributes, "job-document-access-errors" 231 232 def NumberOfDocuments(val): 244 233 """4.3.12 number-of-documents (integer(0:MAX)) 245 234 246 235 """ 247 236 248 def __init__(self, val): 249 raise ClientErrorAttributes, "number-of-documents" 250 251 class OutputDeviceAssigned(Attribute): 237 raise ClientErrorAttributes, "number-of-documents" 238 239 def OutputDeviceAssigned(val): 252 240 """4.3.13 output-device-assigned (name(127)) 253 241 254 242 """ 255 243 256 def __init__(self, val): 257 raise ClientErrorAttributes, "output-device-assigned" 258 259 class TimeAtCreation(Attribute): 244 raise ClientErrorAttributes, "output-device-assigned" 245 246 def TimeAtCreation(val): 260 247 """4.3.14.1 time-at-creation (integer(MIN:MAX)) 261 248 … … 265 252 """ 266 253 267 def __init__(self, val): 268 super(type(self), self).__init__( 269 "time-at-creation", 270 [Value(IntegerTags.INTEGER, val)]) 271 272 class TimeAtProcessing(Attribute): 254 return Attribute( 255 "time-at-creation", 256 [Value(IntegerTags.INTEGER, val)]) 257 258 def TimeAtProcessing(val): 273 259 """4.3.14.2 time-at-processing (integer(MIN:MAX)) 274 260 … … 281 267 """ 282 268 283 def __init__(self, val): 284 super(type(self), self).__init__( 285 "time-at-processing", 286 [Value(IntegerTags.INTEGER, val)]) 287 288 class TimeAtCompleted(Attribute): 269 return Attribute( 270 "time-at-processing", 271 [Value(IntegerTags.INTEGER, val)]) 272 273 def TimeAtCompleted(val): 289 274 """4.3.14.3 time-at-completed (integer(MIN:MAX)) 290 275 … … 296 281 """ 297 282 298 def __init__(self, val): 299 super(type(self), self).__init__( 300 "time-at-completed", 301 [Value(IntegerTags.INTEGER, val)]) 302 303 class JobPrinterUpTime(Attribute): 283 return Attribute( 284 "time-at-completed", 285 [Value(IntegerTags.INTEGER, val)]) 286 287 def JobPrinterUpTime(val): 304 288 """4.3.14.4 job-printer-up-time (integer(1:MAX)) 305 289 … … 321 305 """ 322 306 323 def __init__(self, val): 324 super(type(self), self).__init__( 325 "job-printer-up-time", 326 [Value(IntegerTags.INTEGER, val)]) 327 328 329 class DateTimeAtCreation(Attribute): 307 return Attribute( 308 "job-printer-up-time", 309 [Value(IntegerTags.INTEGER, val)]) 310 311 312 def DateTimeAtCreation(val): 330 313 """4.3.14.5 date-time-at-creation (dateTime) 331 314 332 315 """ 333 316 334 def __init__(self, val): 335 raise ClientErrorAttributes, "date-time-at-creation" 336 337 class DateTimeAtProcessing(Attribute): 317 raise ClientErrorAttributes, "date-time-at-creation" 318 319 def DateTimeAtProcessing(val): 338 320 """4.3.14.6 date-time-at-processing (dateTime) 339 321 340 322 """ 341 323 342 def __init__(self, val): 343 raise ClientErrorAttributes, "date-time-at-processing" 344 345 class DateTimeAtCompletion(Attribute): 324 raise ClientErrorAttributes, "date-time-at-processing" 325 326 def DateTimeAtCompletion(val): 346 327 """4.3.14.7 date-time-at-completed (dateTime) 347 328 348 329 """ 349 330 350 def __init__(self, val): 351 raise ClientErrorAttributes, "date-time-at-completion" 352 353 class NumberOfInterveningJobs(Attribute): 331 raise ClientErrorAttributes, "date-time-at-completion" 332 333 def NumberOfInterveningJobs(val): 354 334 """4.3.15 number-of-intervening-jobs (integer(0:MAX)) 355 335 356 336 """ 357 337 358 def __init__(self, val): 359 raise ClientErrorAttributes, "number-of-intervening-jobs" 360 361 class JobMessageFromOperator(Attribute): 338 raise ClientErrorAttributes, "number-of-intervening-jobs" 339 340 def JobMessageFromOperator(val): 362 341 """4.3.16 job-message-from-operator (text(127)) 363 342 364 343 """ 365 344 366 def __init__(self, val): 367 raise ClientErrorAttributes, "job-message-from-operator" 368 369 class JobKOctets(Attribute): 345 raise ClientErrorAttributes, "job-message-from-operator" 346 347 def JobKOctets(val): 370 348 """4.3.17.1 job-k-octets (integer(0:MAX)) 371 349 … … 392 370 """ 393 371 394 def __init__(self, val): 395 super(type(self), self).__init__( 396 'job-k-octets', 397 [Value(IntegerTags.INTEGER, val)]) 398 399 class JobImpressions(Attribute): 372 return Attribute( 373 'job-k-octets', 374 [Value(IntegerTags.INTEGER, val)]) 375 376 def JobImpressions(val): 400 377 """4.3.17.2 job-impressions (integer(0:MAX)) 401 378 402 379 """ 403 380 404 def __init__(self, val): 405 raise ClientErrorAttributes, "job-impressions" 406 407 class JobMediaSheets(Attribute): 381 raise ClientErrorAttributes, "job-impressions" 382 383 def JobMediaSheets(val): 408 384 """4.3.17.3 job-media-sheets (integer(0:MAX)) 409 385 410 386 """ 411 387 412 def __init__(self, val): 413 raise ClientErrorAttributes, "job-media-sheets" 414 415 class JobKOctetsProcessed(Attribute): 388 raise ClientErrorAttributes, "job-media-sheets" 389 390 def JobKOctetsProcessed(val): 416 391 """4.3.18.1 job-k-octets-processed (integer(0:MAX)) 417 392 418 393 """ 419 394 420 def __init__(self, val): 421 raise ClientErrorAttributes, "job-k-octets-processed" 422 423 class JobImpressionsCompleted(Attribute): 395 raise ClientErrorAttributes, "job-k-octets-processed" 396 397 def JobImpressionsCompleted(val): 424 398 """4.3.18.2 job-impressions-completed (integer(0:MAX)) 425 399 426 400 """ 427 401 428 def __init__(self, val): 429 raise ClientErrorAttributes, "job-impressions-completed" 430 431 class JobMediaSheetsCompleted(Attribute): 402 raise ClientErrorAttributes, "job-impressions-completed" 403 404 def JobMediaSheetsCompleted(val): 432 405 """4.3.18.3 job-media-sheets-completed (integer(0:MAX)) 433 406 434 407 """ 435 408 436 def __init__(self, val): 437 raise ClientErrorAttributes, "job-media-sheets-completed" 438 439 class AttributesCharset(Attribute): 409 raise ClientErrorAttributes, "job-media-sheets-completed" 410 411 def AttributesCharset(val): 440 412 """4.3.19 attributes-charset (charset) 441 413 … … 456 428 """ 457 429 458 def __init__(self, val): 459 super(type(self), self).__init__( 460 'attributes-charset', 461 [Value(CharacterStringTags.CHARSET, val)]) 462 463 class AttributesNaturalLanguage(Attribute): 430 return Attribute( 431 'attributes-charset', 432 [Value(CharacterStringTags.CHARSET, val)]) 433 434 def AttributesNaturalLanguage(val): 464 435 """4.3.20 attributes-natural-language (naturalLanguage) 465 436 … … 477 448 """ 478 449 479 def __init__(self, val): 480 super(type(self), self).__init__( 481 'attributes-natural-language', 482 [Value(CharacterStringTags.NATURAL_LANGUAGE, val)]) 450 return Attribute( 451 'attributes-natural-language', 452 [Value(CharacterStringTags.NATURAL_LANGUAGE, val)])
Note: See TracChangeset
for help on using the changeset viewer.