topicdefnprovider
Everything that has to do with topic definition tree import/export.
copyright: | Copyright 2006-2009 by Oliver Schoenborn, all rights reserved. |
license: | BSD, see LICENSE.txt for details. |
Inheritance Diagram
Inheritance diagram for module topicdefnprovider
Functions Summary
Classes Summary
Functions
-
exportTreeAsSpec(rootTopic, **kwargs)
Prints the topic tree specification starting from rootTopic.
If not specified, the whole topic tree is printed. The kwargs are the
same as TopicTreeAsSpec’s constructor: width(70), indentStep(4),
header(None), footer(None), fileObj. If no header or footer are
given, the default ones are used (see defaultTopicTreeSpecHeader and
defaultTopicTreeSpecFooter), such that the resulting output can be
imported in your application. E.g.:
pyFile = file('appTopicTree.py','w')
exportTreeAsSpec( pyFile )
pyFile.close()
import appTopicTree
-
registerTypeForImport(typeName, providerClassObj)