Skip to content

Commit

Permalink
Add context titles to context_refs
Browse files Browse the repository at this point in the history
Context titles may be helpful in understanding diffs showing buggy data changes
and may soon be useful again. Furthermore, context titles can reasonably be
expected to be unique. Otherwise they would be highly confusing elements of
the UI since they would require some other means of differentiation.

Signed-off-by: Matt Helsley <matt.helsley@gmail.com>
Signed-off-by: Darren Hart <darren@dvhart.com>
--
  • Loading branch information
mhelsley authored and dvhart committed Apr 10, 2009
1 parent 6205754 commit 2279150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlstore.py
Expand Up @@ -136,7 +136,7 @@ def save_task(self, task):
debug("saving contexts")
for c in task.contexts:
debug("referencing context: %s" % (c.title))
self._simple_element(x, "context_ref", {"id":str(c.id)})
self._simple_element(x, "context_ref", {"id":str(c.id)}, c.title)
self._simple_element(x, "complete", {}, complete_str)
x.endElement("task")
x.endDocument()
Expand Down

0 comments on commit 2279150

Please sign in to comment.