[Zope-CMF] Re: Views not found

Rob Miller ra at burningman.com
Tue Mar 28 15:46:50 EST 2006


Jens Vagelpohl wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I'm currently going through CMFCalendar to give it the full 
> viewification/interfaces/etc treatment Yvo and Tres already did for 
> CMFDefault. I'm getting pretty close, but trying to stitch in the views 
> leads to NotFound errors:
> 
> Cannot locate object at: 
> http://localhost:8080/portal/myevent/%40%40edit.html
> 
> I have a CMFCalendar/configure.zcml that pulls in the browser package, 
> where I define the following in configure.zcml:
> 
>   <browser:page
>       for="Products.CMFCalendar.interfaces.IEvent"
>       name="view.html"
>       class=".event.EventView"
>       template="templates/event.pt"
>       permission="zope2.View"
>       layer="cmfcalendar"
>       />
> 
> The interfaces and all that are there and hooked up correctly (as 
> evidenced by the ZMI tab "Interfaces" for this Event object). I am 
> asssuming I don't have to declare five:traversable, because the CMF 
> browser package already does that for IDynamicType (declaring it 
> specifically for the Event class did not make a difference). Does anyone 
> know where I should look next?

this all looks pretty much right.  i realize this is probably a pasting 
error, but i have to mention... you're browsing to "edit.html" while the 
page declaration that you included is "view.html".

assuming that you do actually have a similar "edit.html" browser:page 
declared, then maybe the problem is with the cmfcalendar layer not being 
included in your current skin?

-r


> 
> jens
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
> 
> iD8DBQFEKZulRAx5nvEhZLIRAjzsAKC66TxKZ4RP7JmEC+sJvo1FLLVPtgCgreG0
> vo1S1V7ePoDwYnuMBVly5Nw=
> =9A0k
> -----END PGP SIGNATURE-----
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF at lists.zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
> 
> See http://collector.zope.org/CMF for bug reports and feature requests
> 



More information about the Zope-CMF mailing list