Changeset 655
- Timestamp:
- 09/28/05 23:23:29 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups
r653 r655 169 169 self.dictags[value] = i 170 170 171 def printInfo(self, msg) :171 def logDebug(self, msg) : 172 172 """Prints a debug message.""" 173 173 if self.debug : … … 289 289 oldval = self._curdict.setdefault(name, []) 290 290 oldval.append((tagtype, value)) 291 self. printInfo("%s(%s) : %s" % (name, tagtype, value))291 self.logDebug("%s(%s) : %s" % (name, tagtype, value)) 292 292 return posend - self.position 293 293 294 294 def operation_attributes_tag(self) : 295 295 """Indicates that the parser enters into an operation-attributes-tag group.""" 296 self. printInfo("Start of operation_attributes_tag")296 self.logDebug("Start of operation_attributes_tag") 297 297 self._curdict = self.operation_attributes 298 298 return self.parseTag() … … 300 300 def job_attributes_tag(self) : 301 301 """Indicates that the parser enters into a job-attributes-tag group.""" 302 self. printInfo("Start of job_attributes_tag")302 self.logDebug("Start of job_attributes_tag") 303 303 self._curdict = self.job_attributes 304 304 return self.parseTag() … … 306 306 def printer_attributes_tag(self) : 307 307 """Indicates that the parser enters into a printer-attributes-tag group.""" 308 self. printInfo("Start of printer_attributes_tag")308 self.logDebug("Start of printer_attributes_tag") 309 309 self._curdict = self.printer_attributes 310 310 return self.parseTag() … … 312 312 def unsupported_attributes_tag(self) : 313 313 """Indicates that the parser enters into an unsupported-attributes-tag group.""" 314 self. printInfo("Start of unsupported_attributes_tag")314 self.logDebug("Start of unsupported_attributes_tag") 315 315 self._curdict = self.unsupported_attributes 316 316 return self.parseTag() … … 318 318 def subscription_attributes_tag(self) : 319 319 """Indicates that the parser enters into a subscription-attributes-tag group.""" 320 self. printInfo("Start of subscription_attributes_tag")320 self.logDebug("Start of subscription_attributes_tag") 321 321 self._curdict = self.subscription_attributes 322 322 return self.parseTag() … … 324 324 def event_notification_attributes_tag(self) : 325 325 """Indicates that the parser enters into an event-notification-attributes-tag group.""" 326 self. printInfo("Start of event_notification_attributes_tag")326 self.logDebug("Start of event_notification_attributes_tag") 327 327 self._curdict = self.event_notification_attributes 328 328 return self.parseTag()