diff doc/customizing.txt @ 3717:5770f1802cd0

better conflict retry in postgresql backend [SF#1552809] fix time log example [SF#1554630]
author Richard Jones <richard@users.sourceforge.net>
date Tue, 03 Oct 2006 23:28:51 +0000
parents af6eeba3a3f3
children 0d561b24ceff
line wrap: on
line diff
--- a/doc/customizing.txt	Tue Oct 03 23:18:25 2006 +0000
+++ b/doc/customizing.txt	Tue Oct 03 23:28:51 2006 +0000
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.207 $
+:Version: $Revision: 1.208 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -3373,11 +3373,13 @@
    to the ``extensions`` directory in our tracker. The contents of this
    file is as follows::
 
+    from roundup import date
+
     def totalTimeSpent(times):
         ''' Call me with a list of timelog items (which have an
             Interval "period" property)
         '''
-        total = Interval('0d')
+        total = date.Interval('0d')
         for time in times:
             total += time.period._value
         return total

Roundup Issue Tracker: http://roundup-tracker.org/