Hello,
I'm in the process of switching to dexterity content types.
Versions: Plone 4.1.4, Dexterity 1.2, I'm using the good-py set of versions.
The problem is that my views obviously don't get registered in the template
registry, although I did (as far as I can tell) everything required:
- define the view, register it with grok, and reference the view in the GS XML
file of my type.
Here's my traceback:
Traceback (most recent call last):
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/Startup/run.py",
line 72, in <module>
run()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/Startup/run.py",
line 21, in run
starter.prepare()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/Startup/__init__.py",
line 86, in prepare
self.startZope()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/Startup/__init__.py",
line 259, in startZope
Zope2.startup()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/__init__.py",
line 47, in startup
_startup()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/App/startup.py",
line 118, in startup
load_zcml()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/App/startup.py",
line 52, in load_zcml
load_site()
File
"/Users/plone/Instances/instance1/eggs/Zope2-2.13.12-py2.6.egg/Zope2/App/zcml.py",
line 46, in load_site
_context = xmlconfig.file(site_zcml)
File
"/Users/plone/Instances/instance1/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py",
line 651, in file
context.execute_actions()
File
"/Users/plone/Instances/instance1/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py",
line 626, in execute_actions
callable(*args, **kw)
File
"/Users/plone/Instances/instance1/eggs/grokcore.view-1.13.5-py2.6.egg/grokcore/view/meta/views.py",
line 90, in checkTemplates
has_render, has_no_render)
File
"/Users/plone/Instances/instance1/eggs/grokcore.view-1.13.5-py2.6.egg/grokcore/view/templatereg.py",
line 171, in checkTemplates
(component_name.title(), factory), factory)
zope.configuration.config.ConfigurationExecutionError: <class
'martian.error.GrokError'>: View <class 'eo.mm.massnahmed.View'> has no
associated template or 'render' method.
in:
File "/Users/plone/Instances/instance1/src/eo.mm/eo/mm/configure.zcml", line
15.2-15.27
<grok:grok package="." />
If anyone can shed light on this, please do so.
best regards,
Christoph
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers