source: server/lib/gutenbach/ipp/attributes/operation.py @ e58af05

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
8from .. import Attribute
9from .. import Value
10from .. import errors
11from .. import CharacterStringTags, IntegerTags
12
13def PrinterUri(val):
14    return Attribute(
15        'printer-uri',
16        [Value(CharacterStringTags.URI, val)])
17
18def RequestingUserName(val):
19    return Attribute(
20        'requesting-user-name',
21        [Value(CharacterStringTags.NAME_WITHOUT_LANGUAGE, val)])
22
23def IppAttributeFidelity(val):
24    raise errors.ClientErrorAttributes, 'ipp-attribute-fidelity'
25
26def LastDocument(val):
27    return Attribute(
28        'last-document',
29        [Value(IntegerTags.BOOLEAN, val)])
Note: See TracBrowser for help on using the repository browser.