Mercurial > p > roundup > code
diff doc/customizing.txt @ 1409:8dc60d87ab42
Fixed a backlog of bug reports, and worked on python 2.3 compatibility:
- fixed templating filter function arguments [SF#678911]
- fixed multiselect in searching [SF#676874]
- fixed parsing of content-disposition filenames [SF#675116]
- added 'h' to roundup-server optarg list [SF#674070]
- fixed doc for db.history in anydbm and rdbms_common [SF#679221]
- fixed timelog example so it handles new issues [SF#678908]
- handle missing os.fork() [SF#681046]
- fixed roundup-reminder [SF#681042]
- fixed int assumptions about Number values [SF#677762]
- added warning filter for "FutureWarning: hex/oct constants > sys.maxint will
return positive values..." (literal 0xffff0000 in portalocker.py)
- fixed ZPT code generating SyntaxWarning for assignment to None
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Feb 2003 05:43:49 +0000 |
| parents | ca7dfc8bce15 |
| children | 2f6647cf5345 |
line wrap: on
line diff
--- a/doc/customizing.txt Mon Feb 03 11:14:16 2003 +0000 +++ b/doc/customizing.txt Thu Feb 06 05:43:49 2003 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.72 $ +:Version: $Revision: 1.73 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -2558,6 +2558,7 @@ ''' actions = client.Client.actions + ( ('edit_with_timelog', 'timelogEditAction'), + ('new_with_timelog', 'timelogEditAction'), ) def timelogEditAction(self): @@ -2587,7 +2588,10 @@ self.form.list.append(MiniFieldStorage('times', entry)) # punt to the normal edit action - return self.editItemAction() + if self.nodeid: + return self.editItemAction() + else: + return self.newItemAction() you add this code to your Client class in your tracker's ``interfaces.py`` file. Locate the section that looks like:: @@ -2621,14 +2625,15 @@ <input type="submit" name="submit" value="Submit Changes"> </tal:block> <tal:block tal:condition="not:context/id"> - <input type="hidden" name=":action" value="new"> + <input type="hidden" name=":action" value="new_with_timelog"> <input type="submit" name="submit" value="Submit New Issue"> </tal:block> </td> </tr> The important change is setting the action to "edit_with_timelog" for - edit operations (where the item exists) + edit operations (where the item exists) and "new_with_timelog" for + creations operations. 6. We want to display a total of the time log times that have been accumulated for an issue. To do this, we'll need to actually write some Python code,
