[Zope-CMF] custom CMF Content Type (FAQ Content Type)
Meilicke, Scott
scott.meilicke@intp.com
Wed, 14 Nov 2001 10:04:40 -0800
Jan,
What I did was take *really* small steps. For example, I copied the
newsitem.py item, and just changed the name of the product. Then I =
changed
the view and edit forms. Then I changed what properties were =
collected, and
updated the forms to see that. Every time I made sure that I could see =
the
product in the list when clicking on the 'New' button within the CMF. =
That
way I can figure out what does what.
Other resources that I used:
CMFBoringProduct - very useful to me to see how to setup the product =
within
the CMF, once the python was written, as well as what entries to make =
in
__init__.py, and how to handle security.
Something a little more complex that may help is the calendar product =
that
ships with the CMF (I think).
-Scott
-----Original Message-----
From: Jens Vagelpohl [mailto:jens@zope.com]
Sent: Wednesday, November 14, 2001 6:38 AM
To: Jan Mechtel
Cc: 'Zope-Cmf@Zope. Org'
Subject: Re: [Zope-CMF] custom CMF Content Type (FAQ Content Type)
jan,
i don't have any step by step guide that i use. my methodology is =
looking=20
at the code for existing similar content objects and emulating / =
extending=20
the behavior in my own code.
jens
On Wednesday, November 14, 2001, at 08:37 , Jan Mechtel wrote:
> Hi,
> did u created it after a certain tutorial/howto if so please send me =
the
> link otherwise could you summarise in keywords how you have created =
such=20
> a
> new object/product? So that I can follow it step by step and see =
whether=20
> it
> works.
>
> Thanks in advance
>
> Jan Mechtel
> -------------------------------
> pc-sofa
> jan@pc-sofa.de
> Telefon: +49 (0)30 21469659
> Fax: +49 (0)89 244341516
> Oschatzer Ring 28
> 12627 Berlin
> Germany
>
> www.pc-sofa.de
>
> -----Urspr=FCngliche Nachricht-----
> Von: Jens Vagelpohl [mailto:jens@zope.com]
> Gesendet: Montag, 12. November 2001 15:06
> An: Jan Mechtel
> Cc: 'Zope-Cmf@Zope. Org'
> Betreff: Re: AW: AW: [Zope-CMF] custom CMF Content Type (FAQ Content =
Type)
>
> whenever i created content types they were either purely type based
> (meaning no filesystem code, just a tweaked type object derived from
> another type) or they were filesystem based. and all that stuff has =
worked
> for me so far.
>
> jens
>
>
> On Monday, November 12, 2001, at 08:40 , Jan Mechtel wrote:
>
>> oh, right now I know what u meant, but anyway I checked this before =
:-/
>>
>> any other hint? does it work with your cmf? have u ever created an =
own
>> content type?
>>
>> so far
>>
>> Jan
>>
>> -----Urspr=FCngliche Nachricht-----
>> Von: Jens Vagelpohl [mailto:jens@zope.com]
>> Gesendet: Montag, 12. November 2001 13:49
>> An: Jan Mechtel
>> Cc: Zope-Cmf@Zope. Org
>> Betreff: Re: AW: [Zope-CMF] custom CMF Content Type (FAQ Content =
Type)
>>
>>
>> when you go to a folder and view the "folder contents" view you will =
see
>> a
>> button "Set View Filter" underneath the new/rename/cut/copy/delete
>> buttons.
>>
>> make sure that either nothing is selected (meaning the objects shown =
are
>> not filtered) or, if anything is checked, that the object you're =
trying=20
>> to
>> make visible is checked also.
>>
>> jens
>>
>>
>> On Sunday, November 11, 2001, at 11:04 , Jan Mechtel wrote:
>>
>>>> have you completed step 8, setting up a type information object?
>>> Yes I think so, otherwise I would be able to add a content using =
CMF?
>>>> at that point you should check the view filter settings in the
>>> folder_contents view.
>>> I'm not sure whether I got you right, where to find the "view =
filter
>>> settings in the folder_contents view" I mapped the actions to the =
views
>>> correctly but I can't find any settings for "folder_contents"
>>>
>>> Thanks for your quick answer I hope you can help me further
>>>
>>> Jan
>>>
>>> www.pc-sofa.de
>>>
>>> -----Urspr=FCngliche Nachricht-----
>>> Von: Jens Vagelpohl [mailto:jens@zope.com]
>>> Gesendet: Sonntag, 11. November 2001 15:49
>>> An: Jan Mechtel
>>> Cc: zope-cmf@zope.org
>>> Betreff: Re: [Zope-CMF] custom CMF Content Type (FAQ Content Type)
>>>
>>> have you completed step 8, setting up a type information object? at =
that
>>> point you should check the view filter settings in the =
folder_contents
>>> view.
>>>
>>> jens
>>>
>>>
>>> On Sunday, November 11, 2001, at 08:42 , Jan Mechtel wrote:
>>>
>>>> Hi,
>>>> I followed the "howto" of tseaver
>>>> (http://cmf.zope.org/CMF/Members/tseaver/how_tos/faq_howto)
>>>> and managed to set up a product view and edit it.
>>>> But the problem is that users can't see the objects in their
>>>> CMF-Folders,
>>>> although they are there as I can see them in ZMI
>>>>
>>>> I traced the problem =EDn folder_contents.py to the =
contentValues()
>>>> method.
>>>> If I use objectValues instead the objects are shown correctly
>>>>
>>>> The comments in the scripts say contentValues() filters the object =
>>>> which
>>>> have no "ContentTypeInformation", but as my Product implements the
>>>> Zclass
>>>> "PortalType" it should provide it?
>>>>
>>>> I'll provide more details if needed.
>>>>
>>>> Hope somebody can give me a hint.
>>>>
>>>> Jan Mechtel
>>>> -------------------------------
>>>> pc-sofa
>>>> jan@pc-sofa.de
>>>> Telefon: +49 (0)30 21469659
>>>> Fax: +49 (0)89 244341516
>>>> Oschatzer Ring 28
>>>> 12627 Berlin
>>>> Germany
>>>>
>>>> www.pc-sofa.de
>>>>
>>>
>>
>
_______________________________________________
Zope-CMF maillist - Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf
See http://www.zope.org/Products/PTK/Tracker for bug reports and =
feature
requests