[Zope-CMF] registering python products

Meilicke, Scott scott.meilicke@intp.com
Thu, 4 Oct 2001 12:38:32 -0700


Yes, that has been changed.  I have posted the files I'm using if that
helps:

http://www.kmclan.net/Members/smeilicke/init.py - that's really __init__.py
http://www.kmclan.net/Members/smeilicke/MarketItem.py
http://www.kmclan.net/Members/smeilicke/MarketItemPermissions.py

Thanks Seb.
- Scott

-----Original Message-----
From: 'seb bacon' [mailto:seb@jamkit.com]
Sent: Thursday, October 04, 2001 12:32 PM
To: Meilicke, Scott
Cc: 'zope-cmf@zope.org'
Subject: Re: [Zope-CMF] registering python products


* 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