Changeset 2514
- Timestamp:
- 09/27/05 20:51:37 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/ipp.py
r2417 r2514 151 151 self.dictags[value] = i 152 152 153 def printInfo(self, msg) :153 def logdebug(self, msg) : 154 154 """Prints a debug message.""" 155 155 if self.debug : … … 270 270 oldval = self._curdict.setdefault(name, []) 271 271 oldval.append((tagtype, value)) 272 self. printInfo("%s(%s) : %s" % (name, tagtype, value))272 self.logdebug("%s(%s) : %s" % (name, tagtype, value)) 273 273 return posend - self.position 274 274 275 275 def operation_attributes_tag(self) : 276 276 """Indicates that the parser enters into an operation-attributes-tag group.""" 277 self. printInfo("Start of operation_attributes_tag")277 self.logdebug("Start of operation_attributes_tag") 278 278 self._curdict = self.operation_attributes 279 279 return self.parseTag() … … 281 281 def job_attributes_tag(self) : 282 282 """Indicates that the parser enters into a job-attributes-tag group.""" 283 self. printInfo("Start of job_attributes_tag")283 self.logdebug("Start of job_attributes_tag") 284 284 self._curdict = self.job_attributes 285 285 return self.parseTag() … … 287 287 def printer_attributes_tag(self) : 288 288 """Indicates that the parser enters into a printer-attributes-tag group.""" 289 self. printInfo("Start of printer_attributes_tag")289 self.logdebug("Start of printer_attributes_tag") 290 290 self._curdict = self.printer_attributes 291 291 return self.parseTag() … … 293 293 def unsupported_attributes_tag(self) : 294 294 """Indicates that the parser enters into an unsupported-attributes-tag group.""" 295 self. printInfo("Start of unsupported_attributes_tag")295 self.logdebug("Start of unsupported_attributes_tag") 296 296 self._curdict = self.unsupported_attributes 297 297 return self.parseTag() … … 299 299 def subscription_attributes_tag(self) : 300 300 """Indicates that the parser enters into a subscription-attributes-tag group.""" 301 self. printInfo("Start of subscription_attributes_tag")301 self.logdebug("Start of subscription_attributes_tag") 302 302 self._curdict = self.subscription_attributes 303 303 return self.parseTag() … … 305 305 def event_notification_attributes_tag(self) : 306 306 """Indicates that the parser enters into an event-notification-attributes-tag group.""" 307 self. printInfo("Start of event_notification_attributes_tag")307 self.logdebug("Start of event_notification_attributes_tag") 308 308 self._curdict = self.event_notification_attributes 309 309 return self.parseTag()