Changeset 7a1c039


Ignore:
Timestamp:
Mar 10, 2011, 9:54:17 PM (13 years ago)
Author:
Quentin Smith <quentin@…>
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)
Message:

Move IPP modules into the 'ipp' namespace

Location:
server/lib
Files:
1 added
6 moved

Legend:

Unmodified
Added
Removed
  • server/lib/ipp/attribute.py

    r569c377 r7a1c039  
    22
    33import sys, struct, logging
    4 from ippvalue import Value
     4from .value import Value
    55
    66# initialize logger
    7 logger = logging.getLogger("ippLogger")
     7logger = logging.getLogger(__name__)
    88
    99class Attribute(object):
     
    4040    """
    4141
    42     def __init__(self, name=None, values=[]):
     42    def __init__(self, name=None, values=None):
    4343        """
    4444        Initialize an Attribute.  This function can be called in three
     
    6262            assert isinstance(name, str), \
    6363                   "Attribute name must be a string!"
     64        if values is None:
     65            values = []
    6466        for value in values:
    6567            assert isinstance(value, Value), \
  • server/lib/ipp/attributegroup.py

    r569c377 r7a1c039  
    22
    33import sys, struct, logging
    4 from ippattribute import Attribute
     4from .attribute import Attribute
    55
    66# initialize logger
    7 logger = logging.getLogger("ippLogger")
     7logger = logging.getLogger(__name__)
    88
    99class AttributeGroup(object):
  • server/lib/ipp/request.py

    r569c377 r7a1c039  
    22
    33import sys, struct, logging
    4 from ippattributegroup import AttributeGroup
    5 from ippattribute import Attribute
    6 from ippvalue import Value
    7 from ippconstants import *
     4from .attributegroup import AttributeGroup
     5from .attribute import Attribute
     6from .value import Value
     7from .constants import AttributeTags
    88
    99# initialize logger
    10 logger = logging.getLogger("ippLogger")
     10logger = logging.getLogger(__name__)
    1111
    1212class Request():
  • server/lib/ipp/value.py

    r569c377 r7a1c039  
    22
    33import sys, struct, logging
    4 from ippconstants import *
     4from .constants import OutOfBandTags, IntegerTags, OctetStringTags, CharacterStringTags
    55
    66# initialize logger
    7 logger = logging.getLogger("ippLogger")
     7logger = logging.getLogger(__name__)
    88
    99def setter(prop):
Note: See TracChangeset for help on using the changeset viewer.