Commit 2f6300ae authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

less verbosity

parent 1e95a347
......@@ -121,7 +121,7 @@ class FileSaver (Resource):
self.docroot = docroot
def render_POST(self, request):
print ("FileSaver.POST", self.path, request)
# print ("FileSaver.POST", self.path, request)
data = request.content.read()
data = parse_qs(data)
# print ("data", data)
......@@ -136,7 +136,7 @@ class FileSaver (Resource):
if self.docroot and not newpath.startswith(self.docroot):
print (u"BAD Rename attempt '{0}' to '{1}'".format(self.path, newpath).encode("utf-8"))
return "BAD PATH"
print (u"Renaming '{0}' to '{1}'".format(self.path, newpath).encode("utf-8"))
# print (u"Renaming '{0}' to '{1}'".format(self.path, newpath).encode("utf-8"))
os.rename(self.path, newpath)
elif "text" in data:
text = data['text'][0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment