[Zope-CMF] Re: Portal Poll Product (also Re: [PTK(252)[2])

Tim Hicks Tim Hicks" <tim@sitefusion.co.uk
Wed, 18 Apr 2001 15:09:33 +0100


Dave (zope-cmf list added in too, so don't feel obliged to answer my
questions :-) ),

thanks very much for the updated 'walkthrough', it did indeed seem to solve
my problem.  Combined with Tres telling me not to use the standard
'myZClass_factory', but instead use 'myZClass_add' (or as you have shown, a
custom method) for the 'portal_types' 'Factory method in product',
everything seems to be working well for adding instances of my ZClass
products... thanks very much to both of you.

My problem now is that my instances get added, but I can't see them using
the 'folder_contents' method on the folder they are in.  I know they are
there because I can see them using the ZMI and access them by URL.  My
ZClass sub-classes the following:

Base Classes  ZObject, _ZClass_for_PortalContent,
_ZClass_for_DefaultDublinCoreImpl, CatalogAwareBase

if that makes any difference to the answer.

Incidentally, was I right to sub-class 'CatalogAwareBase' for portal
content, or should it have been a specific 'CMFCatalogAware' (or some such)?

And one final (related) question, when selecting what to sub-class, am I
right in thinking that if the zclass is to define *content*, it should not
really need to sub-class and of the 'whatever Tool' classes?

Thanks for your help and a very helpful 'HowTo'


tim


----- Original Message -----
From: "Dave Woolston" <davew@digicool.com>
To: <tim@sitefusion.co.uk>
Sent: Thursday, April 12, 2001 8:01 PM
Subject: Portal Poll Product


> Hello Tim,
>
> I'm sorry, I should of jumped in earlier on this subject.
> I am working on updating this Tutorial and have a pretty
> good step by step e-mail that someone had sent me on
> the Tutorial that I think could help.  I will include it below.
> If you are too busy to go through this - just let me know -
> no problem.
>
> Just a quick thought that perhaps the meta_type that you
> defined for your class did not match the meta_type that
> you define in the portal_types tool.
>
> Regards,
> Dave
> =================================
> Dave Woolston   davew@digicool.com
> Digital Creations  www.digicool.com
> (716) 262-4715
>

<snipped 'Walkthrough'>