[Zope-CMF] Re: import-steps
yuppie schrieb: Hi Katja! Katja Süss wrote: I would like to make a suggestion: After selecting a profile make only import-steps included in selected profile available. Just to make sure you understand the current behavior: - import_steps.xml is used for registering available setup handlers, not available setup steps. - Configuration files (like catalog.xml) represent the import steps available in the selected profile. - If the file is not available that means the import step is not available and the setup handler has nothing to do. Why would I like this? I have a setup profile (prepopulating site, settting properties, etc) and an install profile. When updating to a new release only import steps of install profile should be run. It would be cake if the updater only has to select the profile, select 'all steps' and push the run button. Curious to read comments. Your install profile just contains files for steps that should be available. Right? So what goes wrong if you select 'all steps'? If setup handlers do anything without finding their configuration files in the current profile the handlers are broken. Cheers, Yuppie Hi Yuppie, thanks for your answer. Following situation happened: A 3rd party product installed via GenericSetup registered a setup handler. This handler calls the quickinstaller install function, a function for populating the site, etc. All without configuration files. When I update my Product by selecting its profile and then select all import steps, then the step registered by the 3rd party product is also selected and run. For example the population of the site is run again and fails. Oviously I do not understand why this step is present after selecting a profile, this step doesn't belong to. Maybe I mix up import steps and handlers? Regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] import-steps
Hi * I would like to make a suggestion: After selecting a profile make only import-steps included in selected profile available. Why would I like this? I have a setup profile (prepopulating site, settting properties, etc) and an install profile. When updating to a new release only import steps of install profile should be run. It would be cake if the updater only has to select the profile, select 'all steps' and push the run button. Curious to read comments. Regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] tests for products set up with generic setup
Hi * On creating a content object I receive the error message, that the user with Manager-role is unauthorized. Debugging the error locates it at _queryFactoryMethod which doesn't find info for dispatcher for MyProduct. This is the point where I'm missing deeper insight in the mysteries of CMF. Thanks for any hint, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: GenericSetup ATContentTypes global_allow
How can I dofor type in types:if type in NOT_IMPLICITLY_ADDABLE: t = pttool.getTypeInfo(type) t.global_allow = 0 for standard ATContentTypes when using GenericSetup for a product? Thanks for any hints, You shouldn't need to "post-process" the type information objects, because they have the 'global_allow' attribute stored in the profile data: just arrange to have that value be False E.g., instead of:: True change it to:: False Ok, I do it like this for my custom types. But what to do with ATDocument, etc? If you are creating a "base" profile (one which controls the *entire* site), then you will have 'types/ATDocument.xml' inside it, and can modify that flag yourself. If you *aren't* creating a base profile, then why would you want to modify the types created in the base? "Extension" profiles are normally "additive" to the site. Tres. - -- why not? A product with custom content types and one or two of standard content types allowed only in defined folderish custom types. As I don't need to modify for example ATFile I don't want to subclass this only to make it not allowed in general. For the moment I don't see another way to create a profiles/install/types/ATFile.xml ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: GenericSetup ATContentTypes global_allow
.. How can I dofor type in types:if type in NOT_IMPLICITLY_ADDABLE: t = pttool.getTypeInfo(type) t.global_allow = 0 for standard ATContentTypes when using GenericSetup for a product? Thanks for any hints, You shouldn't need to "post-process" the type information objects, because they have the 'global_allow' attribute stored in the profile data: just arrange to have that value be False E.g., instead of:: True change it to:: False Tres. - -- Ok, I do it like this for my custom types. But what to do with ATDocument, etc? ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] GenericSetup ATContentTypes global_allow
Hi * How can I do for type in types: if type in NOT_IMPLICITLY_ADDABLE: t = pttool.getTypeInfo(type) t.global_allow = 0 for standard ATContentTypes when using GenericSetup for a product? Thanks for any hints, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] GenericSetup: Groups, Roles,etc
Dear all. The snapshot dumps very nice the folder acl_user with groups and their rolemapping. I would like to use this for a project setup. A first try was to put a folder acl_users in the profile folder profile/default/structure and the four files source_users, portal_role_manager, source_groups, .objects inside with profile/default/structure/acl_users/.objects: source_users,Products.PlonePAS.plugins.user.UserManager portal_role_manager,Products.PlonePAS.plugins.role.GroupAwareRoleManager source_groups,Products.PlonePAS.plugins.group.GroupManager in profile/default/structure/.objects I added acl_user,Pluggable Auth Service Maybe this is not the correct type_name. Or what else did I miss? Thank you for any hint, best regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Setup of a Site with GenericSetup
thats what I'm trying: using the GenericSetup profile of the products to install during Setup of my Site via MyProjectSetup. What do you mean with including their configuration? Your site is a tool for merging profiles. If you set up your site using different profiles a snapshot/export is the merged result. It includes all the configuration data of the used profiles. Cheers, Yuppie Hi Yuppie, that's what I feard that you mean by including. Using a snapshot means using a snapshot. Ähm. means setting up a fixed configuration. I thougt it could be possible with GS not only to install a product by applying its profile, but also to apply its profile programmatically. This would prepare for a setup-'product', that not only configures properties, groups, etc, but also install all dependencies (products). This would be the alternative to use the quickinstaller to install several products during installation of one major product to setup a site As long as I don't know how to (hope you understand my english..) bundle the raw configuration(props, groups, docs,..) and installation of products in one single product, tool or whatever. I have to apply the configuration profile of MyProjectSetup, than the profiles of the products, like MyProduct, and apply the profile of MyProjectTheme. Regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Testing Products installed via GenericSetup
yuppie schrieb: Katja Süss wrote: my question concerning the setup of a site seems to be important also for testing of products using GenericSetup. How to programmatically apply profiles? Somebody knows how to do that? Thank you for all hints and snippets, This is a setup for a plain unittest.TestCase (not fancy, but it works): http://svn.zope.org/CMF/trunk/CMFCalendar/tests/test_Calendar.py?rev=68513&view=auto And this for a CMFTestCase.CMFTestCase: http://svn.plone.org/svn/collective/CMFTestCase/trunk/testCMFCalendar.py HTH, Yuppie Thanks a lot, that's very, very helpful! Best regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Setup of a Site with GenericSetup
yuppie schrieb: Hi Katja! Katja Süss wrote: did somebody wrote a setup profile to install some products neccessary for a project? My Project is organized in three parts: - A product to setup configuration like properties, mailhost, etc: MyProjectSetup - A product for the Theme (templates, css, images): MyProjectTheme - A product with functionality: MyProduct It would be nice to install MyProduct and other additional products in an import_step of MyProjectSetup CMFPlone does this with calling quickinstaller. Does somebody know how to do this with applying GenericSetupProfiles? What do you exactly mean by "install some products"? Using their Install.py? Or a profile shipped with them? If these products support GenericSetup you can include their configuration in the profile of MyProjectSetup. Specifying dependencies between profiles is not supported. HTH, Yuppie Hi Yuppie, thats what I'm trying: using the GenericSetup profile of the products to install during Setup of my Site via MyProjectSetup. What do you mean with including their configuration? Thanks and best regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Testing Products installed via GenericSetup
Dear all, my question concerning the setup of a site seems to be important also for testing of products using GenericSetup. How to programmatically apply profiles? Somebody knows how to do that? Thank you for all hints and snippets, regards, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Setup of a Site with GenericSetup
Dear all, did somebody wrote a setup profile to install some products neccessary for a project? My Project is organized in three parts: - A product to setup configuration like properties, mailhost, etc: MyProjectSetup - A product for the Theme (templates, css, images): MyProjectTheme - A product with functionality: MyProduct It would be nice to install MyProduct and other additional products in an import_step of MyProjectSetup CMFPlone does this with calling quickinstaller. Does somebody know how to do this with applying GenericSetupProfiles? Thanks for all hints, Katja ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests