[Zope-CMF] My own type - stuck again

Benjamin Saller ben@abstractedge.com
Wed, 11 Sep 2002 14:38:03 -0400


Again, not to self promote, but if you are doing forms in Plone and have the
ability to do any python code CMFTypes from the collective allows you to
simply define the types, generate plone style forms with validation and hook
into the plone navigation system. Additionally you pick up the ability to
deal with rich content types for given fields.

The lack of documentation (there is a little) might make it learning curve,
but the speed and flexibility it gives you might make it worth your while.
Hope that helps.

-Ben

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Jochen Haeberle
Sent: Wednesday, September 11, 2002 11:07 AM
To: Tres Seaver
Cc: zope-cmf@zope.org
Subject: Re: [Zope-CMF] My own type - stuck again


At 10:43 Uhr -0400 11.09.2002, Tres Seaver wrote:
>On Wed, 2002-09-11 at 10:23, Jochen Haeberle wrote:
>>  Hi,
>>
>>  sorry, it's me again. I am stuck again...
>>
>>  Following up on my problems with extending the existing CMF Document
>>  type with some properties, I finally managed to do a ZCLass, that
>>  inherits from CMFDefault:Document. I can now add it to the portal and
>>  save it - fine!
>
>Great!

It only took about 2 days ;-)
If my ZopeZen rises some more, I will try to add some comments on the
HowTos about the missing or changed bits

>  > My first problem is that Title and Description (part of DublinCore)
>>  will not get saved, also managing the MetaData works fine.
>>  Anyone knows why this is so?
>
>I don't have that experience (but see below).  Where are you trying to
>edit the Title and Description?

I am using the basic Plone edit-form and would try to add my
properties there. I did not do anything to the fields and jsut hoped
the inherited Documtent Class would take care of it...

>  > The second problem comes with my own properties. I added a
>>  propertysheet to my WrapperZClass and the properties I need. I can
>>  show the input fields in my edit_form and get the default-values
>>  fine. But the changed values will not be saved. I thought this might
>>  happen automagically, but no :-(
>>  What do I need to do to get those saved?
>
>What a Biblical question! :)  You need to customize the "form handler"
>script ('document_edit', probably) to take the additional property
>values as arguments, and then call 'manage_changeProperties' on your
>ZClass' propertysheet to update them.

Thanks, I will give it a try :-)

>  > The way to Zen is very hard...
>
>Agreed.

Although I knew that the docs is widespread, my biggest problem is
that it's not accurate. It seems like many things in Zope, CMF or
Plone changed and noone updates the HowTos, docs or else...

>
>Tres.
>--
>===============================================================
>Tres Seaver                                tseaver@zope.com
>Zope Corporation      "Zope Dealers"       http://www.zope.com


Thanks alot again
Jochen

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests