我想运行的需要很长时间才能完成(分钟)在Plone任务。因为我可以present使用AJAX进度条任务的持续时间。
I'd like to run tasks in Plone which take long time to complete (minutes). For the duration of the task I could present a progress bar using AJAX.
是否有任何现成的Plone库/插件,让你序列化的任务条,并自动给AJAX状态报告,而不需要手动拆分和维护服务器的长时间运行的任务状态?
Are there any ready Plone libraries / add-ons which allow you to serialize task to pieces and give AJAX status report automatically, without need to manually split and maintain the long running task state on the server?
例如。
您开始用start()方法的任务
You start the task with start() method
任务给的getStatus具有()或类似的状态
Task gives status with getStatus() or similar
框架将处理使得这项任务异步和具有前端code跟着任务状态
Framework will handle making the task asynchronous and has front-end code to follow the task status
netsight.async 可以做到这一点。