On Mon, 10 Sep 2001 09:40:46 -0700, [EMAIL PROTECTED] wrote:
>def manage_addAdItem(self, id, title, REQUEST=None):
> """Zope managment interface create method for AdItem"""
>
> ad=AdItem(id)
I assume the __init__ of AdItem that sets the default values that you
mentioned
> ad.setId(id)
> ad.setTitle(title)
> if REQUEST is not None:
> ad.setAdBody(REQUEST['adBody'])
> if (len(REQUEST['keywords']) > 0):
> ad.setKeys(REQUEST['keywords'])
> ad.setAdDateMulti(yyyy=REQUEST['Adyyyy'], mm=REQUEST['Admm'],
>dd=REQUEST['Addd'])
> ad.setRtDateMulti(yyyy=REQUEST['Rtyyyy'], mm=REQUEST['Rtmm'],
>dd=REQUEST['Rtdd'])
> ad.featureURL=REQUEST['featureURL']
You overwrite all the defaults with the real values... .good.
> self._setObject(id, ad)
You add the new object to the folder. The folder calls
ad.manage_afterAdd (or whatever its called), which in the case of
CatalogAware calls index_object.
Everything looks right to me. The catalog should contain the real
values.
Toby Dickenson
[EMAIL PROTECTED]
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )