Changeset 632 for tea4cups

Show
Ignore:
Timestamp:
05/14/05 14:46:46 (20 years ago)
Author:
jerome
Message:

Now decodes integers and enums in the IPP messages

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r631 r632  
    159159        posend = pos2 + valuelength 
    160160        value = self.data[pos2:posend] 
     161        if valuetag in ("integer", "enum") : 
     162            value = unpack(">I", value) 
    161163        oldval = self._curdict.setdefault(name, []) 
    162164        oldval.append((valuetag, value))