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/ippattribute.py

    r2646571 rebf327d  
    22
    33import sys, struct, logging
    4 from ippvalue import IPPValue
     4from ippvalue import Value
    55
    66# initialize logger
    77logger = logging.getLogger("ippLogger")
    88
    9 class IPPAttribute():
     9class Attribute():
    1010    """
    1111    In addition to what the RFC reports, an attribute has an
     
    4242    def __init__(self, name, values):
    4343        """
    44         Initialize an IPPAttribute.
     44        Initialize an Attribute.
    4545       
    4646        Arguments:
     
    4848            name -- the name of the attribute
    4949
    50             values -- a list of IPPValues.  May not be empty.
     50            values -- a list of Values.  May not be empty.
    5151        """
    5252
     
    5656        # make sure the list of values isn't empty
    5757        assert len(values) > 0
    58         # make sure each value is an IPPValue
    59         for value in values: assert isinstance(value, IPPValue)
     58        # make sure each value is a Value
     59        for value in values: assert isinstance(value, Value)
    6060         
    6161        self.name = name
Note: See TracChangeset for help on using the changeset viewer.