Re: [Zope-CMF] Effective use of effective_date and expiration_date
On Tuesday 29 August 2006 06:48, Wichert Akkerman wrote: > Previously Dmitry S. Makovey wrote: > > What I need is to activate transitions on effective_date and > > expiration_date. Quick "screw-around" with > > automatic/WorkflowMethod transitions yeilded zero positive > > results (unless I'm doing it wrong). Anybody seen anything like > > this done before? > > Can't AlphaFlow > (http://www.gocept.com/gocept/activities/innovation/alphaflow) do > that? Seems like it can, but my problem is the version of Plone we're currently at: 2.0.5 and the fact that we've already deployed "PlacefulWorkflow" to resolve problem of multiple workflows (AlphaFlow doesn't seem to play nice with it, at least from my 15-minute test). But thanks for the pointer. AlphaFlow is definitely something I would look at in the future. As for my immediate needs unfortunately I'm still looking for solution. -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245 pgpIlFsUZJLiw.pgp Description: PGP signature ___ 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] Effective use of effective_date and expiration_date
Previously Dmitry S. Makovey wrote: > What I need is to activate transitions on effective_date and > expiration_date. Quick "screw-around" with automatic/WorkflowMethod > transitions yeilded zero positive results (unless I'm doing it > wrong). Anybody seen anything like this done before? Can't AlphaFlow (http://www.gocept.com/gocept/activities/innovation/alphaflow) do that? Wichert. -- Wichert Akkerman <[EMAIL PROTECTED]>It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ 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: Effective use of effective_date and expiration_date
Raphael Ritz wrote: > Tres Seaver schrieb: > [..] >> >> Yep -- this is how the "typical" site uses those dates. However, some >> folks want actual workflow transitions to happen ASAP after each date >> passes. In that case, you need to write a periodic task which searches >> for objects which are in the "between" state (e.g., their expiration >> date has passed but they are still "active"), and cause the workflow >> tool to "tickle" the transition machinery. E.g., as a Python Script:: >> >> # untested >> for brain in context.portal_catalog.searchResults( >> review_state="published", >> expiration_date={'query': ZopeTime(), >> 'operator': 'max'}): >> obj = brain.getObject() >> wf_tool.doActionFor(ob, 'expire') >> >> > > Yep. And just reinforcing the obvious: > Trigger the script Tres mentioned on a regular basis > yourself, either using a cron job or Zope's ClockServer > from Chris (included in Zope 2.10 now?) > > http://plope.com/software/ClockServer/ Yup, included. ___ 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] CMF Collector: Open Issues
The following supporters have open issues assigned to them in this collector (http://www.zope.org/Collectors/CMF). Assigned and Open jens - "CachingPolicyManager: Support OFS.Cache.CacheManager", [Accepted] http://www.zope.org/Collectors/CMF/408 mhammond - "Windows DevelopmentMode penalty in CMFCore.DirectoryView", [Accepted] http://www.zope.org/Collectors/CMF/366 Pending / Deferred Issues - "Wrong cache association for FSObject", [Pending] http://www.zope.org/Collectors/CMF/255 - "CMFSetup: Windows exports contain CR/LF, LF and even CR newlines", [Pending] http://www.zope.org/Collectors/CMF/266 - "FSPropertiesObject.py cannot handle multiline input for lines, text attributes", [Deferred] http://www.zope.org/Collectors/CMF/271 - "Can't invalidate skin items in a RAMCacheManager", [Pending] http://www.zope.org/Collectors/CMF/343 - "CMFSetup: Workflow Tool export fails with workflows which have scripts", [Pending] http://www.zope.org/Collectors/CMF/373 - "CMFCore.Skinnable.SkinnableObjectManager can merge skin data", [Pending] http://www.zope.org/Collectors/CMF/375 - "Proxy Roles does't work for a Script using portal_catalog.searchResults", [Pending] http://www.zope.org/Collectors/CMF/380 - "workflow notify success should be after reindex", [Pending] http://www.zope.org/Collectors/CMF/389 - "'except ...: pass' in CMFCore/TypesTool.py:_queryFactoryMethod() nullifies VerboseSecurity", [Pending] http://www.zope.org/Collectors/CMF/410 - "Possible bug when using a BTreeFolder Member folder", [Pending] http://www.zope.org/Collectors/CMF/441 - "Proxy Roles not Working/Applied to Worflow Transition Scripts", [Pending] http://www.zope.org/Collectors/CMF/449 - "safe_html filters some tags which should probably not be filtered", [Pending] http://www.zope.org/Collectors/CMF/452 Pending / Deferred Features - "Favorite.py: queries and anchors in remote_url", [Pending] http://www.zope.org/Collectors/CMF/26 - "DefaultDublinCore should have Creator property", [Pending] http://www.zope.org/Collectors/CMF/61 - "Document.py: universal newlines", [Pending] http://www.zope.org/Collectors/CMF/174 - "Add condition for transition's action like other action", [Pending] http://www.zope.org/Collectors/CMF/207 - "Major action enhancement", [Pending] http://www.zope.org/Collectors/CMF/232 - "portal_type is undefined in initialization code", [Pending] http://www.zope.org/Collectors/CMF/248 - "CMFTopic Does Not Cache", [Deferred] http://www.zope.org/Collectors/CMF/295 - "Wishlist: a flag that tags the selected action.", [Pending] http://www.zope.org/Collectors/CMF/301 - "CMFDefault should make use of allowCreate()", [Pending] http://www.zope.org/Collectors/CMF/340 - "Nested Skins", [Deferred] http://www.zope.org/Collectors/CMF/377 - "CatalogVariableProvider code + tests", [Pending] http://www.zope.org/Collectors/CMF/378 - "manage_doCustomize() : minor additions", [Pending] http://www.zope.org/Collectors/CMF/382 - "CMF needs View-based TypeInformation", [Pending] http://www.zope.org/Collectors/CMF/437 - "Marker attributes should be deprecated", [Pending] http://www.zope.org/Collectors/CMF/440 ___ 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: Effective use of effective_date and expiration_date
Tres Seaver schrieb: [..] Yep -- this is how the "typical" site uses those dates. However, some folks want actual workflow transitions to happen ASAP after each date passes. In that case, you need to write a periodic task which searches for objects which are in the "between" state (e.g., their expiration date has passed but they are still "active"), and cause the workflow tool to "tickle" the transition machinery. E.g., as a Python Script:: # untested for brain in context.portal_catalog.searchResults( review_state="published", expiration_date={'query': ZopeTime(), 'operator': 'max'}): obj = brain.getObject() wf_tool.doActionFor(ob, 'expire') Yep. And just reinforcing the obvious: Trigger the script Tres mentioned on a regular basis yourself, either using a cron job or Zope's ClockServer from Chris (included in Zope 2.10 now?) http://plope.com/software/ClockServer/ Raphael ___ 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