Skip to content

Commit

Permalink
Added a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Dec 27, 2016
1 parent b8f0b5c commit 0297fc7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions listmilestones/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ def expand_macro(self, formatter, name, content):
content_type = 'text/html'

dispatcher = RequestDispatcher(self.env)
resp = dispatcher._post_process_request(req, template, data, content_type)
response = dispatcher._post_process_request(req, template, data, content_type)

if (len(resp) == 3):
template, data, content_type = resp
# API < 1.1.2 does not return a method.
if (len(response) == 3):
template, data, content_type = response
return Markup(Chrome(self.env).render_template(formatter.req, template, data, content_type=content_type, fragment=True))

template, data, content_type, method = resp
template, data, content_type, method = response
return Markup(Chrome(self.env).render_template(formatter.req, template, data, content_type=content_type, fragment=True, method=method))

def get_templates_dirs(self):
Expand Down

0 comments on commit 0297fc7

Please sign in to comment.