no-cups
Last change
on this file since b828a96 was
b828a96,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Use classes for standard IPP attributes
|
-
Property mode set to
100644
|
File size:
455 bytes
|
Line | |
---|
1 | __all__ = [ |
---|
2 | 'PrinterUri', |
---|
3 | 'RequestingUserName', |
---|
4 | ] |
---|
5 | |
---|
6 | from ..attribute import Attribute |
---|
7 | from ..value import Value |
---|
8 | from ..exceptions import ClientErrorAttributes |
---|
9 | from ..constants import * |
---|
10 | |
---|
11 | def PrinterUri(val): |
---|
12 | return Attribute( |
---|
13 | 'printer-uri', |
---|
14 | [Value(CharacterStringTags.URI, val)]) |
---|
15 | |
---|
16 | def RequestingUserName(val): |
---|
17 | return Attribute( |
---|
18 | 'requesting-user-name', |
---|
19 | [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) |
---|
Note: See
TracBrowser
for help on using the repository browser.