Ignore:
Timestamp:
Mar 5, 2011, 10:42:40 PM (13 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
no-cups
Children:
5cfb358
Parents:
cf1d291
git-author:
Jessica B. Hamrick <jhamrick@…> (03/05/11 22:42:40)
git-committer:
Jessica B. Hamrick <jhamrick@…> (03/05/11 22:42:40)
Message:

Change IPPValue, IPPAttribute, IPPAttributeGroup, and IPPRequest to Value, Attribute, AttributeGroup?, and Request, respectively, to make things a little less verbose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/ippattributegroup.py

    r2646571 rebf327d  
    22
    33import sys, struct, logging
    4 from ippattribute import IPPAttribute
     4from ippattribute import Attribute
    55
    66# initialize logger
    77logger = logging.getLogger("ippLogger")
    88
    9 class IPPAttributeGroup():
     9class AttributeGroup():
    1010    """
    11     An IPPAttributeGroup consists of an attribute-group-tag, followed
    12     by a sequence of IPPAttributes.
     11    An AttributeGroup consists of an attribute-group-tag, followed by
     12    a sequence of Attributes.
    1313    """
    1414
    1515    def __init__(self, attribute_group_tag, attributes=[]):
    1616        """
    17         Initialize an IPPAttributeGroup.
     17        Initialize an AttributeGroup.
    1818
    1919        Arguments:
     
    2828        assert attribute_group_tag is not None
    2929
    30         # make sure attributes is a list or tuple of IPPAttributes
     30        # make sure attributes is a list or tuple of Attributes
    3131        assert isinstance(attributes, (list, tuple))
    32         for a in attributes: assert isinstance(a, IPPAttribute)
     32        for a in attributes: assert isinstance(a, Attribute)
    3333
    3434        self.attribute_group_tag = attribute_group_tag
     
    4040    def toBinaryData(self):
    4141        """
    42         Convert the IPPAttributeGroup to binary.
     42        Convert the AttributeGroup to binary.
    4343        """
    4444
Note: See TracChangeset for help on using the changeset viewer.