Changeset 94211df


Ignore:
Timestamp:
Mar 10, 2011, 11:16:39 PM (13 years ago)
Author:
Quentin Smith <quentin@…>
Branches:
no-cups
Children:
dc37ed0
Parents:
91abb7f
git-author:
Quentin Smith <quentin@…> (03/10/11 23:16:39)
git-committer:
Quentin Smith <quentin@…> (03/10/11 23:16:39)
Message:

Improve the repr of IPP request parts

Location:
server/lib/ipp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • server/lib/ipp/attributegroup.py

    r7a1c039 r94211df  
    103103        # concatenate everything and return
    104104        return tag + ''.join(attributes)
     105
     106    def __repr__(self):
     107        return '<IPPAttributeGroup (%r, %r)>' % (self.attribute_group_tag, self.attributes)
  • server/lib/ipp/request.py

    r7a1c039 r94211df  
    224224        # append everything together and return it
    225225        return preattributes + attribute_groups + end_of_attributes_tag + data
     226
     227    def __repr__(self):
     228        return '<IPPRequest (version=%r, operation_id=%x, request_id=%r, attribute_groups=%r)>' % (self.version, self.operation_id, self.request_id, self.attribute_groups)
  • server/lib/ipp/value.py

    r7a1c039 r94211df  
    300300
    301301    def __repr__(self):
    302         return '<IPPValue (%r, %r)>' % (self.value_tag, self.value)
     302        return '<IPPValue (%x, %r)>' % (self.value_tag, self.value)
Note: See TracChangeset for help on using the changeset viewer.