Changeset ebf327d for server/lib/ippattribute.py
- Timestamp:
- Mar 5, 2011, 10:42:40 PM (14 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/ippattribute.py
r2646571 rebf327d 2 2 3 3 import sys, struct, logging 4 from ippvalue import IPPValue4 from ippvalue import Value 5 5 6 6 # initialize logger 7 7 logger = logging.getLogger("ippLogger") 8 8 9 class IPPAttribute():9 class Attribute(): 10 10 """ 11 11 In addition to what the RFC reports, an attribute has an … … 42 42 def __init__(self, name, values): 43 43 """ 44 Initialize an IPPAttribute.44 Initialize an Attribute. 45 45 46 46 Arguments: … … 48 48 name -- the name of the attribute 49 49 50 values -- a list of IPPValues. May not be empty.50 values -- a list of Values. May not be empty. 51 51 """ 52 52 … … 56 56 # make sure the list of values isn't empty 57 57 assert len(values) > 0 58 # make sure each value is a n IPPValue59 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) 60 60 61 61 self.name = name
Note: See TracChangeset
for help on using the changeset viewer.