source: server/lib/gutenbach/ipp/object_attributes/operation_attributes.py @ aded2d1

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
6from ..attribute import Attribute
7from ..value import Value
8from ..exceptions import ClientErrorAttributes
9from ..constants import *
10
11class PrinterUri(Attribute):
12    def __init__(self, val):
13        super(type(self), self).__init__(
14            'printer-uri',
15            [Value(CharacterStringTags.URI, val)])
16
17class 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.