Roundup Wiki

Following code was sent to me by Marcus Priesch. I modified it for Roundup 0.8. I am assuming you have added a Date field called 'deadline' to your 'issue' class.

This customization is structured as follows: A file called '_generic.calendar.html' in the 'html' folder of your tracker home, a file called 'datehelp.py' in the 'extensions' folder of your tracker home, and code to display the link in your item template.

To display the link for the DateHelp in your item template use following tag: '<span tal:content="structure python:utils.date_help(request, context.deadline)"/>' Put the tag in your 'issue.item.html' template.

The 'utils.date_help' call has following arguments:

- *request*: The request object. Just leave this.

- *item*: The name of the property you wish to modify. Should probably be of the form 'context.property'

- *width*: (optional) The width of the popup window, default=300

- *height*: (optional) The height of the popup window, default=200

- *label*: (optional) The link text to display, default="(cal)"

- *form*: (optional) The form to write the selected date back to, default="itemSynopsis"

In the html folder of your tracker home add a file called '_generic.calendar.html' with following contents::

In the extensions folder of your tracker home add a file called 'datehelp.py' with following contents::