[Erp5-dev] Allowed Content Types in a module

Łukasz Nowak luke at nexedi.com
Mon Sep 7 18:00:18 CEST 2009


Hello,

Does create module dialog run without any error?

Is Mydoc portal type available?

Is it possible to manually add Mydoc portal type to Mydoc Module portal
type?

Regards,
Luke

On Mon, 2009-09-07 at 17:05 +0530, Chetan Kumar wrote:
> Hello all
> I wanted to find out if some help is possible on this.
> Regards,
> Chetan
> 
> Chetan Kumar wrote:
> > Hi
> > I created a module (mydoc_module) with the following parameters
> > 
> > Module ID: mydoc_module
> > Module Portal Type:  Mydoc Module
> > Module Title: Mydocs
> > Object Portal Type: Mydoc
> > Object Title: Mydoc
> > Portal Skins Folder: mydoc_module
> > 
> > Following all the instructions for creating a new module, I see that the 
> > Mydoc portal_type is not allowed to be added to the mydoc_module 
> > although the settings are correct. It gives the error "You are not 
> > allowed to add new content in this context."
> > However, if I check other already existing portal_types (like File, 
> > Document, Order, Person etc.) these can be added.
> > In an script I used to test the setting
> > portal.person_module.getVisibleAllowedContentTypeList() shows ['Person']
> > portal.organisation_module.getVisibleAllowedContentTypeList() shows 
> > ['Organisaion']
> > as expected and
> > portal.mydoc_module.getVisibleAllowedContentTypeList() shows []
> > 
> > In case I allow other content types to be added to my_module I see 
> > ['Person', 'Organisation', 'Order'] etc but no 'Mydoc'
> > 
> > Regards,
> > Chetan
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev




More information about the Erp5-dev mailing list