163 | | else : |
164 | | buffer = [] |
165 | | buffer.append("IPP version : %s.%s" % self.version) |
166 | | buffer.append("IPP operation Id : 0x%04x" % self.operation_id) |
167 | | buffer.append("IPP request Id : 0x%08x" % self.request_id) |
168 | | for attrtype in self.attributes_types : |
169 | | attrdict = getattr(self, "%s_attributes" % attrtype) |
170 | | if attrdict : |
171 | | buffer.append("%s attributes :" % attrtype.title()) |
172 | | for key in attrdict.keys() : |
173 | | buffer.append(" %s : %s" % (key, attrdict[key])) |
174 | | if self.data : |
175 | | buffer.append("IPP datas : %s" % repr(message.data)) |
176 | | return "\n".join(buffer) |
| 163 | buffer = [] |
| 164 | buffer.append("IPP version : %s.%s" % self.version) |
| 165 | buffer.append("IPP operation Id : 0x%04x" % self.operation_id) |
| 166 | buffer.append("IPP request Id : 0x%08x" % self.request_id) |
| 167 | for attrtype in self.attributes_types : |
| 168 | attrdict = getattr(self, "%s_attributes" % attrtype) |
| 169 | if attrdict : |
| 170 | buffer.append("%s attributes :" % attrtype.title()) |
| 171 | for key in attrdict.keys() : |
| 172 | buffer.append(" %s : %s" % (key, attrdict[key])) |
| 173 | if self.data : |
| 174 | buffer.append("IPP datas : %s" % repr(message.data)) |
| 175 | return "\n".join(buffer) |