no-cups
Last change
on this file since e58af05 was
e58af05,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Implement send-document operation and add threading so that the gutenbach server can play jobs
|
-
Property mode set to
100644
|
File size:
696 bytes
|
Line | |
---|
1 | __all__ = [ |
---|
2 | 'PrinterUri', |
---|
3 | 'RequestingUserName', |
---|
4 | 'IppAttributeFidelity', |
---|
5 | 'LastDocument' |
---|
6 | ] |
---|
7 | |
---|
8 | from .. import Attribute |
---|
9 | from .. import Value |
---|
10 | from .. import errors |
---|
11 | from .. import CharacterStringTags, IntegerTags |
---|
12 | |
---|
13 | def PrinterUri(val): |
---|
14 | return Attribute( |
---|
15 | 'printer-uri', |
---|
16 | [Value(CharacterStringTags.URI, val)]) |
---|
17 | |
---|
18 | def RequestingUserName(val): |
---|
19 | return Attribute( |
---|
20 | 'requesting-user-name', |
---|
21 | [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)]) |
---|
22 | |
---|
23 | def IppAttributeFidelity(val): |
---|
24 | raise errors.ClientErrorAttributes, 'ipp-attribute-fidelity' |
---|
25 | |
---|
26 | def LastDocument(val): |
---|
27 | return Attribute( |
---|
28 | 'last-document', |
---|
29 | [Value(IntegerTags.BOOLEAN, val)]) |
---|
Note: See
TracBrowser
for help on using the repository browser.