no-cups
Last change
on this file since aded2d1 was
aded2d1,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Checkpoint, creating classes for specific IPP attributes
|
-
Property mode set to
100644
|
File size:
585 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 | class PrinterUri(Attribute): |
---|
12 | def __init__(self, val): |
---|
13 | super(type(self), self).__init__( |
---|
14 | 'printer-uri', |
---|
15 | [Value(CharacterStringTags.URI, val)]) |
---|
16 | |
---|
17 | class RequestingUserName(Attribute): |
---|
18 | def __init__(self, val): |
---|
19 | super(type(self), self).__init__( |
---|
20 | 'requesting-user-name', |
---|
21 | [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) |
---|
Note: See
TracBrowser
for help on using the repository browser.