Hi JeanMichel, thanks for our reply.
This is not an egg - just a simple product I have in
instance_home/lib/python. I'm working with Zope 2.9.7, not a buildout
environment. I get the Boring product in the Add dropdown, and I can
create the object. I do have the product included in site.zcml, and it
does implement the IBoring interface. Any other ideas? I read
somewhere that I have to include this:
five:traversable class=.boring.Boring /
And read somewhere else that five:traversable is deprecated. In any
case, including or not including this makes no difference.
Thanks,
Mark
JeanMichel FRANCOIS wrote:
Hi Mark Gibson,
Do you develop this with egg ? throw Products namespace ?
The zcml seems good. If you develop outside of the Products namespace
don't forget to include your package in the site.zcml. You can verify
this by making a mistake in the zcml and try to start zope.
Does you content implements boring.interfaces.IBoring ?
--
JeanMichel FRANCOIS
Makina Corpus
Le Friday 17 October 2008 05:51:34 Mark Gibson, vous avez écrit :
I created a simple content type. I can create an object, but I can't
call my view or edit form on it. If I try object/boring_editform or
object/index.html I get a Not Found error. Here's what I have in my
configure.zcml:
---
browser:editform
schema=boring.interfaces.IBoring
for=boring.interfaces.IBoring
name=boring_editform
label=Edit Boring Folder
permission=boring.ManageBoring
/
browser:page for=boring.interfaces.IBoring
name=index.html
template=view.pt
permission=zope2.View
menu=zmi_views title=View
/browser:page
---
What am I missing?
Thanks,
Mark
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )