[Zope-CMF] registering python products

Meilicke, Scott scott.meilicke@intp.com
Thu, 4 Oct 2001 11:00:50 -0700


Yes, the product and factory method properties were changed (I think - still
new to the CMF).  

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

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


In the types tool, did you make sure the Product and Factory method
properties were changed?  The list of available content types is
security checked by attempting to call the factory method, and if it
fails, it assumes you don't have permission.

seb

* Meilicke, Scott <scott.meilicke@intp.com> [011003 23:39]:
> Hello,
> 
> My python products are not showing up when users click 'New'.  Here's what
I
> have done:
> 
> Installed CMFBoringProduct - this works fine after installing the product
> and following the tutorial.
> 
> I made a copy of the CMFBoringProduct directory and contents, then renamed
> all instances related to Boring to Market (I'm creating a Market Item).
> This includes CMFBoringPermissions.py to MarketItemPermissions.py.
> 
> So far so good. I can restart zope, the Product appears healthy in the
> control panel, and I can click on portal_types and add it by 
> 
> 1. Clicking on the Content tab
> 2. From the drop down, select Factory-based content information
> 3. Type my name 'Market Item', and select the proper item (CMFInside:
> MarketItem in my case).
> 
> I then register the skins with the skins tool.
> 
> Now my 'Market Item' type shows up, and the security tab from the root
> indicates that members and managers can 'Add Market Item' (my security).
> 
> However, when I log into the CMF, click My Stuff, then New, 'Market Item'
> does not show up.  
> 
> What else am I missing?  Is there another file system based product
tutorial
> for the CMF other than CMFBoringProduct?