Am Montag, 12. September 2005 15:09 schrieb Stephan Richter: > On Monday 12 September 2005 09:05, Florian Lindner wrote: > > > Don't use the menu/title attributes of form:addform. Use the > > > browser:addMenuItem directive instead. > > > > Ok. But why does the addform directive registers a menu item with a > > action which is not even supposed to work? Isn't that considered a bug? > > Yes, it should. :-\
I've a wierd error now. I've changed my configure.zcml accordingly: <addform schema="CS.Link.interfaces.ILink" name="AddCSLink.html" content_factory="CS.Link.link.Link" permission="CS.Add" layer="centershock" /> <addMenuItem title="Link" class="CS.Link.link.Link" view="AddCSLink.html" permission="CS.Add" for="CS.ContentFolder.interfaces.IContentFolder" menu="CSaddMenu" /> But this gives a configuration error upon startup: File "/home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py", line 214, in _checkViewFor raise ConfigurationError( zope.configuration.config.ConfigurationExecutionError: zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html not found in: File "/home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml", line 20.4-27.6 <addMenuItem title="Link" class="CS.Link.link.Link" view="AddCSLink.html" permission="CS.Add" for="CS.ContentFolder.interfaces.IContentFolder" menu="CSaddMenu" /> I really don't understand why the view is not found... Thanks, Florian _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users