[Erp5-dev] Allowed Content Types in a module
Boris Kocherov
bk at raskon.org
Tue Sep 8 02:07:26 CEST 2009
If you use buildout for install erp5, send me output command:
ls parts/instance/{Extensions,Document}/
In my case:
"""
parts/instance/Document/:
parts/instance/Extensions/:
Barcode.py DocumentManagement.py GetRssDataAsDict.py
README.txt StandardSecurity.py
CustomerRelationshipManagement.py DocumentSecurity.py Glossary.py
SecurityCloner.py VObject_export.py
DocumentExtraction.py Ecommerce.py
PythonScriptParserUtility.py Security.py
"""
On 09/07/09 17:05, 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
--
Crisis had come unexpectedly, just as winter comes unexpectedly to
Russia every year.
More information about the Erp5-dev
mailing list