Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modified api to print urls instead of object representations, as they…

… look a lot like bad html, and browsers ignore them. really need some json support here
  • Loading branch information...
commit f8c7f2910b4841f881c5df3a3e799bad543f744b 1 parent 0567df0
Jonathan Fritz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 musik/web/api.py
View
4 musik/web/api.py
@@ -10,7 +10,7 @@ def directory(self, path):
cherrypy.request.db.add(task)
#TODO: return JSON instead of text
- return u'Created the import task %s' % task
+ return u'Importing %s' % unicode(task.uri)
@cherrypy.expose
def status(self):
@@ -22,7 +22,7 @@ def status(self):
ret = u''
if (currentTask != None):
- ret += u'The importer is currently processing %s.<br />' % currentTask
+ ret += u'The importer is currently processing %s.<br />' % unicode(currentTask.uri)
#TODO: calculate estimated completion time by multiplying average job time by number of outstanding items
Please sign in to comment.
Something went wrong with that request. Please try again.