- Timestamp:
- Mar 10, 2011, 2:04:52 AM (14 years ago)
- Branches:
- no-cups
- Children:
- 7a1c039
- Parents:
- 0e5cdb3
- git-author:
- Quentin Smith <quentin@…> (03/10/11 02:04:52)
- git-committer:
- Quentin Smith <quentin@…> (03/10/11 02:04:52)
- Location:
- server/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/ippattribute.py
r75c0cab r569c377 64 64 for value in values: 65 65 assert isinstance(value, Value), \ 66 "Value must be of type Value"66 "Value %r must be of type Value" % (value) 67 67 68 68 self.name = name -
server/lib/ippattributegroup.py
ra76f440 r569c377 34 34 35 35 if attribute_group_tag is not None: 36 assert isinstance(attribute_group_tag, char), \36 assert isinstance(attribute_group_tag, int), \ 37 37 "attribute_group_tag must be a character!" 38 38 39 39 40 40 self.attribute_group_tag = attribute_group_tag 41 self.attributes []41 self.attributes = [] 42 42 self.extend(attributes) 43 43 -
server/lib/ipprequest.py
r0e5cdb3 r569c377 5 5 from ippattribute import Attribute 6 6 from ippvalue import Value 7 from ippconstants import * 7 8 8 9 # initialize logger -
server/lib/ippvalue.py
ra6a1f43 r569c377 99 99 value = struct.unpack('>i', packed_value)[0] 100 100 elif value_tag == IntegerTags.BOOLEAN: 101 value = struct.unpack('> ?', packed_value)[0]101 value = struct.unpack('>b', packed_value)[0] 102 102 elif value_tag == IntegerTags.ENUM: 103 103 value = struct.unpack('>i', packed_value)[0] … … 196 196 packed_value = struct.pack('>i', self.value) 197 197 elif self.value_tag == IntegerTags.BOOLEAN: 198 packed_value = struct.pack('> ?', self.value)198 packed_value = struct.pack('>b', self.value) 199 199 elif self.value_tag == IntegerTags.ENUM: 200 200 packed_value = struct.pack('>i', self.value)
Note: See TracChangeset
for help on using the changeset viewer.