This commit is contained in:
j 2007-12-04 15:40:27 +00:00
parent 4830a3bc5c
commit e022c47961

View file

@ -47,7 +47,7 @@ class Archive(SQLObject):
dto = socket.getdefaulttimeout()
socket.setdefaulttimeout(256)
url = "%s/%s?md5sum=%s" % (self.baseUrlFrontend, action, md5sum)
print url
#print url
result = read_url(url)
#print "Frontend:", result['result']
socket.setdefaulttimeout(dto)
@ -126,7 +126,7 @@ class Archive(SQLObject):
ret = "added entry"
f.updateMeta()
self.notifyFrontend('add', f.md5sum)
return ret
return ret.encode('utf-8')
def removeFile(self, md5sum):
'''