Exemple #1
0
 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()
Exemple #2
0
 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()
Exemple #3
0
 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)
Exemple #4
0
 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()
Exemple #5
0
 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()
Exemple #6
0
 def element(self, e):
     print >> self.output, 'Element:',
     textdoc.FullRenderer(options=['full'], out=self.output).draw(e)
Exemple #7
0
 def property(self, p):
     print >> self.output, 'Property:',
     textdoc.FullRenderer(options=['full'], out=self.output).draw(p)
Exemple #8
0
 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)