def klass(self, name): klass = self.terms.classes().byname(name).full() s = StringIO() print >> s, 'Terminology for %s class\n\nClass:' % klass.name, textdoc.FullRenderer(style=self.style, options=['full'], out=s).draw(klass) print >> self.output, s.getvalue()
def command(self, name): command = self.terms.commands().byname(name) s = StringIO() print >> s, 'Terminology for %s command\n\nCommand:' % command.name, textdoc.FullRenderer(style=self.style, options=['full'], out=s).draw(command) print >> self.output, s.getvalue()
def command(self, name): try: command = self.terms.commands().byname(name) except KeyError: # application terminology doesn't define this command (e.g. Required Suite or get/set) raise HelpError('No terminology available for command %r.' % name) else: print >> self.output, 'Terminology for %s command\n\nCommand:' % command.name, textdoc.FullRenderer(options=['full'], out=self.output).draw(command)
def element(self, e): s = StringIO() print >> s, 'Element:', textdoc.FullRenderer(style=self.style, options=['full'], out=s).draw(e) print >> self.output, s.getvalue()
def property(self, p): s = StringIO() print >> s, 'Property:', textdoc.FullRenderer(style=self.style, options=['full'], out=s).draw(p) print >> self.output, s.getvalue()
def element(self, e): print >> self.output, 'Element:', textdoc.FullRenderer(options=['full'], out=self.output).draw(e)
def property(self, p): print >> self.output, 'Property:', textdoc.FullRenderer(options=['full'], out=self.output).draw(p)
def klass(self, name): klass = self.terms.classes().byname(name).full() print >> self.output, 'Terminology for %s class\n\nClass:' % klass.name, textdoc.FullRenderer(options=['full'], out=self.output).draw(klass)