Changeset 7a1c039
- Timestamp:
- Mar 10, 2011, 9:54:17 PM (14 years ago)
- Branches:
- no-cups
- Children:
- 01e3017
- Parents:
- 569c377
- git-author:
- Quentin Smith <quentin@…> (03/10/11 21:54:17)
- git-committer:
- Quentin Smith <quentin@…> (03/10/11 21:54:17)
- Location:
- server/lib
- Files:
-
- 1 added
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
server/lib/ipp/attribute.py
r569c377 r7a1c039 2 2 3 3 import sys, struct, logging 4 from ippvalue import Value4 from .value import Value 5 5 6 6 # initialize logger 7 logger = logging.getLogger( "ippLogger")7 logger = logging.getLogger(__name__) 8 8 9 9 class Attribute(object): … … 40 40 """ 41 41 42 def __init__(self, name=None, values= []):42 def __init__(self, name=None, values=None): 43 43 """ 44 44 Initialize an Attribute. This function can be called in three … … 62 62 assert isinstance(name, str), \ 63 63 "Attribute name must be a string!" 64 if values is None: 65 values = [] 64 66 for value in values: 65 67 assert isinstance(value, Value), \ -
server/lib/ipp/attributegroup.py
r569c377 r7a1c039 2 2 3 3 import sys, struct, logging 4 from ippattribute import Attribute4 from .attribute import Attribute 5 5 6 6 # initialize logger 7 logger = logging.getLogger( "ippLogger")7 logger = logging.getLogger(__name__) 8 8 9 9 class AttributeGroup(object): -
server/lib/ipp/request.py
r569c377 r7a1c039 2 2 3 3 import sys, struct, logging 4 from ippattributegroup import AttributeGroup5 from ippattribute import Attribute6 from ippvalue import Value7 from ippconstants import *4 from .attributegroup import AttributeGroup 5 from .attribute import Attribute 6 from .value import Value 7 from .constants import AttributeTags 8 8 9 9 # initialize logger 10 logger = logging.getLogger( "ippLogger")10 logger = logging.getLogger(__name__) 11 11 12 12 class Request(): -
server/lib/ipp/value.py
r569c377 r7a1c039 2 2 3 3 import sys, struct, logging 4 from ippconstants import *4 from .constants import OutOfBandTags, IntegerTags, OctetStringTags, CharacterStringTags 5 5 6 6 # initialize logger 7 logger = logging.getLogger( "ippLogger")7 logger = logging.getLogger(__name__) 8 8 9 9 def setter(prop):
Note: See TracChangeset
for help on using the changeset viewer.