Changes between Version 51 and Version 52 of TracCronPlugin


Ignore:
Timestamp:
Sep 2, 2017, 8:48:59 AM (7 years ago)
Author:
figaro
Comment:

Rearranged paragraphs to maintain consistency

Legend:

Unmodified
Added
Removed
Modified
  • TracCronPlugin

    v51 v52  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Trac Cron task scheduler
     3= Trac task scheduler, recurring tasks
    44
    55== Description
     
    88
    99Key features:
    10  * Task are plugin
    11  * Bundled out-of-the-box task
    12  * Scheduler are plugin
     10 * Tasks are implemented as Python plugins
     11 * Comes bundled with out-of-the-box tasks
     12 * Scheduler is implemented as a plugin
    1313 * Bundled out-of-the-box scheduler; '''new''': cron syntax is supported
    14  * Listener mechanism to be notified of task execution
     14 * Listener mechanism allows the user to be notified of task execution
    1515 * Bundled out-of-the-box listener; '''new''': admin panel for listener
    16  * Task execution history; '''new''': rss feed is available
     16 * Task execution history can be viewed through an rss feed
    1717
    1818The plugin provides an administration panel to help with scheduling:
     
    2020[[Image(tcp_admin_panel.png, 80%, border=2)]]
    2121
    22 == Bugs/Feature Requests
    23 
    24 Existing bugs and feature requests for TracCronPlugin are
    25 [report:9?COMPONENT=TracCronPlugin here].
    26 
    27 If you have any issues, create a
    28 [/newticket?component=TracCronPlugin new ticket].
    29 
    30 [[TicketQuery(component=TracCronPlugin,group=type,format=progress)]]
    31 
    32 == Download
    33 
    34 Current stable release is '''0.3.1'''.
    35 
    36 You can use `easy_install` or `pip` to download and install the latest package into your Python environment:
    37 {{{#!sh
    38 easy_install TracCronPlugin
    39 }}}
    40 
    41 or:
    42 {{{#!sh
    43 pip install TracCronPlugin
    44 }}}
    45 
    46 Alternatively, download the [pypi:TracCronPlugin distribution files] from PyPI for installation from source only.
    47 
    48 == Source
    49 
    50 You can browse the source or clone TracCronPlugin from [https://bitbucket.org/t2y/trac.plugins.traccron BitBucket] using Mercurial.
    51 Originally, TracCronPlugin source is hosted in [/svn/traccronplugin trac-hacks.org svn], but is no longer maintained there.
    52 
    53 == Example
    54 
    55 Simply create in a module (.py) a class that implements the ICronTask and put it in the plugins directory. Then you can either modify the trac.ini file or use the Trac cron admin panel.
     22To add a task to the scheduler simply create in a module (.py) a class that implements the ICronTask and put it in the `plugins` directory. Then you can either modify your `trac.ini` file or use the Trac cron admin panel.
    5623
    5724=== Writing a task
     
    11279=== Installing a task
    11380
    114 Since tasks are components you just have to put the class definition of your task in a Python module in the plugins directory.
    115 You can either create a .py file and put it in the plugins directory or you can package the .py file into an egg and leave it in the plugins directory.
     81Since tasks are components, you just have to put the class definition of your task in a Python module in the `plugins` directory.
     82You can either create a .py file and put it in the `plugins` directory or you can package the .py file into an egg and leave it in the `plugins` directory.
    11683
    11784TracCronPlugin will show the task in the administration panel.
    11885
     86Other examples of how to implement recurring tasks are given below.
     87
     88== Bugs/Feature Requests
     89
     90Existing bugs and feature requests for TracCronPlugin are
     91[report:9?COMPONENT=TracCronPlugin here].
     92
     93If you have any issues, create a
     94[/newticket?component=TracCronPlugin new ticket].
     95
     96[[TicketQuery(component=TracCronPlugin,group=type,format=progress)]]
     97
     98== Download
     99
     100Download the zipped source from [export:traccronplugin here], however the latest stable version is maintained at [https://bitbucket.org/t2y/trac.plugins.traccron BitBucket].
     101Current stable release is '''0.3.1'''.
     102
     103== Source
     104
     105You can browse the source or clone TracCronPlugin from [https://bitbucket.org/t2y/trac.plugins.traccron BitBucket] using Mercurial.
     106Originally, TracCronPlugin source is hosted in [/svn/traccronplugin trac-hacks.org svn], but is no longer maintained there.
     107
     108== Installation
     109
     110You can use `easy_install` or `pip` to download and install the latest package into your Python environment:
     111{{{#!sh
     112$ easy_install TracCronPlugin
     113}}}
     114
     115or:
     116{{{#!sh
     117$ pip install TracCronPlugin
     118}}}
     119
     120Alternatively, download the [pypi:TracCronPlugin distribution files] from PyPI for installation from source only.
     121
    119122== Configuration
    120123
    121 The plugin can be entirely configured from either within the trac.ini file or from the administration panel.
     124The plugin can be entirely configured from either within the `trac.ini` file or from the administration panel.
    122125The section name of TracCronPlugin is `traccron`, here is a full sample:
    123126