Skip to content

Commit e9c2c36

Browse files
author
Richard Jones
committed
add info about storing Store TimeLog with Messages
1 parent b5eb8ed commit e9c2c36

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Feature:
1313
- @required in forms may now specify properties of linked items (sf patch
1414
1507093)
1515

16-
1716
Fixed:
1817
- Verbose option for import and export (sf bug 1505645)
1918
- -c option for roundup-mailgw won't accept parameter (sf bug 1505649)
2019
- '?' in rfc2822-encoded header isn't quoted (sf bug 1505663)
2120
- fix error message in form parser
2221
- update for latest version of pysqlite (sf bug 1487098; patch 1534227)
2322
- updated ZRoundup for Zope 2.9 (sf patch 1511734)
23+
- fix timelog example in customisation doc to mention permissions
2424

2525

2626
2006-04-27 1.1.2

doc/customizing.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.202 $
5+
:Version: $Revision: 1.203 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -3386,6 +3386,32 @@ be able to give a summary of the total time spent on a particular issue.
33863386
the code changes. When that's done, you'll be able to use the new
33873387
time logging interface.
33883388

3389+
An extension of this modification attaches the timelog entries to any
3390+
change message entered at the time of the timelog entry:
3391+
3392+
1. Add a link to the timelog to the msg class:
3393+
3394+
msg = FileClass(db, "msg",
3395+
author=Link("user", do_journal='no'),
3396+
recipients=Multilink("user", do_journal='no'),
3397+
date=Date(),
3398+
summary=String(),
3399+
files=Multilink("file"),
3400+
messageid=String(),
3401+
inreplyto=String()
3402+
times=Multilink("timelog"))
3403+
3404+
2. Add a new hidden field that links that new timelog item (new
3405+
because it's marked as having id "-1") to the new message.
3406+
It looks like this::
3407+
3408+
<input type="hidden" name="msg-1@link@times" value="timelog-1" />
3409+
3410+
The "times" property of the message will have the new id added to it.
3411+
3412+
3. Add the timelog listing from step 5. to the ``msg.item.html`` template
3413+
so that the timelog entry appears on the message view page.
3414+
33893415

33903416
Tracking different types of issues
33913417
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)