[Zope-CMF] Why is the news editing different from doc editing?

Frank McGeough fm@synchrologic.com
Thu, 23 Aug 2001 16:24:55 -0400


Sorry. That was a C++ programmer knee jerk reaction (edit the code).
However, after modifying the "Factory Method in product" to addDocument
nothing changes even after restarting Zope (that is, News item editing looks
exactly like it did before). Do I need to change another attribute in the
Factory-Based Type Information?
or perhaps this was fixed sometime after CMF 1.1?

----- Original Message -----
From: "Tres Seaver" <tseaver@palladion.com>
To: "Frank McGeough" <fm@synchrologic.com>
Cc: <zope-cmf@zope.org>
Sent: Thursday, August 23, 2001 2:13 PM
Subject: Re: [Zope-CMF] Why is the news editing different from doc editing?


> On Thu, 23 Aug 2001, Frank McGeough wrote:
>
> > Sorry it took awhile to get back to this but can you clarify "delete
> > addNewsItem from the factory method"?
> > Are you talking about the contentConstructors array in __init__.py in
> > CMFDefault and does that mean changing the NewsItem.addNewsItem item to
> > NewsItem.addDocument?
>
> I don't mean to indicate that you should edit code -- rather, modify
> the 'News Item' object in your 'portal_types', replacing the values of
> its 'Factory' property (currently, 'addNewsItem', but could be
> 'addDocument').
>
>
> Tres.
> --
> ===============================================================
> Tres Seaver                                tseaver@zope.com
> Zope Corporation      "Zope Dealers"       http://www.zope.com