[Zope-CMF] CMF vs ZOPE OFS?
Jens Vagelpohl
jens@zope.com
Thu, 27 Sep 2001 19:48:25 -0400
> someone added a Portal File to a Portal Folder via the ZOPE Mgmt
interface.
> This way of adding objects to ZOPE/CMF doesnt work as expected. I think
> because there is some Type metadata that wasnt added to the Portal File
when
> I created it through the ZOPE Mgmt Screen.
creating a CMF object through the CMF invokes more than just the factory
method belonging to the product. that's why adding CMF content through the
ZMI, which in itself only knows the factory method from the product, is
not a good idea. one important step that is missed is, like you found out,
the setting of the correct portal type.
it can't acquire this piece because the data for this type is found by
retrieving the correct type information object from the types tool in the
portal and then using it in a call to _setPortalType.
jens
On Thursday, September 27, 2001, at 05:05 , alan runyan wrote:
> I am trying to make a 'internet' website that objects will be 'copied'
> into
> after the workflow process has been completed. but I ran into one
> problem:
> CMF Content Objects can not be pasted into a Folder. They can only be
> pasted into a Portal Folder. to create a Portal Folder:
> ex: foldersihObj.manage_addProduct['CMFCore'].manage_addPortalFolder(id,
> title)
>
> Q: will this always be like this? will we ever be able to treat *most*
> CMF
> Objects like regular ZOPE Objects?
>
> someone added a Portal File to a Portal Folder via the ZOPE Mgmt
> interface.
> This way of adding objects to ZOPE/CMF doesnt work as expected. I think
> because there is some Type metadata that wasnt added to the Portal File
> when
> I created it through the ZOPE Mgmt Screen. but this is all below (can
> acquire the portal) the PortalObject. could it acquire this information?
>
> thanks,
> ~runyaga
>
>
>