[Grok-dev] Setting up apidoc with Grok
Sebastian Ware
sebastian at urbantalk.se
Fri Aug 17 04:42:12 EDT 2007
I am trying to enable the APIdoc magic of Zope 3.
I have added "devmode on" to zope.conf. But it chokes on the zcml
directives I have added to my project configure.zcml file. Any ideas
what is wrong?
<configure xmlns="http://namespaces.zope.org/grok"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="protoncms">
<grok package="." />
<browser:addMenuItem
class=".app.ProtonCMS"
title="ProtonCMS"
description="A simple CMS"
permission="zope.ManageContent"
/>
</configure>
<configure xmlns:apidoc="http://namespaces.zope.org/apidoc"
xmlns:zcml="http://namespaces.zope.org/zcml"
zcml:condition="have apidoc">
<apidoc:rootModule module="protoncms" />
<apidoc:bookchapter
id="protoncms"
title="ProtonCMS"
/>
</configure>
Mvh Sebastian
Trace:
------
2007-08-17T10:38:31 WARNING root Developer mode is enabled: this is a
security risk and should NOT be enabled on production servers.
Developer mode can be turned off in etc/zope.conf
Traceback (most recent call last):
File "/Users/jhsware/GrokProjects/ProtonCMS/parts/instance/bin/
runzope", line 58, in ?
run()
File "/Users/jhsware/GrokProjects/ProtonCMS/parts/instance/bin/
runzope", line 54, in run
main(["-C", CONFIG_FILE] + sys.argv[1:])
File "/local/zope3.3/lib/python/zope/app/twisted/main.py", line
73, in main
service = setup(load_options(args))
File "/local/zope3.3/lib/python/zope/app/twisted/main.py", line
140, in setup
zope.app.appsetup.config(options.site_definition,
features=features)
File "/local/zope3.3/lib/python/zope/app/appsetup/appsetup.py",
line 110, in config
context = xmlconfig.file(file, context=context, execute=execute)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 579, in file
include(context, name, package)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,
in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348,
in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 349, in endElementNS
self.context.end()
File "/local/zope3.3/lib/python/zope/configuration/config.py",
line 544, in end
self.stack.pop().finish()
File "/local/zope3.3/lib/python/zope/configuration/config.py",
line 692, in finish
actions = self.handler(context, **args)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,
in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348,
in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 349, in endElementNS
self.context.end()
File "/local/zope3.3/lib/python/zope/configuration/config.py",
line 544, in end
self.stack.pop().finish()
File "/local/zope3.3/lib/python/zope/configuration/config.py",
line 692, in finish
actions = self.handler(context, **args)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "/local/zope3.3/lib/python/zope/configuration/xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,
in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 211,
in feed
self._err_handler.fatalError(exc)
File "/usr/local/lib/python2.4/xml/sax/handler.py", line 38, in
fatalError
raise exception
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/
jhsware/GrokProjects/ProtonCMS/parts/instance/etc/site.zcml", line
7.2-7.55
ZopeXMLConfigurationError: File "/Users/jhsware/GrokProjects/
ProtonCMS/parts/instance/etc/package-includes/022-protoncms-
configure.zcml", line 1.0-1.53
ZopeSAXParseException: File "/Users/jhsware/GrokProjects/
ProtonCMS/src/protoncms/configure.zcml", line 15.0, junk after
document element
More information about the Grok-dev
mailing list