各种genericsetup处理程序和cmfquickinstaller增强功能

collective.gsqi的Python项目详细描述


这个包是我的gs和portal_quickinstaller补丁包 我在我的客户工作中使用。它不稳定,未抛光,受我的 心血来潮,真的应该是实验性的。但是,如果 常规设置和门户快速安装程序的怪癖和错误困扰您,或 同样的便利对你来说也是有价值的,你可能想看看 里面有什么。

其中还包括对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

  • 初次发行

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Spring引导上的java Jackson数据绑定依赖项错误,AWS应用程序   java从命令行从QuickBooks API更新数据   java 8上的spring迭代值   html我们如何使用java代码解析xhtml文档?   span下的java Jsoup html解析项   java如何在类级注释之前对带有@valid注释的属性执行验证?   JavaImageView。setImageDrawable在横向模式下不工作   java并发对匹配   java python子进程调用ubuntu 14.04   如何在java中检查文件详细信息?   一串子字符串和空格,Java   java如何在CORBA服务器中识别各种CORBA客户机   java为什么Hibernate中的生命周期侦听器是可序列化的?   java HttpsServer使用curl会导致100%的CPU负载   java Maven在合并web时提供货物。xml不包括所有错误页面   java如何获取图形触摸的所有x、y坐标并将其发送给MainActivity?   如何按日期筛选多个文档中的数据Firestore、Android和Java