Represents a resource that is used inside the rendered Help Topic - for example a screenshot.
>>> from zope.app.onlinehelp.tests.test_onlinehelp import testdir >>> path = os.path.join(testdir(), 'test1.png')
>>> resource = OnlineHelpResource(path) >>> resource.contentType 'image/png' >>> resource._fileMode 'rb'
>>> path = os.path.join(testdir(), 'help2.txt')
>>> resource = OnlineHelpResource(path) >>> resource.contentType 'text/plain' >>> resource._fileMode 'r' >>> resource.data.splitlines()[0] u'This is another help!' >>> u'\u0444\u0430\u0439\u043b' in resource.data True
data
(type:
property
)
<property object at 0x40d3eacc>
getSize()
See IFile
There are no known subclasses.