- Timestamp:
- Mar 10, 2011, 1:36:15 AM (14 years ago)
- Branches:
- no-cups
- Children:
- 569c377
- Parents:
- a76f440
- git-author:
- Quentin Smith <quentin@…> (03/10/11 01:36:15)
- git-committer:
- Quentin Smith <quentin@…> (03/10/11 01:36:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/ipprequest.py
rebf327d r0e5cdb3 147 147 length -= value_length 148 148 149 ippvalue = Value (value_tag, value)149 ippvalue = Value.unpack(value_tag, value) 150 150 logger.debug("value : %s" % ippvalue.value) 151 151 … … 164 164 length -= value_length 165 165 166 ippvalue = Value (value_tag, value)166 ippvalue = Value.unpack(value_tag, value) 167 167 logger.debug("value : %s" % ippvalue.value) 168 168 … … 196 196 self.attribute_groups) 197 197 198 def toBinaryData(self): 198 @property 199 def packed_value(self): 199 200 """ 200 201 Packs the value data into binary data. … … 209 210 210 211 # convert the attribute groups to binary 211 attribute_groups = ''.join([a. toBinaryData()for a in self.attribute_groups])212 attribute_groups = ''.join([a.packed_value for a in self.attribute_groups]) 212 213 213 214 # conver the end-of-attributes-tag to binary
Note: See TracChangeset
for help on using the changeset viewer.