Works a charm like that... But I had dumped that code because I thought Generic Setup was replacing it... I guess I missed something here
Thx a lot anyway. -----Message d'origine----- De : George Gozadinos [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 novembre 2007 15:28 À : SEIGNEURIN Nicolas 603256 Objet : Re: Can't add new custom type after switching to Generic Setup Apologies, forgot to tell you need the following as you did before GS. content_types, constructors, ftis = process_types( listTypes(PROJECTNAME),PROJECTNAME) utils.ContentInit( PROJECTNAME + ' Content', content_types = content_types, permission = ADD_CONTENT_PERMISSION, extra_constructors = constructors, fti = ftis, ).initialize(context) On Thu, 2007-11-08 at 04:36 -0800, nseigne wrote: > Hi, > > I just switched for Extensions/Install.py content type installation to > Generic Setup profiles/default/types.xml + types/MyType.xml by exporting > through Generic Setup itself a previous version. Everything is going just > fine : the extension profile is there and installs the type, but I can't add > the type in my portal (ie. there is no MyType in the Add to folder drop > down). > > I guess there's something to do with Permissions : indeed with the old > install python code, I did specify Add Portal Content permission on > installing, but I can't find any equivalent entry in the various xml > files... > > Thanks for your help. -- Dr. G. Gozadinos Lead developer http://qiweb.net _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
