Changeset f6c6897 for server/lib/gutenbach/ipp/attribute.py
- Timestamp:
- Dec 20, 2011, 1:47:11 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 6effd50
- Parents:
- 5fe360e
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/20/11 13:47:11)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/20/11 13:47:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/attribute.py
rd04a689 rf6c6897 66 66 for value in values: 67 67 assert isinstance(value, Value), \ 68 "Value % r must be of type Value" % (value)68 "Value %s must be of type Value" % (value,) 69 69 70 70 self.name = name … … 100 100 logger.debug("dumping name : %s" % self.name) 101 101 logger.debug("dumping value_length : %i" % value_length) 102 logger.debug("dumping value : %s" % v.value)102 logger.debug("dumping value (0x%x): %s" % (v.tag, v.value)) 103 103 104 104 # the value tag in binary 105 value_tag_bin = struct.pack('>b', v.value_tag)105 tag_bin = struct.pack('>b', v.tag) 106 106 107 107 # the name length in binary … … 115 115 116 116 if i == 0: 117 values.append(''.join([ value_tag_bin,117 values.append(''.join([tag_bin, 118 118 name_length_bin, 119 119 name_bin, … … 121 121 value_bin])) 122 122 else: 123 values.append(''.join([ value_tag_bin,123 values.append(''.join([tag_bin, 124 124 name_length_bin, 125 125 value_length_bin,
Note: See TracChangeset
for help on using the changeset viewer.