各种genericsetup处理程序和cmfquickinstaller增强功能
collective.gsqi的Python项目详细描述
这个包是我的gs和portal_quickinstaller补丁包 我在我的客户工作中使用。它不稳定,未抛光,受我的 心血来潮,真的应该是实验性的。但是,如果 常规设置和门户快速安装程序的怪癖和错误困扰您,或 同样的便利对你来说也是有价值的,你可能想看看 里面有什么。
- Fix import of group roles during workflow import
- Fix circular import handler dependencies bug
- Fix portal_quickinstaller so that persistent data is not lost on reinstall
其中还包括对cmf的一些可能不太好的扩展。 内容导入处理程序。
- Permissive registrations of the StructureFolderWalkingAdapter so that folders under the profile’s “structure” folder with the same name as in the container’s .objects file can be used to import any kind of content object, not just folders. This allows, amongst other things, creating topics/collections and criteria on import.
- Set arbitrary AT fields on import using the options under the [FIELDS] section of .properties as field names and the option values as field values. If field.multiValued is True, then the option value will be split on newlines and each value stripped.
- Reindex imported objects so that imported titles, descriptions, and any other AT fields are reflected in the catalog and portal navigation after import.
- Set local roles on import where each option under the [ROLES] section of .properties is the principal/user id and the roles assigned to that principal are taken from the option value split at newlines with each item stripped.
- Do each workflow transition listed under the “transitions” option of the [DEFAULT] section of .properties. The option value is split at newlines with each item stripped.
- Set display layout using the layout option in the [DEFAULT] section of .properties
下面是一个示例.properties文件,演示所有这些扩展名:
[DEFAULT] title = News and Events description = Site News and Events transitions = publish layout = aggregator [ROLES] Marketers = Contributor [FIELDS] excludeFromNav = True constrainTypesMode = 1 locallyAllowedTypes = Event News Iem immediatelyAddableTypes = Event News Iem
还包括GSML 允许像实现zcml一样实现gs导入处理程序 指令处理程序。一些导入处理程序包含在 使用gsml的collective.gsqi。
变更日志
0.3-2009年8月23日
- 更宽松的结构FolderWalkingAdapter注册
- 直接使用at field set方法,以便模式“r”字段仍然可以 导入
- 添加对在GS内容导入上设置内容显示布局的支持
0.2-2009-06-27
- 使内容属性导入程序在内容 已经存在。听着,你要抓住进口商而不是 制造实例。
- 添加对在引用处导入的支持
- 合并来自的http://dev.plone.org/plone/ticket/8350的修复程序 马修。
- 添加对导入组的支持
- 修复给定步骤中使用XML处理配置文件的问题
- 添加对基于ZCML的GenericSetup导入处理程序的支持
- 修复dcwokflow对组的导出导入处理
0.1-2009-04-07
- 初次发行