no-cups
Last change
on this file since ee8e6d0 was
ee8e6d0,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Fix error with HTTP server recreating printer objects
|
-
Property mode set to
100644
|
File size:
522 bytes
|
Rev | Line | |
---|
[aded2d1] | 1 | __all__ = [ |
---|
| 2 | 'PrinterUri', |
---|
| 3 | 'RequestingUserName', |
---|
| 4 | ] |
---|
| 5 | |
---|
[793432f] | 6 | from .. import Attribute |
---|
| 7 | from .. import Value |
---|
| 8 | from .. import errors |
---|
| 9 | from .. import CharacterStringTags |
---|
[aded2d1] | 10 | |
---|
[b828a96] | 11 | def PrinterUri(val): |
---|
| 12 | return Attribute( |
---|
| 13 | 'printer-uri', |
---|
| 14 | [Value(CharacterStringTags.URI, val)]) |
---|
[aded2d1] | 15 | |
---|
[b828a96] | 16 | def RequestingUserName(val): |
---|
| 17 | return Attribute( |
---|
| 18 | 'requesting-user-name', |
---|
| 19 | [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) |
---|
[ee8e6d0] | 20 | |
---|
| 21 | def IppAttributeFidelity(val): |
---|
| 22 | raise errors.ClientErrorAttributes, 'ipp-attribute-fidelity' |
---|
Note: See
TracBrowser
for help on using the repository browser.