Re: [Zope3-Users] addview name not form
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Lindner wrote: Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner: Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot: Florian Lindner wrote: Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot: First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391 Sorry, didn't read that thoroughly. What do you suggest at the moment do get the desired behavior? Your ContentFolder should implement IAdding and then your example should work I guess. I've modified my content class directive for the addfolder: interface interface=.interfaces.IContentFolder type=zope.app.content.interfaces.IContentType / content class=.contentfolder.ContentFolder implements interface=zope.app.annotation.interfaces.IAttributeAnnotatable / implements interface=zope.app.container.interfaces.IContentContainer / implements interface=zope.app.container.interfaces.IAdding / factory description=CS ContentFolder / require permission=CS.View interface=.interfaces.IContentFolder / require permission=CS.Edit set_schema=.interfaces.IContentFolder / /content And my addMenuItem: addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add menu=CSaddMenu layer=centershock for=CS.ContentFolder.interfaces.IContentFolder / it's still: zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html not found Does it work with your code? (the code I uploaded) Yes, if you specify the the addMenuItem directive : addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=zope.Public menu=CSaddMenu layer=centershock / 1) specify a layer on the addMenuItem directive. 2) remove the for attribute for now until your ContentFolder class implements IAdding. J. - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDSqXSGhoG8MxZ/pIRAsbgAJwP8mj0ANTJi/trUyc5QMBErmmcGQCdGbBP U6wfgBUjSLA3+xawgO+sHXs= =Qkvd -END PGP SIGNATURE- ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner: Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot: Florian Lindner wrote: Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot: First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391 Sorry, didn't read that thoroughly. What do you suggest at the moment do get the desired behavior? Your ContentFolder should implement IAdding and then your example should work I guess. I've modified my content class directive for the addfolder: interface interface=.interfaces.IContentFolder type=zope.app.content.interfaces.IContentType / content class=.contentfolder.ContentFolder implements interface=zope.app.annotation.interfaces.IAttributeAnnotatable / implements interface=zope.app.container.interfaces.IContentContainer / implements interface=zope.app.container.interfaces.IAdding / factory description=CS ContentFolder / require permission=CS.View interface=.interfaces.IContentFolder / require permission=CS.Edit set_schema=.interfaces.IContentFolder / /content And my addMenuItem: addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add menu=CSaddMenu layer=centershock for=CS.ContentFolder.interfaces.IContentFolder / it's still: zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html not found Does it work with your code? (the code I uploaded) Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Hi, no one any more ideas? *desperated* I can't really believ that this error has not occured to anyone else, since IMO it is very a standard situation... Would it help if I create a small package which demonstrates the error? Thx, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391 The addMenuItem directive should look this way in order to work : addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=zope.Public menu=CSaddMenu / without 'for=CS.ContentFolder.interfaces.IContentFolder' (check the collector entry) The addMenuItem doesn't support the layer attribute. I'm going to add this to the addMenuItem directive interface. J. Florian Lindner wrote: Ok, here we go. The package is located at http://xgm.de/addform.tar.gz. Simple register it (a cs-configure.zcml is provided) and start Zope (SVN version), you'll see the error. To check the intended behavior: 0) Start Zope successfully (first important step!) 1) Create a ContentFolder named cs. 2) Go to http://horus:8080/++skin++centershock/cs/ 3) The menu on the left should show a entry Link under Items to add 4) This entry should link to /++skin++centershock/cs/+/%40%40AddCSLink.html, NOT to the URL but withount the /+/ (what the Folder link does at the moment), since this method is broken somehow. Thanks for you help, Florian Am Donnerstag, 29. September 2005 14:45 schrieb Julien Anguenot: Yup please. I could investigate much more easily. J. Florian Lindner wrote Hi, no one any more ideas? *desperated* I can't really believ that this error has not occured to anyone else, since IMO it is very a standard situation... Would it help if I create a small package which demonstrates the error? Thx, Florian - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDPDGCGhoG8MxZ/pIRAoNNAJ9LQRdqWOmohbi4uNMZHILIgniFmgCfWtL7 HlHJu21gahHsdu/+HSzjF58= =Hp9t -END PGP SIGNATURE- ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot: First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391 The addMenuItem directive should look this way in order to work : addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=zope.Public menu=CSaddMenu / without 'for=CS.ContentFolder.interfaces.IContentFolder' (check the collector entry) But then the menu entry does not show up in views on IContentFolder. And I need it showing up there. The addMenuItem doesn't support the layer attribute. I'm going to add this to the addMenuItem directive interface. When do you think you will be done? Thx, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: 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... I still have this problem. Is it just to easy so that noone answers me or does really nobody knows some help? I'm really stuck with that. If somebody knows something, _please_ answer! Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: 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... I still have this problem. Is it just to easy so that noone answers me or does really nobody knows some help? I'm really stuck with that. If somebody knows something, _please_ answer! Hi Florian, It means the view name AddCSLink.html is not registred for the CS.ContentFolder.interfaces.IContentFolder *and* the default layer. It used to work before the #307 collector issue fix. See : http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py?rev=37584view=auto _checkViewFor() and addMenuItem() Maybe a more verbose error is needed saying on which interfaces the multi-adaper lookup failed ? J. - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDOUpwGhoG8MxZ/pIRAizgAJ0V43VrwW9YeOPmv86qDnWJXo7MYACfcs/M alFnLoEHnzfT+ubJM/UQ0kE= =HV5y -END PGP SIGNATURE- ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: 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.zcm l , 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... I still have this problem. Is it just to easy so that noone answers me or does really nobody knows some help? I'm really stuck with that. If somebody knows something, _please_ answer! Hi Florian, It means the view name AddCSLink.html is not registred for the CS.ContentFolder.interfaces.IContentFolder *and* the default layer. It used to work before the #307 collector issue fix. See : http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py? rev=37584view=auto _checkViewFor() The arguments in _checkViewFor are: for_ = InterfaceClass CS.ContentFolder.interfaces.IContentFolder layer = InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer view_name = AddCSLink.html and addMenuItem() What information you want from addMenuItem? Maybe a more verbose error is needed saying on which interfaces the multi-adaper lookup failed ? It works when I take the for attribute out of the addMenuItem directive. However I want to have this addform displayed in the menu when I have a view on IContentFolder. Without the for attribute it is not shown. The addform works perfectly from contentfolderobject/+/AddCSLink.html. I just want to have a addMenuItem in the CSaddMenu that is shown on all views on IContentFolder. All that should be placed in the centersock layer. I hope I could express what I mean... ;-) Thanks for your help! Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Lindner wrote: Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: 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.zcm l , 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... I still have this problem. Is it just to easy so that noone answers me or does really nobody knows some help? I'm really stuck with that. If somebody knows something, _please_ answer! Hi Florian, It means the view name AddCSLink.html is not registred for the CS.ContentFolder.interfaces.IContentFolder *and* the default layer. It used to work before the #307 collector issue fix. See : http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.py? rev=37584view=auto _checkViewFor() The arguments in _checkViewFor are: for_ = InterfaceClass CS.ContentFolder.interfaces.IContentFolder layer = InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer view_name = AddCSLink.html and addMenuItem() What information you want from addMenuItem? Maybe a more verbose error is needed saying on which interfaces the multi-adaper lookup failed ? It works when I take the for attribute out of the addMenuItem directive. However I want to have this addform displayed in the menu when I have a view on IContentFolder. Without the for attribute it is not shown. The addform works perfectly from contentfolderobject/+/AddCSLink.html. I just want to have a addMenuItem in the CSaddMenu that is shown on all views on IContentFolder. All that should be placed in the centersock layer. I hope I could express what I mean... ;-) Try to add a layer=centershock within your addMenuItem directive such as : addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add for=CS.ContentFolder.interfaces.IContentFolder menu=CSaddMenu layer=centershock / J. - -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDOWHHGhoG8MxZ/pIRAmrdAJ9tmYaCMLK2BuDWvNzX/eqaVaUkQwCeKajC gAkw8Y/FcEcmtSByPHXBAOU= =GNIs -END PGP SIGNATURE- ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] addview name not form
Am Dienstag, 27. September 2005 17:14 schrieb Julien Anguenot: Florian Lindner wrote: Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: [...] 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.z cm l , 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... I still have this problem. Is it just to easy so that noone answers me or does really nobody knows some help? I'm really stuck with that. If somebody knows something, _please_ answer! Hi Florian, It means the view name AddCSLink.html is not registred for the CS.ContentFolder.interfaces.IContentFolder *and* the default layer. It used to work before the #307 collector issue fix. See : http://svn.zope.org/Zope3/trunk/src/zope/app/publisher/browser/menumeta.p y? rev=37584view=auto _checkViewFor() The arguments in _checkViewFor are: for_ = InterfaceClass CS.ContentFolder.interfaces.IContentFolder layer = InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer view_name = AddCSLink.html and addMenuItem() What information you want from addMenuItem? Maybe a more verbose error is needed saying on which interfaces the multi-adaper lookup failed ? It works when I take the for attribute out of the addMenuItem directive. However I want to have this addform displayed in the menu when I have a view on IContentFolder. Without the for attribute it is not shown. The addform works perfectly from contentfolderobject/+/AddCSLink.html. I just want to have a addMenuItem in the CSaddMenu that is shown on all views on IContentFolder. All that should be placed in the centersock layer. I hope I could express what I mean... ;-) Try to add a layer=centershock within your addMenuItem directive such as : addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add for=CS.ContentFolder.interfaces.IContentFolder menu=CSaddMenu layer=centershock / ZopeXMLConfigurationError: File /home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml, line 20.4-28.7 ConfigurationError: ('Unrecognized parameters:', 'layer') It is also not listed in apidoc. The method to create the menu item directly in the addform directive works but is somehow buggy. See the tread: Object Name field on addforms started from me at 11.09.2005 15:04. Any other ideas? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users