[Zope-CMF] Cannot find default view for CMF object...

Jeff Ross thejeffross@hotmail.com
Sat, 1 Jun 2002 20:28:15 -0700


Ok. That makes the error message go away. I still have a problem though. The
actions don't show up for my Category type. Yes, my category is based on
PortalContent.

I want to have separate actions for my category object than I do my store
object.

Jeff

----- Original Message -----
From: "Eugene von Niederhausern" <evonnied@l4sb.com>
To: <zope-cmf@zope.org>; <thejeffross@hotmail.com>
Sent: Friday, May 31, 2002 7:26 PM
Subject: Re: [Zope-CMF] Cannot find default view for CMF object...


> Is your category class derived from PortalContent or another CMF Content
> class? I created something similar to this---a multi-page article. Where
> I have the article based on PortalContent,DefaultDublinCoreImpl and then
> pages (based on Document) contained with in the article. I am not sure
> if I did it right (it works though see http://www.l4sb.com). I defined
> and fti for the article pages that defined a view action and I put this
> method in the article page (found it somewhere):
>
> def __call__(self):
>         """ default view """
>         view = self.restrictedTraverse('portalarticle_view')
>         if getattr(aq_base(view),'isDocTemp',0):
>             return apply(view,(self,self.REQUEST))
>         else:
>             return view()
>
>
> I can send you code I have for the multi-page article if you want it.
>
>
> regards,
>
> Eugene