怎样在Plone中执行周期性的任务

怎样在Plone中执行周期性的任务
Clock and asyncronous tasks[align=left]Description[/align][align=left]How to run background tasks or cron jobs with Zope[/align]
Cron jobsYou can use simple UNIX cron + wget combo to make timed jobs in Plone.
If you need to authenticate, e.g. as an admin, Zope users (not Plone users)can be authenticated using HTTP Basic Auth.
Clock serverYou can make Zope to make regular calls to your views.
Add in buildout.cfg:
zope-conf-additional =
<clock-server>
method /xxx/feed-mega-update
period 3600
user updater
password 123123
host xxx.com
</clock-server>

<clock-server>
method /yyy/feed-mega-update
period 3600
user updater
password 123123
host yyy.com
</clock-server>

Create a corresponding user in ZMI.
If you are using a public source control repository for your buildout.cfg youmight want to put zope-conf-additional= to secret.cfg which lies only on theproduction server and is never committed to the version control:
# Change the number here to change the version of Plone being used
extends =
http://dist.plone.org/release/4.1rc3/versions.cfg
http://good-py.appspot.com/release/dexterity/1.0?plone=4.1rc3
http://plonegomobile.googlecode.com/svn/gomobile.buildout/gomobile.plone-4.trunk.commit-access.cfg
secret.cfg



设置