- 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/printer_description_attributes.py
raded2d1 rb828a96 44 44 from ..constants import * 45 45 46 class PrinterUriSupported(Attribute):46 def PrinterUriSupported(*vals): 47 47 """4.4.1 printer-uri-supported (1setOf uri) 48 48 … … 63 63 """ 64 64 65 def __init__(self, *vals): 66 super(type(self), self).__init__( 67 'printer-uri-supported', 68 [Value(CharacterStringTags.URI, val) for val in vals]) 69 70 71 class UriAuthenticationSupported(Attribute): 65 return Attribute( 66 'printer-uri-supported', 67 [Value(CharacterStringTags.URI, val) for val in vals]) 68 69 70 def UriAuthenticationSupported(*vals): 72 71 """4.4.2 uri-authentication-supported (1setOf type2 keyword) 73 72 … … 86 85 """ 87 86 88 def __init__(self, val): 89 super(type(self), self).__init__( 90 'uri-authentication-supported', 91 [Value(CharacterStringTags.KEYWORD, val)]) 92 93 class UriSecuritySupported(Attribute): 87 return Attribute( 88 'uri-authentication-supported', 89 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 90 91 def UriSecuritySupported(*vals): 94 92 """4.4.3 uri-security-supported (1setOf type2 keyword) 95 93 … … 117 115 """ 118 116 119 def __init__(self, val): 120 super(type(self), self).__init__( 121 'uri-security-supported', 122 [Value(CharacterStringTags.KEYWORD, val)]) 123 124 class PrinterName(Attribute): 117 return Attribute( 118 'uri-security-supported', 119 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 120 121 def PrinterName(val): 125 122 """4.4.4 printer-name (name(127)) 126 123 … … 134 131 """ 135 132 136 def __init__(self, val): 137 super(type(self), self).__init__( 138 'printer-name', 139 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 140 141 class PrinterLocation(Attribute): 133 return Attribute( 134 'printer-name', 135 [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) 136 137 def PrinterLocation(val): 142 138 """4.4.5 printer-location (text(127)) 143 139 144 140 """ 145 141 146 def __init__(self, val): 147 raise ClientErrorAttributes, "printer-location" 148 149 class PrinterInfo(Attribute): 142 raise ClientErrorAttributes, "printer-location" 143 144 def PrinterInfo(val): 150 145 """4.4.6 printer-info (text(127)) 151 146 152 147 """ 153 148 154 def __init__(self, val): 155 raise ClientErrorAttributes, "printer-info" 156 157 class PrinterMoreInfo(Attribute): 149 raise ClientErrorAttributes, "printer-info" 150 151 def PrinterMoreInfo(val): 158 152 """4.4.7 printer-more-info (uri) 159 153 160 154 """ 161 155 162 def __init__(self, val): 163 raise ClientErrorAttributes, "printer-more-info" 164 165 class PrinterDriverInstaller(Attribute): 156 raise ClientErrorAttributes, "printer-more-info" 157 158 def PrinterDriverInstaller(val): 166 159 """4.4.8 printer-driver-installer (uri) 167 160 168 161 """ 169 162 170 def __init__(self, val): 171 raise ClientErrorAttributes, "printer-driver-installer" 172 173 class PrinterMakeAndModel(Attribute): 163 raise ClientErrorAttributes, "printer-driver-installer" 164 165 def PrinterMakeAndModel(val): 174 166 """4.4.9 printer-make-and-model (text(127)) 175 167 176 168 """ 177 169 178 def __init__(self, val): 179 raise ClientErrorAttributes, "printer-make-and-model" 180 181 class PrinterMoreInfoManufacturer(Attribute): 170 raise ClientErrorAttributes, "printer-make-and-model" 171 172 def PrinterMoreInfoManufacturer(val): 182 173 """4.4.10 printer-more-info-manufacturer (uri) 183 174 184 175 """ 185 176 186 def __init__(self, val): 187 raise ClientErrorAttributes, "printer-more-info-manufacturer" 188 189 class PrinterState(Attribute): 177 raise ClientErrorAttributes, "printer-more-info-manufacturer" 178 179 def PrinterState(val): 190 180 """4.4.11 printer-state (type1 enum) 191 181 … … 203 193 """ 204 194 205 def __init__(self, val): 206 super(type(self), self).__init__( 207 'printer-state', 208 [Value(IntegerTags.ENUM, val)]) 209 210 class PrinterStateReasons(Attribute): 195 return Attribute( 196 'printer-state', 197 [Value(IntegerTags.ENUM, val)]) 198 199 def PrinterStateReasons(*vals): 211 200 """4.4.12 printer-state-reasons (1setOf type2 keyword) 212 201 … … 221 210 """ 222 211 223 def __init__(self, val): 224 super(type(self), self).__init__( 225 'printer-state-reasons', 226 [Value(CharacterStringTags.KEYWORD, val)]) 227 228 class PrinterStateMessage(Attribute): 212 return Attribute( 213 'printer-state-reasons', 214 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 215 216 def PrinterStateMessage(val): 229 217 """4.4.13 printer-state-message (text(MAX)) 230 218 231 219 """ 232 220 233 def __init__(self, val): 234 raise ClientErrorAttributes, "printer-state-message" 235 236 class IppVersionsSupported(Attribute): 221 raise ClientErrorAttributes, "printer-state-message" 222 223 def IppVersionsSupported(*vals): 237 224 """4.4.14 ipp-versions-supported (1setOf type2 keyword) 238 225 … … 266 253 """ 267 254 268 def __init__(self, *vals): 269 super(type(self), self).__init__( 270 'ipp-versions-supported', 271 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 272 273 class OperationsSupported(Attribute): 255 return Attribute( 256 'ipp-versions-supported', 257 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 258 259 def OperationsSupported(*vals): 274 260 """4.4.15 operations-supported (1setOf type2 enum) 275 261 … … 286 272 """ 287 273 288 def __init__(self, *vals): 289 super(type(self), self).__init__( 290 'operations-supported', 291 [Value(IntegerTags.ENUM, val) for val in vals]) 292 293 class MultipleDocumentJobsSupported(Attribute): 274 return Attribute( 275 'operations-supported', 276 [Value(IntegerTags.ENUM, val) for val in vals]) 277 278 def MultipleDocumentJobsSupported(val): 294 279 """4.4.16 multiple-document-jobs-supported (boolean) 295 280 … … 302 287 """ 303 288 304 def __init__(self, val): 305 super(type(self), self).__init__( 306 'multiple-document-jobs-supported', 307 [Value(IntegerTags.BOOLEAN, val)]) 308 309 class CharsetConfigured(Attribute): 289 return Attribute( 290 'multiple-document-jobs-supported', 291 [Value(IntegerTags.BOOLEAN, val)]) 292 293 def CharsetConfigured(val): 310 294 """4.4.17 charset-configured (charset) 311 295 … … 321 305 """ 322 306 323 def __init__(self, val): 324 super(type(self), self).__init__( 325 'charset-configured', 326 [Value(CharacterStringTags.CHARSET, val)]) 327 328 class CharsetSupported(Attribute): 307 return Attribute( 308 'charset-configured', 309 [Value(CharacterStringTags.CHARSET, val)]) 310 311 def CharsetSupported(*vals): 329 312 """4.4.18 charset-supported (1setOf charset) 330 313 … … 344 327 """ 345 328 346 def __init__(self, *vals): 347 super(type(self), self).__init__( 348 'charset-supported', 349 [Value(CharacterStringTags.CHARSET, val) for val in vals]) 350 351 class NaturalLanguageConfigured(Attribute): 329 return Attribute( 330 'charset-supported', 331 [Value(CharacterStringTags.CHARSET, val) for val in vals]) 332 333 def NaturalLanguageConfigured(val): 352 334 """4.4.19 natural-language-configured (naturalLanguage) 353 335 … … 370 352 """ 371 353 372 def __init__(self, val): 373 super(type(self), self).__init__( 374 'natural-language-configured', 375 [Value(CharacterStringTags.NATURAL_LANGUAGE, val)]) 376 377 class GeneratedNaturalLanguageSupported(Attribute): 354 return Attribute( 355 'natural-language-configured', 356 [Value(CharacterStringTags.NATURAL_LANGUAGE, val)]) 357 358 def GeneratedNaturalLanguageSupported(*vals): 378 359 """4.4.20 generated-natural-language-supported (1setOf naturalLanguage) 379 360 … … 402 383 """ 403 384 404 def __init__(self, *vals): 405 super(type(self), self).__init__( 406 'generated-natural-language-supported', 407 [Value(CharacterStringTags.NATURAL_LANGUAGE, val) for val in vals]) 408 409 class DocumentFormatDefault(Attribute): 385 return Attribute( 386 'generated-natural-language-supported', 387 [Value(CharacterStringTags.NATURAL_LANGUAGE, val) for val in vals]) 388 389 def DocumentFormatDefault(val): 410 390 """4.4.21 document-format-default (mimeMediaType) 411 391 … … 421 401 """ 422 402 423 def __init__(self, val): 424 super(type(self), self).__init__( 425 'document-format-default', 426 [Value(CharacterStringTags.MIME_MEDIA_TYPE, val)]) 427 428 class DocumentFormatSupported(Attribute): 403 return Attribute( 404 'document-format-default', 405 [Value(CharacterStringTags.MIME_MEDIA_TYPE, val)]) 406 407 def DocumentFormatSupported(*vals): 429 408 """4.4.22 document-format-supported (1setOf mimeMediaType) 430 409 … … 436 415 """ 437 416 438 def __init__(self, *vals): 439 super(type(self), self).__init__( 440 'document-format-supported', 441 [Value(CharacterStringTags.MIME_MEDIA_TYPE, val) for val in vals]) 442 443 class PrinterIsAcceptingJobs(Attribute): 417 return Attribute( 418 'document-format-supported', 419 [Value(CharacterStringTags.MIME_MEDIA_TYPE, val) for val in vals]) 420 421 def PrinterIsAcceptingJobs(val): 444 422 """4.4.23 printer-is-accepting-jobs (boolean) 445 423 … … 462 440 """ 463 441 464 def __init__(self, val): 465 super(type(self), self).__init__( 466 'printer-is-accepting-jobs', 467 [Value(IntegerTags.BOOLEAN, val)]) 468 469 class QueuedJobCount(Attribute): 442 return Attribute( 443 'printer-is-accepting-jobs', 444 [Value(IntegerTags.BOOLEAN, val)]) 445 446 def QueuedJobCount(val): 470 447 """4.4.24 queued-job-count (integer(0:MAX)) 471 448 … … 476 453 """ 477 454 478 def __init__(self, val): 479 super(type(self), self).__init__( 480 'queued-job-count', 481 [Value(IntegerTags.INTEGER, val)]) 482 483 class PrinterMessageFromOperator(Attribute): 455 return Attribute( 456 'queued-job-count', 457 [Value(IntegerTags.INTEGER, val)]) 458 459 def PrinterMessageFromOperator(val): 484 460 """4.4.25 printer-message-from-operator (text(127)) 485 461 486 462 """ 487 463 488 def __init__(self, val): 489 raise ClientErrorAttributes, "printer-message-from-operator" 490 491 class ColorSupported(Attribute): 464 raise ClientErrorAttributes, "printer-message-from-operator" 465 466 def ColorSupported(val): 492 467 """4.4.26 color-supported (boolean) 493 468 494 469 """ 495 470 496 def __init__(self, val): 497 raise ClientErrorAttributes, "color-supported" 498 499 class ReferenceUriSchemeSupported(Attribute): 471 raise ClientErrorAttributes, "color-supported" 472 473 def ReferenceUriSchemeSupported(val): 500 474 """4.4.27 reference-uri-schemes-supported (1setOf uriScheme) 501 475 502 476 """ 503 477 504 def __init__(self, *vals): 505 raise ClientErrorAttributes, "reference-uri-scheme-supported" 506 507 class PdlOverrideSupported(Attribute): 478 raise ClientErrorAttributes, "reference-uri-scheme-supported" 479 480 def PdlOverrideSupported(val): 508 481 """4.4.28 pdl-override-supported (type2 keyword) 509 482 … … 528 501 """ 529 502 530 def __init__(self, val): 531 super(type(self), self).__init__( 532 'pdl-override-supported', 533 [Value(CharacterStringTags.KEYWORD, val)]) 534 535 class PrinterUpTime(Attribute): 503 return Attribute( 504 'pdl-override-supported', 505 [Value(CharacterStringTags.KEYWORD, val)]) 506 507 def PrinterUpTime(val): 536 508 """4.4.29 printer-up-time (integer(1:MAX)) 537 509 … … 566 538 """ 567 539 568 def __init__(self, val): 569 super(type(self), self).__init__( 570 'printer-up-time', 571 [Value(IntegerTags.INTEGER, val)]) 572 573 class PrinterCurrentTime(Attribute): 540 return Attribute( 541 'printer-up-time', 542 [Value(IntegerTags.INTEGER, val)]) 543 544 def PrinterCurrentTime(val): 574 545 """4.4.30 printer-current-time (dateTime) 575 546 576 547 """ 577 548 578 def __init__(self, val): 579 raise ClientErrorAttributes, "printer-current-time" 580 581 class MultipleOperationTimeOut(Attribute): 549 raise ClientErrorAttributes, "printer-current-time" 550 551 def MultipleOperationTimeOut(val): 582 552 """4.4.31 multiple-operation-time-out (integer(1:MAX)) 583 553 … … 598 568 """ 599 569 600 def __init__(self, val): 601 super(type(self), self).__init__( 602 'multiple-operation-time-out', 603 [Value(IntegerTags.INTEGER, val)]) 604 605 class CompressionSupported(Attribute): 570 return Attribute( 571 'multiple-operation-time-out', 572 [Value(IntegerTags.INTEGER, val)]) 573 574 def CompressionSupported(*vals): 606 575 """4.4.32 compression-supported (1setOf type3 keyword) 607 576 … … 623 592 """ 624 593 625 def __init__(self, *vals): 626 super(type(self), self).__init__( 627 'compression-supported', 628 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 629 630 class JobKOctetsSupported(Attribute): 594 return Attribute( 595 'compression-supported', 596 [Value(CharacterStringTags.KEYWORD, val) for val in vals]) 597 598 def JobKOctetsSupported(val): 631 599 """4.4.33 job-k-octets-supported (rangeOfInteger(0:MAX)) 632 600 633 601 """ 634 602 635 def __init__(self, val): 636 raise ClientErrorAttributes, "job-k-octets-supported" 637 638 class JobImpressionsSupported(Attribute): 603 raise ClientErrorAttributes, "job-k-octets-supported" 604 605 def JobImpressionsSupported(val): 639 606 """4.4.34 job-impressions-supported (rangeOfInteger(0:MAX)) 640 607 641 608 """ 642 609 643 def __init__(self, val): 644 raise ClientErrorAttributes, "job-impressions-supported" 645 646 class JobMediaSheetsSupported(Attribute): 610 raise ClientErrorAttributes, "job-impressions-supported" 611 612 def JobMediaSheetsSupported(val): 647 613 """4.4.35 job-media-sheets-supported (rangeOfInteger(0:MAX)) 648 614 649 615 """ 650 616 651 def __init__(self, val): 652 raise ClientErrorAttributes, "job-media-sheets-supported" 653 654 class PagesPerMinute(Attribute): 617 raise ClientErrorAttributes, "job-media-sheets-supported" 618 619 def PagesPerMinute(val): 655 620 """4.4.36 pages-per-minute (integer(0:MAX)) 656 621 657 622 """ 658 623 659 def __init__(self, val): 660 raise ClientErrorAttributes, "pages-per-minute" 661 662 class PagesPerMinuteColor(Attribute): 624 raise ClientErrorAttributes, "pages-per-minute" 625 626 def PagesPerMinuteColor(val): 663 627 """4.4.37 pages-per-minute-color (integer(0:MAX)) 664 628 665 629 """ 666 630 667 def __init__(self, val): 668 raise ClientErrorAttributes, "pages-per-minute-color" 669 631 raise ClientErrorAttributes, "pages-per-minute-color" 632
Note: See TracChangeset
for help on using the changeset viewer.