Mercurial > p > roundup > code
changeset 3125:a37e657057c0 maint-0.7
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 28 Jan 2005 05:11:29 +0000 |
| parents | 427e3aee2113 |
| children | fa200651d4c6 |
| files | CHANGES.txt doc/customizing.txt |
| diffstat | 2 files changed, 41 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Thu Jan 13 05:13:54 2005 +0000 +++ b/CHANGES.txt Fri Jan 28 05:11:29 2005 +0000 @@ -1,7 +1,7 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. -2004-??-?? 0.7.?? +2004-??-?? 0.7.12 Fixed: - handle capitalisation of class names in text hyperlinking (sf bug 1101043)
--- a/doc/customizing.txt Thu Jan 13 05:13:54 2005 +0000 +++ b/doc/customizing.txt Fri Jan 28 05:11:29 2005 +0000 @@ -2455,6 +2455,46 @@ Adding a new field to the classic schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +This example shows how to add a simple field (a due date) to the default +classic schema. It does not add any additional behaviour, such as enforcing +the due date, or causing automatic actions to fire if the due date passes. + + +1. modify the schema:: + + issue = IssueClass(db, "issue", + assignedto=Link("user"), topic=Multilink("keyword"), + priority=Link("priority"), status=Link("status"), + due_dat=Date()) + +2. add an edit field to the issue.item.html template:: + + <tr> + <th>Due Date</th> + <td tal:content="structure context/due_date/field" /> + </tr> + +3. add the property to the issue.index.html page:: + + (in the heading row) + <th tal:condition="request/show/due_date">Due Date</th> + (in the data row) + <td tal:condition="request/show/priority" tal:content="i/due_date" /> + +4. add the property to the issue.search.html page:: + + <tr tal:define="name string:due_date"> + <th i18n:translate="">Due Date:</th> + <td metal:use-macro="search_input"></td> + <td metal:use-macro="column_input"></td> + <td metal:use-macro="sort_input"></td> + <td metal:use-macro="group_input"></td> + </tr> + + +Adding a new constrained field to the classic schema +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + This example shows how to add a new constrained property (i.e. a selection of distinct values) to your tracker.
