Class
zope.app.onlinehelp.onlinehelptopic.BaseOnlineHelpTopic

Base class for custom Help Topic implementations.

>>> from zope.app.onlinehelp.tests.test_onlinehelp import testdir
>>> path = os.path.join(testdir(), 'help.txt')

Create a Help Topic from a file

>>> topic = BaseOnlineHelpTopic('help','Help',path,'')

Test the title

>>> topic.title
'Help'

Test the topic path

>>> topic.getTopicPath()
'help'
>>> topic.parentPath = 'parent'
>>> topic.getTopicPath()
'parent/help'

Resources can be added to an online help topic.

>>> topic.addResources(['test1.png', 'test2.png'])
>>> topic['test1.png'].contentType
'image/png'
>>> topic['test2.png'].contentType
'image/png'

Base classes

Implemented Interfaces

Attributes/Properties

Methods

Known Subclasses