summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25d6fe5)
raw | patch | inline | side by side (parent: 25d6fe5)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 12 Sep 2001 08:31:42 +0000 (08:31 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 12 Sep 2001 08:31:42 +0000 (08:31 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@255 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 97d8346ff29a346ae01923c0a536ddd87f60d9d7..1cb3113307c71a1dfc8ddd60af2eb571941bbe54 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.25 2001-08-29 05:30:49 richard Exp $
+# $Id: cgi_client.py,v 1.26 2001-09-12 08:31:42 richard Exp $
import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
if [i for i in keys if i[0] != ':']:
try:
file = self.form['content']
+ type = mimetypes.guess_type(file.filename)[0]
+ if not type:
+ type = "application/octet-stream"
self._post_editnode(cl.create(content=file.file.read(),
- type=mimetypes.guess_type(file.filename)[0],
- name=file.filename))
+ type=type, name=file.filename))
# and some nice feedback for the user
message = '%s created ok'%cn
except:
#
# $Log: not supported by cvs2svn $
+# Revision 1.25 2001/08/29 05:30:49 richard
+# change messages weren't being saved when there was no-one on the nosy list.
+#
# Revision 1.24 2001/08/29 04:49:39 richard
# didn't clean up fully after debugging :(
#