Permalink
Browse files

crashfix: unknown sympol ctx in full_mark_xml

Export bitrotted when method check was pushed down.
  • Loading branch information...
1 parent 166d9be commit 3633a35d4e23a784336048e38caeef5637887188 @zaitcev committed Jun 5, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 slasti/main.py
View
@@ -286,7 +286,7 @@ def root_tag_html(start_response, ctx, tag):
return page_any_html(start_response, ctx, mark)
# full_mark_html() would be a Netscape bookmarks file, perhaps.
-def full_mark_xml(start_response, user, base):
+def full_mark_xml(start_response, ctx):
if ctx.method != 'GET':
raise AppGetError(ctx.method)
response_headers = [('Content-type', 'text/xml')]
@@ -297,8 +297,8 @@ def full_mark_xml(start_response, user, base):
# We omit total. Also, we noticed that Del.icio.us often miscalculates
# the total, so obviously it's not used by any applications.
# We omit the last update as well. Our data base does not keep it.
- output.append('<posts user="'+user['name']+'" tag="">\n')
- for mark in base:
+ output.append('<posts user="'+ctx.user['name']+'" tag="">\n')
+ for mark in ctx.base:
output.append(mark.xml())
output.append("</posts>\n")
return output
@@ -571,7 +571,7 @@ def app(start_response, ctx):
if ctx.path == "export.xml":
if ctx.flogin == 0:
raise AppLoginError()
- return full_mark_xml(start_response, ctx.user, ctx.base)
+ return full_mark_xml(start_response, ctx)
if ctx.path == "tags":
return full_tag_html(start_response, ctx)
if "/" in ctx.path:

0 comments on commit 3633a35

Please sign in to comment.