Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5770 closed defect (worksforme)

Bug downloading roadmap as ical when all priorities have been deleted

Reported by: trasgu Owned by: Christopher Lenz
Priority: normal Milestone:
Component: roadmap Version: 0.10.4
Severity: normal Keywords: ical roadmap bug
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When no priorities are set, if you try to export roadmap as ical you get

Oops...
Trac detected an internal error: 'priority'
Traceback (most recent call last)
...

Here is a diff with the fix:

--- model.back.py       2007-03-06 11:15:50.000000000 +0100
+++ model.py    2007-03-06 11:05:00.000000000 +0100
@@ -104,7 +104,10 @@
                 self.values[name] = value
 
     def __getitem__(self, name):
-        return self.values[name]
+        if self.values.has_key(name):
+            return self.values[name]
+        else:
+            return '';
 
     def __setitem__(self, name, value):
         """Log ticket modifications so the table ticket_change can be updated"""

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

In milestone:0.11, __getitem__ does a return self.values.get(name), so this is not a problem anymore.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.