Attachment 'moinlog.txt'
Download 1 j@@"
2 <4 @
3 44!@
4 POST /wiki/TimRiker HTTP/1.1
5 Content-type: multipart/form-data; boundary=89692781418184
6 Content-length: 1832
7 Cache-Control: no-cache
8 Pragma: no-cache
9 User-Agent: Mozilla/4.0 (Linux 2.6.8-2-686) Java/1.5.0_04
10 Host: 10.52.31.37
11 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
12 Connection: keep-alive
13 Cookie: MOIN_ID=1120663414.02.19489
14 47A@
15 --89692781418184
16 Content-Disposition: form-data; name="filename"
17 --89692781418184
18 Content-Disposition: form-data; name="noredirect"
19 --89692781418184
20 Content-Disposition: form-data; name="filepath"; filename="/wiki/TimRiker?action=AttachFile&do=get&target=test.draw"
21 Content-Type: text/plain
22 CH.ifa.draw.standard.StandardDrawing "no_attributes" 1
23 CH.ifa.draw.figures.PolyLineFigure "no_attributes" 164 83 139 83 145 79 157 79 161 79 167 79 173 79 179 83 191 87 203 91 219 99 227 111 239 123 247 131 255 143 259 159 259 187 259 215 259 247 247 279 235 303 219 323 199 331 179 339 155 339 135 339 115 335 91 323 75 307 63 287 55 263 47 243 43 223 43 207 43 201 43 195 43 191 45 183 57 183 63 179 79 179 99 179 119 179 135 179 141 187 153 189 157 191 159 193 161 195 161 199 163 201 163 203 163 207 163 211 163 215 161 217 159 221 147 221 145 221 139 219 135 215 133 211 131 199 127 193 127 173 127 157 127 137 127 121 127 105 135 93 143 81 151 69 167 65 183 61 199 61 215 61 219 61 223 69 231 73 233 77 235 89 239 105 239 111 239 117 239 133 239 145 235 157 227 169 215 173 203 173 197 173 191 173 187 171 183 159 179 143 175 123 171 107 171 91 171 87 171 83 171 81 173 81 175 81 181 81 197 89 213 97 229 109 241 125 257 137 265 153 273 165 277 171 277 187 277 191 277 203 273 211 265 215 249 219 233 219 217 219 211 219 205 215 19
24 47B@
25 >3 207 181 191 177 179 169 175 167 171 167 167 167 165 167 161 167 161 169 157 181 157 197 157 213 161 229 169 241 177 249 185 257 197 261 213 261 219 261 235 253 247 241 255 221 263 205 263 185 263 169 263 163 255 151 243 143 231 135 215 131 209 131 207 131 203 131 199 131 195 133 193 137 193 143 193 149 193 151 193 153 193 155 195 155 NULL NULL 0 0 0
26 --89692781418184
27 Content-Disposition: form-data; name="filecomment"
28 TWiki Draw draw file
29 --89692781418184--
30 47C@
31 HTTP/1.1 200 OK
32 Date: Mon, 01 Aug 2005 23:14:13 GMT
33 Server: Apache/2.0.54 (Debian GNU/Linux)
34 Keep-Alive: timeout=15, max=100
35 Connection: Keep-Alive
36 Transfer-Encoding: chunked
37 Content-Type: text/html;charset=utf-8
38 1dda
39 <!-- ERROR REPORT FOLLOWS -->
40 <!--: spam
41 Content-Type: text/html
42 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
43 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
44 </font> </font> </font> </script> </object> </blockquote> </pre>
45 </table> </table> </table> </table> </table> </font> </font> </font><body bgcolor="#f0f0f8">
46 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
47 <tr bgcolor="#6622aa">
48 <td valign=bottom> <br>
49 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>IOError</strong>[Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'</big></big></font></td
50 ><td align=right valign=bottom
51 ><font color="#ffffff" face="helvetica, arial"><strong>Please include this information in your bug reports!:</strong><br>Python Python 2.3.5: /usr/bin/python<br>Linux fscsdmst02 2.6.8-2-686-smp #1 SMP Thu May 19 17:27:55 JST 2005 i686<br>MoinMoin Release 1.3.4 [Revision 1.3.4 release]<br>Mon Aug 1 17:14:13 2005</font></td></tr></table>
52
53 <p>A problem occurred in a Python script. Here is the sequence of
54 function calls leading up to the err
55 or, in the order they occurred.<p>
56 <table width="100%" cellspacing=0 cellpadding=0 border=0>
57 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/request.py">/usr/lib/python2.3/site-packages/MoinMoin/request.py</a> in <strong>run</strong>(self=<MoinMoin.request.RequestCGI instance>)</td></tr>
58 <tr><td><font color="#909090"><tt><small> 811</small> from MoinMoin.action.AttachFile import execute<br>
59 </tt></font></td></tr>
60 <tr><td><font color="#909090"><tt><small> 812</small> # TODO: what if pagename is None?<br>
61 </tt></font></td></tr>
62 <tr><td bgcolor="#ffccee"><tt><small> 813</small> execute(pagename, self)<br>
63 </tt></td></tr>
64 <tr><td><font color="#909090"><tt><small> 814</small> raise MoinMoinNoFooter <br>
65 </tt></font></td></tr>
66 B7&
67 r><td><font color="#909090"><tt><small> 815</small> <br>
68 </tt></font></td></tr>
69 <tr><td><small><font color="#909090"><strong>execute</strong> = <function execute>, <strong>pagename</strong> = u'TimRiker', <strong>self</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
70 <table width="100%" cellspacing=0 cellpadding=0 border=0>
71 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>execute</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
72 <tr><td><font color="#909090"><tt><small> 392</small> elif request.form.has_key('filepath'):<br>
73 </tt></font></td></tr>
74 <tr><td><font color="#909090"><tt><small> 393</small> if request.user.may.write(pagename):<br>
75 </tt></font></td></tr>
76 <tr><td bgcolor="#ffccee"><tt><small> 394</small> save_drawing(pagename, request)<br>
77 </tt></td></tr>
78 <tr><td><font color="#909090"><tt><small> 395</small> &nbs
79 44%@
80 x%_p; request.http_headers()<br>
81 </tt></font></td></tr>
82 <tr><td><font color="#909090"><tt><small> 396</small> request.write("OK")<br>
83 </tt></font></td></tr>
84 <tr><td><small><font color="#909090"><em>global</em> <strong>save_drawing</strong> = <function save_drawing>, <strong>pagename</strong> = u'TimRiker', <strong>request</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
85 <table width="100%" cellspacing=0 cellpadding=0 border=0>
86 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>save_drawing</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
87 <tr><td><font color="#909090"><tt><small> 531</small> os.unlink(savepath)<br>
88 </tt></font></td></tr>
89 <tr><td><font color="#909090"><tt><small> 532</small> else:<br>
90 </tt></font></td></tr>
91 <tr><td bgcolor="#ffccee"><tt><small> 533</small> file = open(savepath
92 x%_, 'wb')<br>
93 </tt></td></tr>
94 <tr><td><font color="#909090"><tt><small> 534</small> try:<br>
95 </tt></font></td></tr>
96 <tr><td><font color="#909090"><tt><small> 535</small> file.write(filecontent)<br>
97 </tt></font></td></tr>
98 <tr><td><small><font color="#909090">file <em>undefined</em>, open <em>undefined</em>, <strong>savepath</strong> = u'data/pages/TimRiker/attachments/'</font></small></td></tr></table><p><strong>IOError</strong>: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
99 <br><tt><small> </small> </tt>__doc__ =
100 'I/O operation failed.'
101 <br><tt><small> </small> </tt>__getitem__ =
102 <bound method IOError.__getitem__ of <exceptions.IOError instance>>
103 <br><tt><small> </small> </tt>__init__ =
104 <bound method IOError.__init__ of <exceptions.IOError instance>>
105 <br><tt><small> </small> </tt>__module__ =
106 'exceptions'
107 <br><tt><small> </small> </tt>__str__ =
108 <bound method IOError.__str__ of <exceptions.IOError instance>>
109 <br><tt><small>  
110 44&@
111 i7I@
112 x%_; </small> </tt>args =
113 (21, 'Is a directory')
114 <br><tt><small> </small> </tt>errno =
115 <br><tt><small> </small> </tt>filename =
116 'data/pages/TimRiker/attachments/'
117 <br><tt><small> </small> </tt>strerror =
118 'Is a directory'
119 <!-- The above is a description of an error in a Python program, formatted
120 for a Web browser because the 'cgitb' module was enabled. In case you
121 are not reading this in a Web browser, here is the original traceback:
122 Traceback (most recent call last):
123 File "/usr/lib/python2.3/site-packages/MoinMoin/request.py", line 813, in run
124 execute(pagename, self)
125 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 394, in execute
126 save_drawing(pagename, request)
127 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 533, in save_drawing
128 file = open(savepath, 'wb')
129 IOError: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
130 44'@
131 44(@
132 44)@
133 J`~%
134 44*@
135 lPOST /wiki/TimRiker HTTP/1.1
136 Content-type: multipart/form-data; boundary=89692781418184
137 Content-length: 404
138 Cache-Control: no-cache
139 Pragma: no-cache
140 User-Agent: Mozilla/4.0 (Linux 2.6.8-2-686) Java/1.5.0_04
141 Host: 10.52.31.37
142 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
143 Connection: keep-alive
144 Cookie: MOIN_ID=1120663414.02.19489
145 47J@
146 l--89692781418184
147 Content-Disposition: form-data; name="filename"
148 --89692781418184
149 Content-Disposition: form-data; name="noredirect"
150 --89692781418184
151 Content-Disposition: form-data; name="filepath"; filename="/wiki/TimRiker?action=AttachFile&do=get&target=test.map"
152 Content-Type: text/plain
153 --89692781418184
154 Content-Disposition: form-data; name="filecomment"
155 --89692781418184--
156 47K@
157 HTTP/1.1 200 OK
158 Date: Mon, 01 Aug 2005 23:14:13 GMT
159 Server: Apache/2.0.54 (Debian GNU/Linux)
160 Keep-Alive: timeout=15, max=99
161 Connection: Keep-Alive
162 Transfer-Encoding: chunked
163 Content-Type: text/html;charset=utf-8
164 1dda
165 <!-- ERROR REPORT FOLLOWS -->
166 <!--: spam
167 Content-Type: text/html
168 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
169 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
170 </font> </font> </font> </script> </object> </blockquote> </pre>
171 </table> </table> </table> </table> </table> </font> </font> </font><body bgcolor="#f0f0f8">
172 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
173 <tr bgcolor="#6622aa">
174 <td valign=bottom> <br>
175 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>IOError</strong>[Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'</big></big></font></td
176 ><td align=right valign=bottom
177 ><font color="#ffffff" face="helvetica, arial"><strong>Please include this information in your bug reports!:</strong><br>Python Python 2.3.5: /usr/bin/python<br>Linux fscsdmst02 2.6.8-2-686-smp #1 SMP Thu May 19 17:27:55 JST 2005 i686<br>MoinMoin Release 1.3.4 [Revision 1.3.4 release]<br>Mon Aug 1 17:14:14 2005</font></td></tr></table>
178
179 <p>A problem occurred in a Python script. Here is the sequence of
180 function calls leading up to the erro
181 r, in the order they occurred.<p>
182 <table width="100%" cellspacing=0 cellpadding=0 border=0>
183 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/request.py">/usr/lib/python2.3/site-packages/MoinMoin/request.py</a> in <strong>run</strong>(self=<MoinMoin.request.RequestCGI instance>)</td></tr>
184 <tr><td><font color="#909090"><tt><small> 811</small> from MoinMoin.action.AttachFile import execute<br>
185 </tt></font></td></tr>
186 <tr><td><font color="#909090"><tt><small> 812</small> # TODO: what if pagename is None?<br>
187 </tt></font></td></tr>
188 <tr><td bgcolor="#ffccee"><tt><small> 813</small> execute(pagename, self)<br>
189 </tt></td></tr>
190 <tr><td><font color="#909090"><tt><small> 814</small> raise MoinMoinNoFooter <br>
191 </tt></font></td></tr>
192 ><td><font color="#909090"><tt><small> 815</small> <br>
193 </tt></font></td></tr>
194 <tr><td><small><font color="#909090"><strong>execute</strong> = <function execute>, <strong>pagename</strong> = u'TimRiker', <strong>self</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
195 <table width="100%" cellspacing=0 cellpadding=0 border=0>
196 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>execute</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
197 <tr><td><font color="#909090"><tt><small> 392</small> elif request.form.has_key('filepath'):<br>
198 </tt></font></td></tr>
199 <tr><td><font color="#909090"><tt><small> 393</small> if request.user.may.write(pagename):<br>
200 </tt></font></td></tr>
201 <tr><td bgcolor="#ffccee"><tt><small> 394</small> save_drawing(pagename, request)<br>
202 </tt></td></tr>
203 <tr><td><font color="#909090"><tt><small> 395</small>  
204 ; request.http_headers()<br>
205 </tt></font></td></tr>
206 <tr><td><font color="#909090"><tt><small> 396</small> request.write("OK")<br>
207 </tt></font></td></tr>
208 <tr><td><small><font color="#909090"><em>global</em> <strong>save_drawing</strong> = <function save_drawing>, <strong>pagename</strong> = u'TimRiker', <strong>request</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
209 <table width="100%" cellspacing=0 cellpadding=0 border=0>
210 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>save_drawing</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
211 <tr><td><font color="#909090"><tt><small> 531</small> os.unlink(savepath)<br>
212 </tt></font></td></tr>
213 <tr><td><font color="#909090"><tt><small> 532</small> else:<br>
214 </tt></font></td></tr>
215 <tr><td bgcolor="#ffccee"><tt><small> 533</small> file = open(savepath,
216 'wb')<br>
217 </tt></td></tr>
218 <tr><td><font color="#909090"><tt><small> 534</small> try:<br>
219 </tt></font></td></tr>
220 <tr><td><font color="#909090"><tt><small> 535</small> file.write(filecontent)<br>
221 </tt></font></td></tr>
222 <tr><td><small><font color="#909090">file <em>undefined</em>, open <em>undefined</em>, <strong>savepath</strong> = u'data/pages/TimRiker/attachments/'</font></small></td></tr></table><p><strong>IOError</strong>: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
223 <br><tt><small> </small> </tt>__doc__ =
224 'I/O operation failed.'
225 <br><tt><small> </small> </tt>__getitem__ =
226 <bound method IOError.__getitem__ of <exceptions.IOError instance>>
227 <br><tt><small> </small> </tt>__init__ =
228 <bound method IOError.__init__ of <exceptions.IOError instance>>
229 <br><tt><small> </small> </tt>__module__ =
230 'exceptions'
231 <br><tt><small> </small> </tt>__str__ =
232 <bound method IOError.__str__ of <exceptions.IOError instance>>
233 <br><tt><small>
234 44-@
235 j@J$
236 h7Q@
237 </small> </tt>args =
238 (21, 'Is a directory')
239 <br><tt><small> </small> </tt>errno =
240 <br><tt><small> </small> </tt>filename =
241 'data/pages/TimRiker/attachments/'
242 <br><tt><small> </small> </tt>strerror =
243 'Is a directory'
244 <!-- The above is a description of an error in a Python program, formatted
245 for a Web browser because the 'cgitb' module was enabled. In case you
246 are not reading this in a Web browser, here is the original traceback:
247 Traceback (most recent call last):
248 File "/usr/lib/python2.3/site-packages/MoinMoin/request.py", line 813, in run
249 execute(pagename, self)
250 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 394, in execute
251 save_drawing(pagename, request)
252 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 533, in save_drawing
253 file = open(savepath, 'wb')
254 IOError: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
255 44.@
256 44/@
257 440@
258 POST /wiki/TimRiker HTTP/1.1
259 Content-type: multipart/form-data; boundary=89692781418184
260 Content-length: 2291
261 Cache-Control: no-cache
262 Pragma: no-cache
263 User-Agent: Mozilla/4.0 (Linux 2.6.8-2-686) Java/1.5.0_04
264 Host: 10.52.31.37
265 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
266 Connection: keep-alive
267 Cookie: MOIN_ID=1120663414.02.19489
268 47R@
269 --89692781418184
270 Content-Disposition: form-data; name="filename"
271 --89692781418184
272 Content-Disposition: form-data; name="noredirect"
273 --89692781418184
274 Content-Disposition: form-data; name="filepath"; filename="untitled.gif"
275 Content-Type: image/gif
276 Content-Transfer-Encoding: binary
277 GIF89a]
278 (8HXhx
279 )9IYiy
280 *:JZjz
281 @[k{
282 4~Un
283 d#C2(
284 HB(U
285 AM^t
286 9j F
287 k::Q
288 AX'B
289 PH)j
290 b^!:;
291 K)9<
292 47S@
293 YjH8
294 "$zBYI4
295 Akd0
296 yJm.
297 eMwNm
298 Q;CS%^UF_
299 Z1N+
300 vG&Z
301 --89692781418184
302 Content-Disposition: form-data; name="filecomment"
303 TWiki Draw GIF file
304 --89692781418184--
305 47T@
306 ZP6G
307 x+!HTTP/1.1 200 OK
308 Date: Mon, 01 Aug 2005 23:14:15 GMT
309 Server: Apache/2.0.54 (Debian GNU/Linux)
310 Keep-Alive: timeout=15, max=98
311 Connection: Keep-Alive
312 Transfer-Encoding: chunked
313 Content-Type: text/html;charset=utf-8
314 1dda
315 <!-- ERROR REPORT FOLLOWS -->
316 <!--: spam
317 Content-Type: text/html
318 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
319 <body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->
320 </font> </font> </font> </script> </object> </blockquote> </pre>
321 </table> </table> </table> </table> </table> </font> </font> </font><body bgcolor="#f0f0f8">
322 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
323 <tr bgcolor="#6622aa">
324 <td valign=bottom> <br>
325 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>IOError</strong>[Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'</big></big></font></td
326 ><td align=right valign=bottom
327 ><font color="#ffffff" face="helvetica, arial"><strong>Please include this information in your bug reports!:</strong><br>Python Python 2.3.5: /usr/bin/python<br>Linux fscsdmst02 2.6.8-2-686-smp #1 SMP Thu May 19 17:27:55 JST 2005 i686<br>MoinMoin Release 1.3.4 [Revision 1.3.4 release]<br>Mon Aug 1 17:14:15 2005</font></td></tr></table>
328
329 <p>A problem occurred in a Python script. Here is the sequence of
330 function calls leading up to the erro
331 x+!r, in the order they occurred.<p>
332 <table width="100%" cellspacing=0 cellpadding=0 border=0>
333 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/request.py">/usr/lib/python2.3/site-packages/MoinMoin/request.py</a> in <strong>run</strong>(self=<MoinMoin.request.RequestCGI instance>)</td></tr>
334 <tr><td><font color="#909090"><tt><small> 811</small> from MoinMoin.action.AttachFile import execute<br>
335 </tt></font></td></tr>
336 <tr><td><font color="#909090"><tt><small> 812</small> # TODO: what if pagename is None?<br>
337 </tt></font></td></tr>
338 <tr><td bgcolor="#ffccee"><tt><small> 813</small> execute(pagename, self)<br>
339 </tt></td></tr>
340 <tr><td><font color="#909090"><tt><small> 814</small> raise MoinMoinNoFooter <br>
341 </tt></font></td></tr>
342 x+!><td><font color="#909090"><tt><small> 815</small> <br>
343 </tt></font></td></tr>
344 <tr><td><small><font color="#909090"><strong>execute</strong> = <function execute>, <strong>pagename</strong> = u'TimRiker', <strong>self</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
345 <table width="100%" cellspacing=0 cellpadding=0 border=0>
346 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>execute</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
347 <tr><td><font color="#909090"><tt><small> 392</small> elif request.form.has_key('filepath'):<br>
348 </tt></font></td></tr>
349 <tr><td><font color="#909090"><tt><small> 393</small> if request.user.may.write(pagename):<br>
350 </tt></font></td></tr>
351 <tr><td bgcolor="#ffccee"><tt><small> 394</small> save_drawing(pagename, request)<br>
352 </tt></td></tr>
353 <tr><td><font color="#909090"><tt><small> 395</small>  
354 444@
355 x,8; request.http_headers()<br>
356 </tt></font></td></tr>
357 <tr><td><font color="#909090"><tt><small> 396</small> request.write("OK")<br>
358 </tt></font></td></tr>
359 <tr><td><small><font color="#909090"><em>global</em> <strong>save_drawing</strong> = <function save_drawing>, <strong>pagename</strong> = u'TimRiker', <strong>request</strong> = <MoinMoin.request.RequestCGI instance></font></small></td></tr></table><p>
360 <table width="100%" cellspacing=0 cellpadding=0 border=0>
361 <tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py">/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py</a> in <strong>save_drawing</strong>(pagename=u'TimRiker', request=<MoinMoin.request.RequestCGI instance>)</td></tr>
362 <tr><td><font color="#909090"><tt><small> 531</small> os.unlink(savepath)<br>
363 </tt></font></td></tr>
364 <tr><td><font color="#909090"><tt><small> 532</small> else:<br>
365 </tt></font></td></tr>
366 <tr><td bgcolor="#ffccee"><tt><small> 533</small> file = open(savepath,
367 x,8 'wb')<br>
368 </tt></td></tr>
369 <tr><td><font color="#909090"><tt><small> 534</small> try:<br>
370 </tt></font></td></tr>
371 <tr><td><font color="#909090"><tt><small> 535</small> file.write(filecontent)<br>
372 </tt></font></td></tr>
373 <tr><td><small><font color="#909090">file <em>undefined</em>, open <em>undefined</em>, <strong>savepath</strong> = u'data/pages/TimRiker/attachments/'</font></small></td></tr></table><p><strong>IOError</strong>: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
374 <br><tt><small> </small> </tt>__doc__ =
375 'I/O operation failed.'
376 <br><tt><small> </small> </tt>__getitem__ =
377 <bound method IOError.__getitem__ of <exceptions.IOError instance>>
378 <br><tt><small> </small> </tt>__init__ =
379 <bound method IOError.__init__ of <exceptions.IOError instance>>
380 <br><tt><small> </small> </tt>__module__ =
381 'exceptions'
382 <br><tt><small> </small> </tt>__str__ =
383 <bound method IOError.__str__ of <exceptions.IOError instance>>
384 <br><tt><small>
385 445@
386 h7Z@
387 x,A </small> </tt>args =
388 (21, 'Is a directory')
389 <br><tt><small> </small> </tt>errno =
390 <br><tt><small> </small> </tt>filename =
391 'data/pages/TimRiker/attachments/'
392 <br><tt><small> </small> </tt>strerror =
393 'Is a directory'
394 <!-- The above is a description of an error in a Python program, formatted
395 for a Web browser because the 'cgitb' module was enabled. In case you
396 are not reading this in a Web browser, here is the original traceback:
397 Traceback (most recent call last):
398 File "/usr/lib/python2.3/site-packages/MoinMoin/request.py", line 813, in run
399 execute(pagename, self)
400 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 394, in execute
401 save_drawing(pagename, request)
402 File "/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py", line 533, in save_drawing
403 file = open(savepath, 'wb')
404 IOError: [Errno 21] Is a directory: 'data/pages/TimRiker/attachments/'
405 446@
406 447@
407 448@
408 449@
409 GET /wiki/TimRiker?action=AttachFile&ts=1122938033.07 HTTP/1.1
410 Host: 10.52.31.37
411 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1
412 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
413 Accept-Language: en-us,en;q=0.8,es-mx;q=0.5,es;q=0.3
414 Accept-Encoding: gzip,deflate
415 Accept-Charset: UTF-8,*
416 Keep-Alive: 300
417 Connection: keep-alive
418 Referer: http://10.52.31.37/wiki/TimRiker?action=AttachFile&rename=test.png&drawing=test
419 Cookie: MOIN_ID=1120663414.02.19489
420 HTTP/1.1 200 OK
421 Date: Mon, 01 Aug 2005 23:14:15 GMT
422 Server: Apache/2.0.54 (Debian GNU/Linux)
423 Keep-Alive: timeout=15, max=100
424 Connection: Keep-Alive
425 Transfer-Encoding: chunked
426 Content-Type: text/html;charset=utf-8
427 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
428 <html>
429 <head>
430 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
431 <meta name="robots" content="noindex,nofollow">
432 <title>Attachments for "TimRiker" - FchWiki</title>
433 <script type="text/javascript">
434 <!--// common functions
435 // We keep here the state of the search box
436 searchIsDisabled = false;
437 function searchChange(e) {
438 // Update search buttons status according to search box content.
439 // Ignore empty or whitespace search term.
440 var value = e.value.replace(/\s+/, '');
441 if (value == '' || searchIsDisabled) {
442 searchSetDisabled(true);
443 } else {
444 searchSetDisabled(false);
445 }
446 function searchSetDisabled(flag) {
447 // Enable or disable search
448 document.getElementById('fullsearch').disabled = flag;
449 document.getElementById('titlesearch').disabled = flag;
450 function searchFocus(e) {
451 // Update search input content on focus
452 if (e.value == 'Search') {
453 e.value = '';
454 e.style.color = 'black';
455 searchIsDisabled = false;
456 }
457 function searchBlur(e)
458 // Update search input content on blur
459 if (e.value == '') {
460 e.value = 'Search';
461 e.style.color = 'gray';
462 searchIsDisabled = true;
463 }
464 function actionsMenuInit(title) {
465 // Initiliaze action menu
466 for (i = 0; i < document.forms.length; i++) {
467 var form = document.forms[i];
468 if (form.className == 'actionsmenu') {
469 // Check if this form needs update
470 var div = form.getElementsByTagName('div')[0];
471 var label = div.getElementsByTagName('label')[0];
472 if (label) {
473 // This is the first time: remove label and do buton.
474 div.removeChild(label);
475 var dobutton = div.getElementsByTagName('input')[0];
476 div.removeChild(dobutton);
477 // and add menu title
478 var select = div.getElementsByTag
479 Name('select')[0];
480 var item = document.createElement('option');
481 item.appendChild(document.createTextNode(title));
482 item.value = 'show';
483 select.insertBefore(item, select.options[0]);
484 select.selectedIndex = 0;
485 }
486 }
487 }
488 //-->
489 </script>
490 <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/moin/rightsidebar/css/common.css">
491 <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/moin/rightsidebar/css/screen.css">
492 <link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/moin/rightsidebar/css/print.css">
493 <link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/moin/rightsidebar/css/projection.css">
494 <link rel="Start" href="/wiki/FrontPage">
495 <link rel="Alternate" title="Wiki Markup" href="/wiki/TimRiker?action=raw">
496 <link rel="Alternate" media="print" title="Print View" href="/wiki/TimRiker?action=print">
497 <link rel="Appendix" title=
498 x.'116
499 "timriker.jpg" href="/wiki/TimRiker?action=AttachFile&do=view&target=timriker.jpg">
500 <link rel="Search" href="/wiki/FindPage">
501 <link rel="Index" href="/wiki/TitleIndex">
502 <link rel="Glossary" href="/wiki/WordIndex">
503 <link rel="Help" href="/wiki/HelpOnFormatting">
504 </head>
505 <body lang="en" dir="ltr">
506 <div id="header">
507 <form id="searchform" method="get" action="">
508 <div>
509 <input type="hidden" name="action" value="fullsearch">
510 <input type="hidden" name="context" value="180">
511 <label for="searchinput">Search:</label>
512 <input id="searchinput" type="text" name="value" value="" size="20"
513 onfocus="searchFocus(this)" onblur="searchBlur(this)"
514 onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search">
515 <input id="titlesearch" name="titlesearch" type="submit"
516 value="Titles" alt="Search Titles">
517 <input id="fullsearch" name="fullsearch" type="submit"
518 value="Text" alt="Search Full Text">
519 </div>
520 </form>
521 <script type="text/javascript">
522 <!--// Initialize search form
523 var f = document.getElementById('searchform');
524 f.getElementsByTagName('label')[0].style.display = 'none';
525 var e = document.getElementById('searchinput');
526 searchChange(e);
527 searchBlur(e);
528 //-->
529 </script>
530 <div id="logo"><a href="/wiki/FrontPage">FchWiki</a></div>
531 </div>
532 <div id="sidebar">
533 <div class="sidepanel">
534 <h1>Wiki</h1>
535 <ul id="navibar">
536 <li c
537 x.'lass="wikilink"><a href="/wiki/FrontPage">FrontPage</a></li>
538 <li class="wikilink"><a href="/wiki/RecentChanges">RecentChanges</a></li>
539 <li class="wikilink"><a href="/wiki/FindPage">FindPage</a></li>
540 <li class="wikilink"><a href="/wiki/HelpContents">HelpContents</a></li>
541 <li class="current"><a href="/wiki/TimRiker">TimRiker</a></li>
542 </ul>
543 </div>
544 <div class="sidepanel">
545 <h1>Page</h1>
546 <ul class="editbar">
547 <li><a href="/wiki/TimRiker?action=edit">Edit</a></li>
548 <li><a href="/wiki/TimRiker?action=diff">Show Changes</a></li>
549 <li><a href="/wiki/TimRiker?action=info">Get Info</a></li>
550 <li><a href="/wiki/TimRiker?action=subscribe">Unsubscribe</a></li>
551 <li>
552 <form class="actionsmenu" method="get" action="">
553 <div>
554 <label>More Actions:</label>
555 <select name="action"
556 onchange="if ((this.selectedIndex != 0) &&
557 (this.options[this.selectedIndex].disabled == false)) {
558 this.form.submit();
559 }
560 this.selectedIndex = 0;">
561 <option value="raw">Show Raw Text</option>
562 <option value="print">Show Print View</option>
563 <option value="show" disabled class="disabled">Delete Cache</option>
564 <option value="show" disabled class="disabled">--------</option>
565 <option value="AttachFile">Attachments</option>
566 <option value="SpellCheck">Check Spelling</option>
567 <option value="LikePages">Show Like Pages
568 x.(</option>
569 <option value="LocalSiteMap">Show Local Site Map</option>
570 <option value="show" disabled class="disabled">--------</option>
571 <option value="RenamePage">Rename Page</option>
572 <option value="DeletePage">Delete Page</option>
573 </select>
574 <input type="submit" value="Do">
575 </div>
576 <script type="text/javascript">
577 <!--// Init menu
578 actionsMenuInit('More Actions:');
579 //-->
580 </script>
581 </form>
582 </li>
583 </ul>
584 </div>
585 <div class="sidepanel">
586 <h1>User</h1>
587 <ul id="username"><li><a href="/wiki/TimRiker">TimRiker</a></li>
588 <li><a href="/wiki/UserPreferences">UserPreferences</a></li></ul>
589 <h2>Trail</h2>
590 <ul id="pagetrail">
591 <li><a href="/wiki/UserPreferences">UserPreferences</a></li>
592 <li><a href="/wiki/EventStats">EventStats</a></li>
593 <li><a href="/wiki/EventStats/UserAgents">EventStats/UserAgents</a></li>
594 <li><a href="/wiki/SystemAdmin">SystemAdmin</a></li>
595 </ul>
596 </div>
597 <ul id="credits">
598 <li><a href="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li>
599 <li><a href="http://www.python.org/">Python Powered</a></li>
600 <li><a href="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>
601 </ul>
602 </div>
603 <div id="page" lang="en" dir="ltr"><!-- start page -->
604 <h1 id="title">Attachments for "TimRiker"</h1>
605 <div id="content">
606 <h2>Attached Files</h2>To refer to attachments on a page, use <strong><tt>attachment:filename</tt></strong>, as
607 x.(shown below in the list of files. Do <strong>NOT</strong> use the URL of the <tt>[get]</tt> link, since this is subject to change and can break easily.<ul><li>[<a href="/wiki/TimRiker?action=AttachFile&do=del&target=timriker.jpg">del</a> | <a href="/wiki/TimRiker?action=AttachFile&do=get&target=timriker.jpg">get</a> | <a href="/wiki/TimRiker?action=AttachFile&do=view&target=timriker.jpg">view</a>] (17.0 KB) attachment:<strong>timriker.jpg</strong></li></ul><h2>New Attachment</h2><p>An upload will never overwrite an existing file. If there is a name conflict, you have to rename the file that you want to upload. Otherwise, if "Rename to" is left blank, the original filename will be used.</p>
608 <form action="/wiki/TimRiker" method="POST" enctype="multipart/form-data">
609 <dl>
610 <dt>File to upload</dt>
611 <dd><input type="file" name="file" size="50"></dd>
612 t>Save as</dt>
613 <dd><input type="text" name="rename" size="50" value=""></dd>
614 </dl>
615 <input type="hidden" name="action" value="AttachFile">
616 <input type="hidden" name="do" value="upload">
617 <input type="submit" value="Upload">
618 </p>
619 </form>
620 </div>
621 <div id="pagebottom"></div>
622 </div> <!-- end page -->
623 <ul id="timings">
624 <li>getACL = 0.003s</li>
625 <li>run = 0.064s</li>
626 <li>total = 0.075s</li>
627 </ul>
628 </body>
629 </html>
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.