Message5491
It says "You do not have permission to add a file" when I try to add a file, so I'm pasting all my svn diffs here:
Index: FileUtil.java
===================================================================
--- FileUtil.java (revision 6976)
+++ FileUtil.java (working copy)
@@ -18,6 +18,13 @@
public class FileUtil {
/**
+ * Creates a PyFile that reads from the given <code>InputStream</code> with mode.
+ */
+ public static PyFile wrap(InputStream is, String mode) {
+ return new PyFile(is, "<Java InputStream '" + is + "' as file>", mode, -1, true);
+ }
+
+ /**
* Creates a PyFile that reads from the given <code>InputStream</code> with bufsize.
*/
public static PyFile wrap(InputStream is, int bufsize) {
Index: PyFile.java
===================================================================
--- PyFile.java (revision 6976)
+++ PyFile.java (working copy)
@@ -96,7 +96,7 @@
file___init__(raw, name, mode, bufsize);
}
- PyFile(InputStream istream, String name, String mode, int bufsize, boolean closefd) {
+ public PyFile(InputStream istream, String name, String mode, int bufsize, boolean closefd) {
parseMode(mode);
file___init__(new StreamIO(istream, closefd), name, mode, bufsize);
}
Index: modjy_wsgi.py
===================================================================
--- modjy_wsgi.py (revision 6976)
+++ modjy_wsgi.py (working copy)
@@ -125,7 +125,7 @@
def set_wsgi_streams(self, req, resp, dict):
try:
- dict["wsgi.input"] = create_py_file(req.getInputStream())
+ dict["wsgi.input"] = create_py_file(req.getInputStream(),"rb")
dict["wsgi.errors"] = create_py_file(System.err)
except IOException, iox:
raise ModjyIOException(iox) |
|
Date |
User |
Action |
Args |
2010-02-03 19:29:38 | jfenwick | set | messageid: <1265225378.47.0.447610317798.issue1549@psf.upfronthosting.co.za> |
2010-02-03 19:29:38 | jfenwick | set | recipients:
+ jfenwick, amak, leosoto, pjenvey |
2010-02-03 19:29:38 | jfenwick | link | issue1549 messages |
2010-02-03 19:29:37 | jfenwick | create | |
|