正式工作流程旨在防止编辑、删除或还原已发布内容而跳过审阅

ilrt.formalworkflow的Python项目详细描述


概述

Ed Crewe,ILRT在布里斯托尔大学,2013年6月23日

注意:从plone 3.*版本0.6更新到plone 4.0兼容版本1.6
最新版本是用plone 4.3测试的1.9

在0.6到1.9之间没有功能变化,只有皮肤安装 测试套件的调整和更新。

尿源见http://bitbucket.org/edcrewe/ilrt.formalworkflow 存储库、问题跟踪程序等。

正式工作流是为可能有许多编辑器的站点设计的 对于未经授权的用户,可以更改 不需要网站。一个典型的场景可能是一个组织的 必须遵守某些法律限制或 例如编辑风格。为了确保这一遵从性 编辑的子集被信任来查看和发布内容。 同时,所有编辑都可以使用私有状态的内容。

此包应用基于简单发布的工作流定义 工作流…但它确保编辑器不能修改公共内容。 相反,它启用了plone.app.iterate,用户可以使用它签出 要处理并重新提交以供审阅的已发布项的工作副本。

编辑和所有者也被限制删除已发布的项目或 把它们还原成过去的版本,本质上是任何可以改变的 已发布的内容,无评论。

工作流程

工作流程图可在/docs文件夹中找到

http://mail.ilrt.bris.ac.uk/~cmetc/images/formalworkflow.png

以下是一个用户故事:

Editor
- An editor creates a document
- They edit and then submit it for review
- It is now in the pending state

Reviewer
- The document appears for review in their review list so they click on it
- They make a few minor ammendments and publish it

Editor
- A week later some more information needs to be added to the document
- The editor goes to it, but it there is no workflow menu just
  State:Published so they cannot retract it. The edit and history tabs
  are also gone. So instead they must click on 'Make changes' from the actions menu.
- This locks the item and marks it as being edited in a working copy.
- The editor does their edits then clicks on submit to bring their changes to the
  attention of the reviewer

Reviewer
- The reviewer sees the page pop up in their review list
- They click on it and look at the changes the editor has made.
  They like the changes but decide they want some modifications made to them
  by the editor. They dont want to 'Cancel changes' since the editor has done a
  lot of changes, so they just add a note of the further changes needed and make
  the working copy private again.

Editor
- The editor reads the comment and re-edits the working copy, once these final changes
  are complete is it resubmitted to the pending state.

Reviewer
- The reviewer notices the item is back again in their review list, so realises
  it has been re-edited.
  They click on it ... see that it is ready and so do the 'Accept changes' to replace
  the current published version, at which point the working copy is removed.

注释

这个包实际上只是xml配置数据和重新处理皮肤拷贝、粘贴 并删除安全性,使其特定于对象而不是基于文件夹。 不过,除了功能测试之外,它只包含很少的python, 这是一个通常需要的工作流,需要一些时间 配置调整。

如果此工作流与主题egg一起应用,则formalWorkflow 皮肤应该添加在编辑层的皮肤列表的顶部。 门户皮肤工具。

如果将工作流应用于现有站点,则可能需要 ilrt.migrationtool使用其实用工具进行映射 现有的内容从一个工作流到另一个工作流。否则会改变 工作流将对象还原为新工作流的默认状态。

如果希望将自定义类型与此工作流一起使用,则需要使它们可版本化。 通过 portal_repository tool或 plone.app.iterate对他们不可用。

如果正式工作流应用于文件夹(默认配置文件设置),则键入 如果没有工作流,编辑器将无法添加或删除图像和文件。 为了解决这个问题,还包括一个稍加修改的one_state_工作流版本 允许编辑器不受限制地修改此内容的内容类型。

您可以自定义哪些类型使用正式工作流,从而强制执行审阅过程, 通过门户工作流工具。您还可以选择仅应用正式工作流 通过placeful workflow发送到站点的重要部分。

如果你不想让用户询问退房地点,那么你可以 在站点属性中全局指定签出定位器。目前这将是 全局检查定位器='plone.app.iterate.home'或'plone.app.iterate.parent' 如果未设置,则使用默认行为。

ilrt.formalWorkflow的更改日志

ILRT.FORMALWorkflow-1.9发布-6月23日

  • Fix formalworkflow with latest Plone 4.3, Use index not template attrib from plone.app.iterate
  • Fix doc tests wrt. templates
  • Modify setup.py to specify test requirements

ilrt.formalworkflow-1.8发布-2011年12月1日

  • Modify configure zcml for cmf permissions compatibility with plone 4.1
  • Add some standard content rule email notifiers related to workflow actions
  • Add ContentPanels to workflow configuration
  • Fix some deprecated syntax in tests

Changes funded by the University of the Highlands and Islands - John McAlpine & Jane Fitzpatrick

[Ed Crewe, R&D - University of Bristol]

ilrt.formalworkflow-1.7发布-2011年9月29日

  • Some files missing from the egg

[Ed Crewe,R&D-布里斯托尔大学]

ilrt.formalworkflow-1.6发布-2010年9月2日

  • Tested against plone 4.0 - fixed tests for new default plone skin
  • Modified skin setup to add formalworkflow layer to the two plone skins not create its own

[Ed Crewe, ILRT - University of Bristol]

ilrt.formalworkflow-0.6发布-2009年9月10日

  • Tested against plone 3.3 - fixed tests
  • Added option to globally set check out location in site properties.

[Ed Crewe, ILRT - University of Bristol]

ilrt.formalworkflow-0.5发布-2009年6月10日

  • Added a subclass of the iterate info viewlet to redeclare the security so that editors can see it and find existing checkouts.

[Dave Mote, Washtenaw County Government]

ILRT.FORMAL工作流-0.4发布日期:2009年5月20日

  • Added an adapted version of one_state_workflow to allow editors to add and delete images and files. Since the default formalworkflow profile adds formal_workflow to folders - blocking editor modification of unworkflowed types.

[Ed Crewe, ILRT - University of Bristol]

ilrt.formalworkflow-0.3发布-2009年4月5日

  • Changed action names and templates to be less versioning orientated Now uses Make changes, Accept changes and Cancel changes
  • Fixed folder permissions checks blocking delete, copy and paste of objects in published folders for editors
  • Cleaned up permissions
  • Removed unnecessary formalworkflow layer

[Ed Crewe, ILRT - University of Bristol]

ILRT.FORMALWorkflow-0.2发布-2009年1月20日

  • Released to pypi with some documentation

[Ed Crewe, ILRT - University of Bristol]

ilrt.formalworkflow-0.1未发布

  • Initial package structure.

[zopeskel]

待办事项列表

  1. 找到一种更好的方法来允许使用对象的权限,而不是 而不是那些用于删除、复制和粘贴的容器。 目前它使用一个需要代理管理器的解决方案,然后 在皮肤内进行手动权限检查。

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

推荐PyPI第三方库


热门话题
java无法使用JAXB配置Moxy   java如何让我的简单Swing telnet客户端正确显示字符?   java中从可运行线程调用主线程的多线程处理   java数据源。EBJ3会话bean中的getConnection()   使用java和正则表达式从xml文件提取值时出现问题   java定制Jersy胡须Mvc   在Java中,“限制并发”是什么意思?   java有没有更干净的方法可以在这里使用Optional,而不在三个地方返回“NA”?   java Tomcat启动,然后崩溃,除非我打电话   java理解客户机和服务器   java时间戳将在视图对象>实体转换期间丢失   如何在java中返回布尔值(基元)?   java使用spring mvc设置日志记录,希望仅对我的代码进行跟踪/调试   用Jackson解析嵌套对象