summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2001-03-09 18:58:22 +0000
committerJens Vagelpohl <jens@netz.ooo>2001-03-09 18:58:22 +0000
commit6576361287c8a1d2dd09ca9fbab2c0f3b54b5e4d (patch)
tree580ec2234eb06a40830870ff017ea7bff4d77b8e
parentcf7f7ba702a95f8efe661730a35da9916e0fb0e6 (diff)
downloadGraphEngine-6576361287c8a1d2dd09ca9fbab2c0f3b54b5e4d.zip
GraphEngine-6576361287c8a1d2dd09ca9fbab2c0f3b54b5e4d.tar.gz
Changed getForwardActions to return a list of tuples with the step_id as first and step_title as second element.
Changed getReverseAction to return the url only
-rw-r--r--GraphEngine.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/GraphEngine.py b/GraphEngine.py
index d414c32..7b0b9d1 100644
--- a/GraphEngine.py
+++ b/GraphEngine.py
@@ -189,10 +189,9 @@ class GraphEngine(ObjectManager, SimpleItem):
if forward_actions is not None:
for action in forward_actions:
url = self._storage.mungeUrl(action.get('step_id'))
- link_list.append('<a href="' + url + '">' +
- action.get('step_title') + '</a>')
+ link_list.append((url, action.get('step_title'))
- return link_list
+ return tuple(link_list)
def getReverseAction(self):
@@ -212,9 +211,8 @@ class GraphEngine(ObjectManager, SimpleItem):
link_str = '<a href="' + url + '"> Go back </a>'
else:
url = self._storage.mungeUrl(activity[-2])
- link_str = '<a href="' + url + '"> Go back </a>'
- return link_str
+ return url
##