Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: Python  |  size: 0.52 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def subsax(self, context):
  2.         """Generate SAX events for context object.
  3.        context - the context object (typically sub oject) to generate SAX
  4.                  events for.
  5.        """
  6.         self.configuration.getProducer(context).sax()
  7.  
  8. # becomes
  9.  
  10.  
  11. def subsax(self, context, **kw):
  12.         """Generate SAX events for context object.
  13.        context - the context object (typically sub oject) to generate SAX
  14.                  events for.
  15.        """
  16.         self.configuration.getProducer(context).sax(**kw)