[Zope-CMF] registering python products
'seb bacon'
seb@jamkit.com
Thu, 4 Oct 2001 20:32:02 +0100
* Meilicke, Scott <scott.meilicke@intp.com> [011004 19:03]:
> Yes, the product and factory method properties were changed (I think - still
> new to the CMF).
I mean 'changed in the types tool'. The Type Information for your new
Content Type needs to be pointing to the correct constructor, i.e.
addMarketItem, or something like that. You can either do this TTW, or
in the factory_type_information. Or did you do this already?
seb
>
> I started over by copying NewsItem.py into another ./Products/MyProduct
> directory, modified __init__.py, changed a few import statements to reflect
> the path differences, and within NewsItem.py, changed Id and Meta Type from
> 'News Item' to 'Market Item'. I could then add my product via the types
> tool, and it would show up in the list of products to add after clicking
> 'New' within the portal.
>
> Feeling brave, I then changed all references from 'News' to 'Market',
> renamed NewsItem.py to MarketItem.py, and modified __init__.py accordingly.
>
>
> >From the types tool, I deleted the item I added, then recreated it, but it
> does not show up in the list of 'New' items.
>
> Is this a CMFCorePermissions issue? I'm stuck.
>
> Thanks - Scott