Roundup Tracker - Issues

Issue 678908

classification
doc bug in timelog example
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: :
Priority: normal :

Created on 2003-02-02 04:39 by anonymous, last changed 2003-02-02 04:39 by anonymous.

Messages
msg617 Author: [hidden] (anonymous) Date: 2003-02-02 04:39
There is a bug in the timelog example in the docs.
Your new time 
fields won't work (but will be displayed)
if you are creating a new 
issue. Change the lines:

      <tal:block 
tal:condition="not:context/id">
        <input type="hidden" 
name=":action" value="new">
        <input type="submit" 
name="submit" value="Submit New Issue">
      
</tal:block>

to read:

      <tal:block 
tal:condition="not:context/id">
        <input type="hidden" 
name=":action" value="new_with_timelog">
        <input 
type="submit" name="submit" value="Submit New Issue">
      
</tal:block>

and associate the new_with_timelog action 
with the
timeLogEditAction routine. In the 
timeLogEditAction
routine, replace the lines:

 # punt to 
the normal edit action
        return 
self.editItemAction()

with:

 # punt to the normal edit 
or new action
 if self.nodeid:
            return 
self.editItemAction()
        else:
            return 
self.newItemAction()

-- rouilj
History
Date User Action Args
2003-02-02 04:39:29anonymouscreate