Changeset 0e5cdb3 for server


Ignore:
Timestamp:
Mar 10, 2011, 1:36:15 AM (14 years ago)
Author:
Quentin Smith <quentin@…>
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)
Message:

Use new Value interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/ipprequest.py

    rebf327d r0e5cdb3  
    147147                        length -= value_length
    148148                       
    149                         ippvalue = Value(value_tag, value)
     149                        ippvalue = Value.unpack(value_tag, value)
    150150                        logger.debug("value : %s" % ippvalue.value)
    151151
     
    164164                        length -= value_length
    165165
    166                         ippvalue = Value(value_tag, value)
     166                        ippvalue = Value.unpack(value_tag, value)
    167167                        logger.debug("value : %s" % ippvalue.value)
    168168
     
    196196                      self.attribute_groups)
    197197
    198     def toBinaryData(self):
     198    @property
     199    def packed_value(self):
    199200        """
    200201        Packs the value data into binary data.
     
    209210
    210211        # 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])
    212213
    213214        # conver the end-of-attributes-tag to binary
Note: See TracChangeset for help on using the changeset viewer.