Changeset 2190 for pykota/trunk

Show
Ignore:
Timestamp:
03/31/05 00:31:34 (20 years ago)
Author:
jerome
Message:

Makes ipp.py output all the available data when launched in test mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/ipp.py

    r2147 r2190  
    109109        return value         
    110110    get = __getitem__     
     111     
     112    def keys(self) : 
     113        """Fakes a dictionnary .keys() method.""" 
     114        return self._attributes.keys() 
    111115         
    112116    def parseTag(self) :     
     
    176180        message = IPPMessage(infile.read()) 
    177181        infile.close() 
    178         print "Client hostname : %s" % message["job-originating-host-name"] 
     182        for key in message.keys() : 
     183            print "%s : %s" % (key, message[key])