9 | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
10 | | <html lang="en"> |
11 | | <head> |
12 | | <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
13 | | <meta name="robots" content="NONE,NOARCHIVE"> |
14 | | <title>AttributeError at /webclient/action/addnew/</title> |
15 | | <style type="text/css"> |
16 | | html * { padding:0; margin:0; } |
17 | | body * { padding:10px 20px; } |
18 | | body * * { padding:0; } |
19 | | body { font:small sans-serif; } |
20 | | body>div { border-bottom:1px solid #ddd; } |
21 | | h1 { font-weight:normal; } |
22 | | h2 { margin-bottom:.8em; } |
23 | | h2 span { font-size:80%; color:#666; font-weight:normal; } |
24 | | h3 { margin:1em 0 .5em 0; } |
25 | | h4 { margin:0 0 .5em 0; font-weight: normal; } |
26 | | table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; } |
27 | | tbody td, tbody th { vertical-align:top; padding:2px 3px; } |
28 | | thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; } |
29 | | tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; } |
30 | | table.vars { margin:5px 0 2px 40px; } |
31 | | table.vars td, table.req td { font-family:monospace; } |
32 | | table td.code { width:100%; } |
33 | | table td.code div { overflow:hidden; } |
34 | | table.source th { color:#666; } |
35 | | table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; } |
36 | | ul.traceback { list-style-type:none; } |
37 | | ul.traceback li.frame { margin-bottom:1em; } |
38 | | div.context { margin: 10px 0; } |
39 | | div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } |
40 | | div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; } |
41 | | div.context ol.context-line li { color:black; background-color:#ccc; } |
42 | | div.context ol.context-line li span { float: right; } |
43 | | div.commands { margin-left: 40px; } |
44 | | div.commands a { color:black; text-decoration:none; } |
45 | | #summary { background: #ffc; } |
46 | | #summary h2 { font-weight: normal; color: #666; } |
47 | | #explanation { background:#eee; } |
48 | | #template, #template-not-exist { background:#f6f6f6; } |
49 | | #template-not-exist ul { margin: 0 0 0 20px; } |
50 | | #unicode-hint { background:#eee; } |
51 | | #traceback { background:#eee; } |
52 | | #requestinfo { background:#f6f6f6; padding-left:120px; } |
53 | | #summary table { border:none; background:transparent; } |
54 | | #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } |
55 | | #requestinfo h3 { margin-bottom:-1em; } |
56 | | .error { background: #ffc; } |
57 | | .specific { color:#cc3300; font-weight:bold; } |
58 | | h2 span.commands { font-size:.7em;} |
59 | | span.commands a:link {color:#5E5694;} |
60 | | pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; } |
61 | | </style> |
62 | | <script type="text/javascript"> |
63 | | //<!-- |
64 | | function getElementsByClassName(oElm, strTagName, strClassName){ |
65 | | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com |
66 | | var arrElements = (strTagName == "*" && document.all)? document.all : |
67 | | oElm.getElementsByTagName(strTagName); |
68 | | var arrReturnElements = new Array(); |
69 | | strClassName = strClassName.replace(/\-/g, "\-"); |
70 | | var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)"); |
71 | | var oElement; |
72 | | for(var i=0; i<arrElements.length; i++){ |
73 | | oElement = arrElements[i]; |
74 | | if(oRegExp.test(oElement.className)){ |
75 | | arrReturnElements.push(oElement); |
76 | | } |
77 | | } |
78 | | return (arrReturnElements) |
79 | | } |
80 | | function hideAll(elems) { |
81 | | for (var e = 0; e < elems.length; e++) { |
82 | | elems[e].style.display = 'none'; |
83 | | } |
84 | | } |
85 | | window.onload = function() { |
86 | | hideAll(getElementsByClassName(document, 'table', 'vars')); |
87 | | hideAll(getElementsByClassName(document, 'ol', 'pre-context')); |
88 | | hideAll(getElementsByClassName(document, 'ol', 'post-context')); |
89 | | hideAll(getElementsByClassName(document, 'div', 'pastebin')); |
90 | | } |
91 | | function toggle() { |
92 | | for (var i = 0; i < arguments.length; i++) { |
93 | | var e = document.getElementById(arguments[i]); |
94 | | if (e) { |
95 | | e.style.display = e.style.display == 'none' ? 'block' : 'none'; |
96 | | } |
97 | | } |
98 | | return false; |
99 | | } |
100 | | function varToggle(link, id) { |
101 | | toggle('v' + id); |
102 | | var s = link.getElementsByTagName('span')[0]; |
103 | | var uarr = String.fromCharCode(0x25b6); |
104 | | var darr = String.fromCharCode(0x25bc); |
105 | | s.innerHTML = s.innerHTML == uarr ? darr : uarr; |
106 | | return false; |
107 | | } |
108 | | function switchPastebinFriendly(link) { |
109 | | s1 = "Switch to copy-and-paste view"; |
110 | | s2 = "Switch back to interactive view"; |
111 | | link.innerHTML = link.innerHTML == s1 ? s2 : s1; |
112 | | toggle('browserTraceback', 'pastebinTraceback'); |
113 | | return false; |
114 | | } |
115 | | //--> |
116 | | </script> |
117 | | </head> |
118 | | <body> |
119 | | <div id="summary"> |
120 | | <h1>AttributeError at /webclient/action/addnew/</h1> |
121 | | <pre class="exception_value">'NoneType' object has no attribute 'startswith'</pre> |
122 | | <table class="meta"> |
123 | | <tr> |
124 | | <th>Request Method:</th> |
125 | | <td>POST</td> |
126 | | </tr> |
127 | | <tr> |
128 | | <th>Request URL:</th> |
129 | | <td>http://ome2-copy.fzk.de/webclient/action/addnew/</td> |
130 | | </tr> |
131 | | <tr> |
132 | | <th>Exception Type:</th> |
133 | | <td>AttributeError</td> |
134 | | </tr> |
135 | | <tr> |
136 | | <th>Exception Value:</th> |
137 | | <td><pre>'NoneType' object has no attribute 'startswith'<pre></td> |
138 | | </tr> |
139 | | <tr> |
140 | | <th>Exception Location:</th> |
141 | | <td>/usr/lib/python2.6/posixpath.py in join, line 65</td> |
142 | | </tr> |
143 | | <tr> |
144 | | <th>Python Executable:</th> |
145 | | <td>/usr/bin/python</td> |
146 | | </tr> |
147 | | <tr> |
148 | | <th>Python Version:</th> |
149 | | <td>2.6.2</td> |
150 | | </tr> |
151 | | <tr> |
152 | | <th>Python Path:</th> |
153 | | <td>['/home/omero/omero_dist/lib/python', '/home/omero/omero_dist/lib/python/omeroweb', '/home/omero/omero_dist/lib/python/omero', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/var/lib/python-support/python2.6', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']</td> |
154 | | </tr> |
155 | | <tr> |
156 | | <th>Server time:</th> |
157 | | <td>Thu, 25 Feb 2010 19:49:33 +0000</td> |
158 | | </tr> |
159 | | </table> |
160 | | </div> |
161 | | |
162 | | |
163 | | |
164 | | <div id="traceback"> |
165 | | <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></span></h2> |
166 | | |
167 | | <div id="browserTraceback"> |
168 | | <ul class="traceback"> |
169 | | |
170 | | <li class="frame"> |
171 | | <code>/home/omero/omero_dist/lib/python/django/core/handlers/base.py</code> in <code>get_response</code> |
172 | | |
173 | | |
174 | | <div class="context" id="c140653348369616"> |
175 | | |
176 | | <ol start="79" class="pre-context" id="pre140653348369616"><li onclick="toggle('pre140653348369616', 'post140653348369616')"> # Apply view middleware</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> for middleware_method in self._view_middleware:</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> if response:</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> return response</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"></li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> try:</li></ol> |
177 | | |
178 | | <ol start="86" class="context-line"><li onclick="toggle('pre140653348369616', 'post140653348369616')"> response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol> |
179 | | |
180 | | <ol start='87' class="post-context" id="post140653348369616"><li onclick="toggle('pre140653348369616', 'post140653348369616')"> except Exception, e:</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> # If the view raised an exception, run it through exception</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre140653348369616', 'post140653348369616')"> response = middleware_method(request, e)</li></ol> |
181 | | |
182 | | </div> |
183 | | |
184 | | |
185 | | |
186 | | <div class="commands"> |
187 | | <a href="#" onclick="return varToggle(this, '140653348369616')"><span>▶</span> Local vars</a> |
188 | | </div> |
189 | | <table class="vars" id="v140653348369616"> |
190 | | <thead> |
191 | | <tr> |
192 | | <th>Variable</th> |
193 | | <th>Value</th> |
194 | | </tr> |
195 | | </thead> |
196 | | <tbody> |
197 | | |
198 | | <tr> |
199 | | <td>callback</td> |
200 | | <td class="code"><div><function wrapped at 0x7fec68899398></div></td> |
201 | | </tr> |
202 | | |
203 | | <tr> |
204 | | <td>callback_args</td> |
205 | | <td class="code"><div>()</div></td> |
206 | | </tr> |
207 | | |
208 | | <tr> |
209 | | <td>callback_kwargs</td> |
210 | | <td class="code"><div>{'action': u'addnew', 'o_id': None, 'o_type': None}</div></td> |
211 | | </tr> |
212 | | |
213 | | <tr> |
214 | | <td>e</td> |
215 | | <td class="code"><div>AttributeError("'NoneType' object has no attribute 'startswith'",)</div></td> |
216 | | </tr> |
217 | | |
218 | | <tr> |
219 | | <td>exc_info</td> |
220 | | <td class="code"><div>(<type 'exceptions.AttributeError'>, |
221 | | AttributeError("'NoneType' object has no attribute 'startswith'",), |
222 | | <traceback object at 0x7fec68ddb4d0>)</div></td> |
223 | | </tr> |
224 | | |
225 | | <tr> |
226 | | <td>exceptions</td> |
227 | | <td class="code"><div><module 'django.core.exceptions' from '/home/omero/omero_dist/lib/python/django/core/exceptions.pyc'></div></td> |
228 | | </tr> |
229 | | |
230 | | <tr> |
231 | | <td>middleware_method</td> |
232 | | <td class="code"><div><bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x7fec68b06f90>></div></td> |
233 | | </tr> |
234 | | |
235 | | <tr> |
236 | | <td>receivers</td> |
237 | | <td class="code"><div>[(<function _rollback_on_exception at 0x7fec676c48c0>, None)]</div></td> |
238 | | </tr> |
239 | | |
240 | | <tr> |
241 | | <td>request</td> |
242 | | <td class="code"><div><ModPythonRequest |
243 | | path:/webclient/action/addnew/, |
244 | | GET:<QueryDict: {u'url': [u'/webclient/mydata/']}>, |
245 | | POST:<QueryDict: {u'folder_type': [u'screen'], u'name': [u'test data'], u'description': [u'testing import']}>, |
246 | | COOKIES:{'sessionid': '4a43855137c2ca19161240e59ea2b457'}, |
247 | | META:{'AUTH_TYPE': None, |
248 | | 'CONTENT_LENGTH': 0L, |
249 | | 'CONTENT_TYPE': None, |
250 | | 'GATEWAY_INTERFACE': 'CGI/1.1', |
251 | | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', |
252 | | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', |
253 | | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', |
254 | | 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', |
255 | | 'HTTP_CACHE_CONTROL': 'max-age=259200', |
256 | | 'HTTP_CONNECTION': 'keep-alive', |
257 | | 'HTTP_CONTENT_LENGTH': '60', |
258 | | 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded', |
259 | | 'HTTP_COOKIE': 'sessionid=4a43855137c2ca19161240e59ea2b457', |
260 | | 'HTTP_HOST': 'ome2-copy.fzk.de', |
261 | | 'HTTP_REFERER': 'http://ome2-copy.fzk.de/webclient/action/new/?url=/webclient/mydata/', |
262 | | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7', |
263 | | 'PATH_INFO': u'/webclient/action/addnew/', |
264 | | 'PATH_TRANSLATED': None, |
265 | | 'QUERY_STRING': 'url=/webclient/mydata/', |
266 | | 'REMOTE_ADDR': '72.37.171.52', |
267 | | 'REMOTE_HOST': None, |
268 | | 'REMOTE_IDENT': None, |
269 | | 'REMOTE_USER': None, |
270 | | 'REQUEST_METHOD': 'POST', |
271 | | 'SCRIPT_NAME': '', |
272 | | 'SERVER_NAME': '127.0.0.1', |
273 | | 'SERVER_PORT': 80, |
274 | | 'SERVER_PROTOCOL': 'HTTP/1.0', |
275 | | 'SERVER_SOFTWARE': 'mod_python'}></div></td> |
276 | | </tr> |
277 | | |
278 | | <tr> |
279 | | <td>resolver</td> |
280 | | <td class="code"><div><RegexURLResolver omeroweb.urls ^/></div></td> |
281 | | </tr> |
282 | | |
283 | | <tr> |
284 | | <td>response</td> |
285 | | <td class="code"><div>None</div></td> |
286 | | </tr> |
287 | | |
288 | | <tr> |
289 | | <td>self</td> |
290 | | <td class="code"><div><django.core.handlers.modpython.ModPythonHandler object at 0x7fec685f1310></div></td> |
291 | | </tr> |
292 | | |
293 | | <tr> |
294 | | <td>settings</td> |
295 | | <td class="code"><div><django.conf.LazySettings object at 0x7fec66fb1710></div></td> |
296 | | </tr> |
297 | | |
298 | | <tr> |
299 | | <td>urlconf</td> |
300 | | <td class="code"><div>'omeroweb.urls'</div></td> |
301 | | </tr> |
302 | | |
303 | | <tr> |
304 | | <td>urlresolvers</td> |
305 | | <td class="code"><div><module 'django.core.urlresolvers' from '/home/omero/omero_dist/lib/python/django/core/urlresolvers.py'></div></td> |
306 | | </tr> |
307 | | |
308 | | </tbody> |
309 | | </table> |
310 | | |
311 | | </li> |
312 | | |
313 | | <li class="frame"> |
314 | | <code>/home/omero/omero_dist/lib/python/omeroweb/webclient/views.py</code> in <code>wrapped</code> |
315 | | |
316 | | |
317 | | <div class="context" id="c140653345403680"> |
318 | | |
319 | | <ol start="170" class="pre-context" id="pre140653345403680"><li onclick="toggle('pre140653345403680', 'post140653345403680')"> if conn is None:</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> return HttpResponseRedirect(reverse("weblogin")+(("?url=%s") % (url)))</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> </li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> sessionHelper(request)</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> kwargs["conn"] = conn</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> kwargs["conn_share"] = conn_share</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> kwargs["url"] = url</li></ol> |
320 | | |
321 | | <ol start="177" class="context-line"><li onclick="toggle('pre140653345403680', 'post140653345403680')"> return f(request, *args, **kwargs) <span>...</span></li></ol> |
322 | | |
323 | | <ol start='178' class="post-context" id="post140653345403680"><li onclick="toggle('pre140653345403680', 'post140653345403680')"> return wrapped</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"></li><li onclick="toggle('pre140653345403680', 'post140653345403680')">def sessionHelper(request):</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> try:</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> if request.session['clipboard']:</li><li onclick="toggle('pre140653345403680', 'post140653345403680')"> pass</li></ol> |
324 | | |
325 | | </div> |
326 | | |
327 | | |
328 | | |
329 | | <div class="commands"> |
330 | | <a href="#" onclick="return varToggle(this, '140653345403680')"><span>▶</span> Local vars</a> |
331 | | </div> |
332 | | <table class="vars" id="v140653345403680"> |
333 | | <thead> |
334 | | <tr> |
335 | | <th>Variable</th> |
336 | | <th>Value</th> |
337 | | </tr> |
338 | | </thead> |
339 | | <tbody> |
340 | | |
341 | | <tr> |
342 | | <td>args</td> |
343 | | <td class="code"><div>()</div></td> |
344 | | </tr> |
345 | | |
346 | | <tr> |
347 | | <td>conn</td> |
348 | | <td class="code"><div><extlib.gateway.OmeroWebGateway object at 0x7fec68dae0d0></div></td> |
349 | | </tr> |
350 | | |
351 | | <tr> |
352 | | <td>conn_share</td> |
353 | | <td class="code"><div>None</div></td> |
354 | | </tr> |
355 | | |
356 | | <tr> |
357 | | <td>f</td> |
358 | | <td class="code"><div><function manage_action_containers at 0x7fec68899320></div></td> |
359 | | </tr> |
360 | | |
361 | | <tr> |
362 | | <td>kwargs</td> |
363 | | <td class="code"><div>{'action': u'addnew', |
364 | | 'conn': <extlib.gateway.OmeroWebGateway object at 0x7fec68dae0d0>, |
365 | | 'conn_share': None, |
366 | | 'o_id': None, |
367 | | 'o_type': None, |
368 | | 'url': u'/webclient/mydata/'}</div></td> |
369 | | </tr> |
370 | | |
371 | | <tr> |
372 | | <td>request</td> |
373 | | <td class="code"><div><ModPythonRequest |
374 | | path:/webclient/action/addnew/, |
375 | | GET:<QueryDict: {u'url': [u'/webclient/mydata/']}>, |
376 | | POST:<QueryDict: {u'folder_type': [u'screen'], u'name': [u'test data'], u'description': [u'testing import']}>, |
377 | | COOKIES:{'sessionid': '4a43855137c2ca19161240e59ea2b457'}, |
378 | | META:{'AUTH_TYPE': None, |
379 | | 'CONTENT_LENGTH': 0L, |
380 | | 'CONTENT_TYPE': None, |
381 | | 'GATEWAY_INTERFACE': 'CGI/1.1', |
382 | | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', |
383 | | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', |
384 | | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', |
385 | | 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', |
386 | | 'HTTP_CACHE_CONTROL': 'max-age=259200', |
387 | | 'HTTP_CONNECTION': 'keep-alive', |
388 | | 'HTTP_CONTENT_LENGTH': '60', |
389 | | 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded', |
390 | | 'HTTP_COOKIE': 'sessionid=4a43855137c2ca19161240e59ea2b457', |
391 | | 'HTTP_HOST': 'ome2-copy.fzk.de', |
392 | | 'HTTP_REFERER': 'http://ome2-copy.fzk.de/webclient/action/new/?url=/webclient/mydata/', |
393 | | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7', |
394 | | 'PATH_INFO': u'/webclient/action/addnew/', |
395 | | 'PATH_TRANSLATED': None, |
396 | | 'QUERY_STRING': 'url=/webclient/mydata/', |
397 | | 'REMOTE_ADDR': '72.37.171.52', |
398 | | 'REMOTE_HOST': None, |
399 | | 'REMOTE_IDENT': None, |
400 | | 'REMOTE_USER': None, |
401 | | 'REQUEST_METHOD': 'POST', |
402 | | 'SCRIPT_NAME': '', |
403 | | 'SERVER_NAME': '127.0.0.1', |
404 | | 'SERVER_PORT': 80, |
405 | | 'SERVER_PROTOCOL': 'HTTP/1.0', |
406 | | 'SERVER_SOFTWARE': 'mod_python'}></div></td> |
407 | | </tr> |
408 | | |
409 | | <tr> |
410 | | <td>url</td> |
411 | | <td class="code"><div>u'/webclient/mydata/'</div></td> |
412 | | </tr> |
413 | | |
414 | | </tbody> |
415 | | </table> |
416 | | |
417 | | </li> |
418 | | |
419 | | <li class="frame"> |
420 | | <code>/home/omero/omero_dist/lib/python/omeroweb/webclient/views.py</code> in <code>manage_action_containers</code> |
421 | | |
422 | | |
423 | | <div class="context" id="c140653345570472"> |
424 | | |
425 | | <ol start="1544" class="pre-context" id="pre140653345570472"><li onclick="toggle('pre140653345570472', 'post140653345570472')"> # return HttpResponseRedirect(url)</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> # else:</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> # template = "omeroweb/container_new.html"</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> # context = {'nav':request.session['nav'], 'url':url, 'manager':manager, 'form':form, 'form_active_group':form_active_group}</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> elif action == 'delete':</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> pass</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> </li></ol> |
426 | | |
427 | | <ol start="1551" class="context-line"><li onclick="toggle('pre140653345570472', 'post140653345570472')"> t = template_loader.get_template(template) <span>...</span></li></ol> |
428 | | |
429 | | <ol start='1552' class="post-context" id="post140653345570472"><li onclick="toggle('pre140653345570472', 'post140653345570472')"> c = Context(request,context)</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> return HttpResponse(t.render(c))</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"></li><li onclick="toggle('pre140653345570472', 'post140653345570472')">@isUserConnected</li><li onclick="toggle('pre140653345570472', 'post140653345570472')">def manage_image_zoom (request, iid, **kwargs):</li><li onclick="toggle('pre140653345570472', 'post140653345570472')"> template = "omeroweb/image_zoom.html"</li></ol> |
430 | | |
431 | | </div> |
432 | | |
433 | | |
434 | | |
435 | | <div class="commands"> |
436 | | <a href="#" onclick="return varToggle(this, '140653345570472')"><span>▶</span> Local vars</a> |
437 | | </div> |
438 | | <table class="vars" id="v140653345570472"> |
439 | | <thead> |
440 | | <tr> |
441 | | <th>Variable</th> |
442 | | <th>Value</th> |
443 | | </tr> |
444 | | </thead> |
445 | | <tbody> |
446 | | |
447 | | <tr> |
448 | | <td>action</td> |
449 | | <td class="code"><div>u'addnew'</div></td> |
450 | | </tr> |
451 | | |
452 | | <tr> |
453 | | <td>conn</td> |
454 | | <td class="code"><div><extlib.gateway.OmeroWebGateway object at 0x7fec68dae0d0></div></td> |
455 | | </tr> |
456 | | |
457 | | <tr> |
458 | | <td>form</td> |
459 | | <td class="code"><div>None</div></td> |
460 | | </tr> |
461 | | |
462 | | <tr> |
463 | | <td>form_active_group</td> |
464 | | <td class="code"><div><omeroweb.webclient.forms.ActiveGroupForm object at 0x7fec68b06fd0></div></td> |
465 | | </tr> |
466 | | |
467 | | <tr> |
468 | | <td>kwargs</td> |
469 | | <td class="code"><div>{'conn': <extlib.gateway.OmeroWebGateway object at 0x7fec68dae0d0>, |
470 | | 'conn_share': None, |
471 | | 'url': u'/webclient/mydata/'}</div></td> |
472 | | </tr> |
473 | | |
474 | | <tr> |
475 | | <td>manager</td> |
476 | | <td class="code"><div><omeroweb.webclient.controller.container.BaseContainer object at 0x7fec68b04a50></div></td> |
477 | | </tr> |
478 | | |
479 | | <tr> |
480 | | <td>o_id</td> |
481 | | <td class="code"><div>None</div></td> |
482 | | </tr> |
483 | | |
484 | | <tr> |
485 | | <td>o_type</td> |
486 | | <td class="code"><div>None</div></td> |
487 | | </tr> |
488 | | |
489 | | <tr> |
490 | | <td>request</td> |
491 | | <td class="code"><div><ModPythonRequest |
492 | | path:/webclient/action/addnew/, |
493 | | GET:<QueryDict: {u'url': [u'/webclient/mydata/']}>, |
494 | | POST:<QueryDict: {u'folder_type': [u'screen'], u'name': [u'test data'], u'description': [u'testing import']}>, |
495 | | COOKIES:{'sessionid': '4a43855137c2ca19161240e59ea2b457'}, |
496 | | META:{'AUTH_TYPE': None, |
497 | | 'CONTENT_LENGTH': 0L, |
498 | | 'CONTENT_TYPE': None, |
499 | | 'GATEWAY_INTERFACE': 'CGI/1.1', |
500 | | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', |
501 | | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', |
502 | | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', |
503 | | 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', |
504 | | 'HTTP_CACHE_CONTROL': 'max-age=259200', |
505 | | 'HTTP_CONNECTION': 'keep-alive', |
506 | | 'HTTP_CONTENT_LENGTH': '60', |
507 | | 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded', |
508 | | 'HTTP_COOKIE': 'sessionid=4a43855137c2ca19161240e59ea2b457', |
509 | | 'HTTP_HOST': 'ome2-copy.fzk.de', |
510 | | 'HTTP_REFERER': 'http://ome2-copy.fzk.de/webclient/action/new/?url=/webclient/mydata/', |
511 | | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7', |
512 | | 'PATH_INFO': u'/webclient/action/addnew/', |
513 | | 'PATH_TRANSLATED': None, |
514 | | 'QUERY_STRING': 'url=/webclient/mydata/', |
515 | | 'REMOTE_ADDR': '72.37.171.52', |
516 | | 'REMOTE_HOST': None, |
517 | | 'REMOTE_IDENT': None, |
518 | | 'REMOTE_USER': None, |
519 | | 'REQUEST_METHOD': 'POST', |
520 | | 'SCRIPT_NAME': '', |
521 | | 'SERVER_NAME': '127.0.0.1', |
522 | | 'SERVER_PORT': 80, |
523 | | 'SERVER_PROTOCOL': 'HTTP/1.0', |
524 | | 'SERVER_SOFTWARE': 'mod_python'}></div></td> |
525 | | </tr> |
526 | | |
527 | | <tr> |
528 | | <td>template</td> |
529 | | <td class="code"><div>None</div></td> |
530 | | </tr> |
531 | | |
532 | | <tr> |
533 | | <td>url</td> |
534 | | <td class="code"><div>u'/webclient/mydata/'</div></td> |
535 | | </tr> |
536 | | |
537 | | </tbody> |
538 | | </table> |
539 | | |
540 | | </li> |
541 | | |
542 | | <li class="frame"> |
543 | | <code>/home/omero/omero_dist/lib/python/django/template/loader.py</code> in <code>get_template</code> |
544 | | |
545 | | |
546 | | <div class="context" id="c140653342390896"> |
547 | | |
548 | | <ol start="73" class="pre-context" id="pre140653342390896"><li onclick="toggle('pre140653342390896', 'post140653342390896')"> raise TemplateDoesNotExist, name</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"></li><li onclick="toggle('pre140653342390896', 'post140653342390896')">def get_template(template_name):</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> """</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> Returns a compiled Template object for the given template name,</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> handling template inheritance recursively.</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> """</li></ol> |
549 | | |
550 | | <ol start="80" class="context-line"><li onclick="toggle('pre140653342390896', 'post140653342390896')"> source, origin = find_template_source(template_name) <span>...</span></li></ol> |
551 | | |
552 | | <ol start='81' class="post-context" id="post140653342390896"><li onclick="toggle('pre140653342390896', 'post140653342390896')"> template = get_template_from_string(source, origin, template_name)</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> return template</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"></li><li onclick="toggle('pre140653342390896', 'post140653342390896')">def get_template_from_string(source, origin=None, name=None):</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> """</li><li onclick="toggle('pre140653342390896', 'post140653342390896')"> Returns a compiled Template object for the given template code,</li></ol> |
553 | | |
554 | | </div> |
555 | | |
556 | | |
557 | | |
558 | | <div class="commands"> |
559 | | <a href="#" onclick="return varToggle(this, '140653342390896')"><span>▶</span> Local vars</a> |
560 | | </div> |
561 | | <table class="vars" id="v140653342390896"> |
562 | | <thead> |
563 | | <tr> |
564 | | <th>Variable</th> |
565 | | <th>Value</th> |
566 | | </tr> |
567 | | </thead> |
568 | | <tbody> |
569 | | |
570 | | <tr> |
571 | | <td>template_name</td> |
572 | | <td class="code"><div>None</div></td> |
573 | | </tr> |
574 | | |
575 | | </tbody> |
576 | | </table> |
577 | | |
578 | | </li> |
579 | | |
580 | | <li class="frame"> |
581 | | <code>/home/omero/omero_dist/lib/python/django/template/loader.py</code> in <code>find_template_source</code> |
582 | | |
583 | | |
584 | | <div class="context" id="c140653342390824"> |
585 | | |
586 | | <ol start="62" class="pre-context" id="pre140653342390824"><li onclick="toggle('pre140653342390824', 'post140653342390824')"> import warnings</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> warnings.warn("Your TEMPLATE_LOADERS setting includes %r, but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS." % path)</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> else:</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> loaders.append(func)</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> template_source_loaders = tuple(loaders)</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> for loader in template_source_loaders:</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> try:</li></ol> |
587 | | |
588 | | <ol start="69" class="context-line"><li onclick="toggle('pre140653342390824', 'post140653342390824')"> source, display_name = loader(name, dirs) <span>...</span></li></ol> |
589 | | |
590 | | <ol start='70' class="post-context" id="post140653342390824"><li onclick="toggle('pre140653342390824', 'post140653342390824')"> return (source, make_origin(display_name, loader, name, dirs))</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> except TemplateDoesNotExist:</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> pass</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"> raise TemplateDoesNotExist, name</li><li onclick="toggle('pre140653342390824', 'post140653342390824')"></li><li onclick="toggle('pre140653342390824', 'post140653342390824')">def get_template(template_name):</li></ol> |
591 | | |
592 | | </div> |
593 | | |
594 | | |
595 | | |
596 | | <div class="commands"> |
597 | | <a href="#" onclick="return varToggle(this, '140653342390824')"><span>▶</span> Local vars</a> |
598 | | </div> |
599 | | <table class="vars" id="v140653342390824"> |
600 | | <thead> |
601 | | <tr> |
602 | | <th>Variable</th> |
603 | | <th>Value</th> |
604 | | </tr> |
605 | | </thead> |
606 | | <tbody> |
607 | | |
608 | | <tr> |
609 | | <td>dirs</td> |
610 | | <td class="code"><div>None</div></td> |
611 | | </tr> |
612 | | |
613 | | <tr> |
614 | | <td>loader</td> |
615 | | <td class="code"><div><function load_template_source at 0x7fec68b15c80></div></td> |
616 | | </tr> |
617 | | |
618 | | <tr> |
619 | | <td>name</td> |
620 | | <td class="code"><div>None</div></td> |
621 | | </tr> |
622 | | |
623 | | </tbody> |
624 | | </table> |
625 | | |
626 | | </li> |
627 | | |
628 | | <li class="frame"> |
629 | | <code>/home/omero/omero_dist/lib/python/django/template/loaders/filesystem.py</code> in <code>load_template_source</code> |
630 | | |
631 | | |
632 | | <div class="context" id="c140653342390680"> |
633 | | |
634 | | <ol start="14" class="pre-context" id="pre140653342390680"><li onclick="toggle('pre140653342390680', 'post140653342390680')"> yield safe_join(template_dir, template_name)</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> except ValueError:</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> # The joined path was located outside of template_dir.</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> pass</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"></li><li onclick="toggle('pre140653342390680', 'post140653342390680')">def load_template_source(template_name, template_dirs=None):</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> tried = []</li></ol> |
635 | | |
636 | | <ol start="21" class="context-line"><li onclick="toggle('pre140653342390680', 'post140653342390680')"> for filepath in get_template_sources(template_name, template_dirs): <span>...</span></li></ol> |
637 | | |
638 | | <ol start='22' class="post-context" id="post140653342390680"><li onclick="toggle('pre140653342390680', 'post140653342390680')"> try:</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> return (open(filepath).read().decode(settings.FILE_CHARSET), filepath)</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> except IOError:</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> tried.append(filepath)</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> if tried:</li><li onclick="toggle('pre140653342390680', 'post140653342390680')"> error_msg = "Tried %s" % tried</li></ol> |
639 | | |
640 | | </div> |
641 | | |
642 | | |
643 | | |
644 | | <div class="commands"> |
645 | | <a href="#" onclick="return varToggle(this, '140653342390680')"><span>▶</span> Local vars</a> |
646 | | </div> |
647 | | <table class="vars" id="v140653342390680"> |
648 | | <thead> |
649 | | <tr> |
650 | | <th>Variable</th> |
651 | | <th>Value</th> |
652 | | </tr> |
653 | | </thead> |
654 | | <tbody> |
655 | | |
656 | | <tr> |
657 | | <td>template_dirs</td> |
658 | | <td class="code"><div>None</div></td> |
659 | | </tr> |
660 | | |
661 | | <tr> |
662 | | <td>template_name</td> |
663 | | <td class="code"><div>None</div></td> |
664 | | </tr> |
665 | | |
666 | | <tr> |
667 | | <td>tried</td> |
668 | | <td class="code"><div>[]</div></td> |
669 | | </tr> |
670 | | |
671 | | </tbody> |
672 | | </table> |
673 | | |
674 | | </li> |
675 | | |
676 | | <li class="frame"> |
677 | | <code>/home/omero/omero_dist/lib/python/django/template/loaders/filesystem.py</code> in <code>get_template_sources</code> |
678 | | |
679 | | |
680 | | <div class="context" id="c140653342391112"> |
681 | | |
682 | | <ol start="7" class="pre-context" id="pre140653342391112"><li onclick="toggle('pre140653342391112', 'post140653342391112')">from django.utils._os import safe_join</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"></li><li onclick="toggle('pre140653342391112', 'post140653342391112')">def get_template_sources(template_name, template_dirs=None):</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> if not template_dirs:</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> template_dirs = settings.TEMPLATE_DIRS</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> for template_dir in template_dirs:</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> try:</li></ol> |
683 | | |
684 | | <ol start="14" class="context-line"><li onclick="toggle('pre140653342391112', 'post140653342391112')"> yield safe_join(template_dir, template_name) <span>...</span></li></ol> |
685 | | |
686 | | <ol start='15' class="post-context" id="post140653342391112"><li onclick="toggle('pre140653342391112', 'post140653342391112')"> except ValueError:</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> # The joined path was located outside of template_dir.</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> pass</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"></li><li onclick="toggle('pre140653342391112', 'post140653342391112')">def load_template_source(template_name, template_dirs=None):</li><li onclick="toggle('pre140653342391112', 'post140653342391112')"> tried = []</li></ol> |
687 | | |
688 | | </div> |
689 | | |
690 | | |
691 | | |
692 | | <div class="commands"> |
693 | | <a href="#" onclick="return varToggle(this, '140653342391112')"><span>▶</span> Local vars</a> |
694 | | </div> |
695 | | <table class="vars" id="v140653342391112"> |
696 | | <thead> |
697 | | <tr> |
698 | | <th>Variable</th> |
699 | | <th>Value</th> |
700 | | </tr> |
701 | | </thead> |
702 | | <tbody> |
703 | | |
704 | | <tr> |
705 | | <td>template_dir</td> |
706 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/djangologging/templates'</div></td> |
707 | | </tr> |
708 | | |
709 | | <tr> |
710 | | <td>template_dirs</td> |
711 | | <td class="code"><div>('/home/omero/omero_dist/lib/python/djangologging/templates', |
712 | | '/home/omero/omero_dist/lib/python/omeroweb/feedback/templates', |
713 | | '/home/omero/omero_dist/lib/python/omeroweb/webadmin/templates', |
714 | | '/home/omero/omero_dist/lib/python/omeroweb/webclient/templates')</div></td> |
715 | | </tr> |
716 | | |
717 | | <tr> |
718 | | <td>template_name</td> |
719 | | <td class="code"><div>None</div></td> |
720 | | </tr> |
721 | | |
722 | | </tbody> |
723 | | </table> |
724 | | |
725 | | </li> |
726 | | |
727 | | <li class="frame"> |
728 | | <code>/home/omero/omero_dist/lib/python/django/utils/_os.py</code> in <code>safe_join</code> |
729 | | |
730 | | |
731 | | <div class="context" id="c140653342391328"> |
732 | | |
733 | | <ol start="6" class="pre-context" id="pre140653342391328"><li onclick="toggle('pre140653342391328', 'post140653342391328')"> Returns a normalized, absolute version of the final path.</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"></li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> The final path must be located inside of the base path component (otherwise</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> a ValueError is raised).</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> """</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> # We need to use normcase to ensure we don't false-negative on case</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> # insensitive operating systems (like Windows).</li></ol> |
734 | | |
735 | | <ol start="13" class="context-line"><li onclick="toggle('pre140653342391328', 'post140653342391328')"> final_path = normcase(abspath(join(base, *paths))) <span>...</span></li></ol> |
736 | | |
737 | | <ol start='14' class="post-context" id="post140653342391328"><li onclick="toggle('pre140653342391328', 'post140653342391328')"> base_path = normcase(abspath(base))</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> base_path_len = len(base_path)</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> # Ensure final_path starts with base_path and that the next character after</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> # the final path is os.sep (or nothing, in which case final_path must be</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> # equal to base_path).</li><li onclick="toggle('pre140653342391328', 'post140653342391328')"> if not final_path.startswith(base_path) \</li></ol> |
738 | | |
739 | | </div> |
740 | | |
741 | | |
742 | | |
743 | | <div class="commands"> |
744 | | <a href="#" onclick="return varToggle(this, '140653342391328')"><span>▶</span> Local vars</a> |
745 | | </div> |
746 | | <table class="vars" id="v140653342391328"> |
747 | | <thead> |
748 | | <tr> |
749 | | <th>Variable</th> |
750 | | <th>Value</th> |
751 | | </tr> |
752 | | </thead> |
753 | | <tbody> |
754 | | |
755 | | <tr> |
756 | | <td>base</td> |
757 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/djangologging/templates'</div></td> |
758 | | </tr> |
759 | | |
760 | | <tr> |
761 | | <td>paths</td> |
762 | | <td class="code"><div>(None,)</div></td> |
763 | | </tr> |
764 | | |
765 | | </tbody> |
766 | | </table> |
767 | | |
768 | | </li> |
769 | | |
770 | | <li class="frame"> |
771 | | <code>/usr/lib/python2.6/posixpath.py</code> in <code>join</code> |
772 | | |
773 | | |
774 | | <div class="context" id="c140653342390968"> |
775 | | |
776 | | <ol start="58" class="pre-context" id="pre140653342390968"><li onclick="toggle('pre140653342390968', 'post140653342390968')"></li><li onclick="toggle('pre140653342390968', 'post140653342390968')">def join(a, *p):</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> """Join two or more pathname components, inserting '/' as needed.</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> If any component is an absolute path, all previous path components</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> will be discarded."""</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> path = a</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> for b in p:</li></ol> |
777 | | |
778 | | <ol start="65" class="context-line"><li onclick="toggle('pre140653342390968', 'post140653342390968')"> if b.startswith('/'): <span>...</span></li></ol> |
779 | | |
780 | | <ol start='66' class="post-context" id="post140653342390968"><li onclick="toggle('pre140653342390968', 'post140653342390968')"> path = b</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> elif path == '' or path.endswith('/'):</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> path += b</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> else:</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> path += '/' + b</li><li onclick="toggle('pre140653342390968', 'post140653342390968')"> return path</li></ol> |
781 | | |
782 | | </div> |
783 | | |
784 | | |
785 | | |
786 | | <div class="commands"> |
787 | | <a href="#" onclick="return varToggle(this, '140653342390968')"><span>▶</span> Local vars</a> |
788 | | </div> |
789 | | <table class="vars" id="v140653342390968"> |
790 | | <thead> |
791 | | <tr> |
792 | | <th>Variable</th> |
793 | | <th>Value</th> |
794 | | </tr> |
795 | | </thead> |
796 | | <tbody> |
797 | | |
798 | | <tr> |
799 | | <td>a</td> |
800 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/djangologging/templates'</div></td> |
801 | | </tr> |
802 | | |
803 | | <tr> |
804 | | <td>b</td> |
805 | | <td class="code"><div>None</div></td> |
806 | | </tr> |
807 | | |
808 | | <tr> |
809 | | <td>p</td> |
810 | | <td class="code"><div>(None,)</div></td> |
811 | | </tr> |
812 | | |
813 | | <tr> |
814 | | <td>path</td> |
815 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/djangologging/templates'</div></td> |
816 | | </tr> |
817 | | |
818 | | </tbody> |
819 | | </table> |
820 | | |
821 | | </li> |
822 | | |
823 | | </ul> |
824 | | </div> |
825 | | |
826 | | <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> |
827 | | <div id="pastebinTraceback" class="pastebin"> |
828 | | <input type="hidden" name="language" value="PythonConsole"> |
829 | | <input type="hidden" name="title" value="AttributeError at /webclient/action/addnew/"> |
830 | | <input type="hidden" name="source" value="Django Dpaste Agent"> |
831 | | <input type="hidden" name="poster" value="Django"> |
832 | | <textarea name="content" id="traceback_area" cols="140" rows="25"> |
890 | | <h3 id="get-info">GET</h3> |
891 | | |
892 | | <table class="req"> |
893 | | <thead> |
894 | | <tr> |
895 | | <th>Variable</th> |
896 | | <th>Value</th> |
897 | | </tr> |
898 | | </thead> |
899 | | <tbody> |
900 | | |
901 | | <tr> |
902 | | <td>url</td> |
903 | | <td class="code"><div>u'/webclient/mydata/'</div></td> |
904 | | </tr> |
905 | | |
906 | | </tbody> |
907 | | </table> |
908 | | |
909 | | |
910 | | <h3 id="post-info">POST</h3> |
911 | | |
912 | | <table class="req"> |
913 | | <thead> |
914 | | <tr> |
915 | | <th>Variable</th> |
916 | | <th>Value</th> |
917 | | </tr> |
918 | | </thead> |
919 | | <tbody> |
920 | | |
921 | | <tr> |
922 | | <td>folder_type</td> |
923 | | <td class="code"><div>u'screen'</div></td> |
924 | | </tr> |
925 | | |
926 | | <tr> |
927 | | <td>name</td> |
928 | | <td class="code"><div>u'test data'</div></td> |
929 | | </tr> |
930 | | |
931 | | <tr> |
932 | | <td>description</td> |
933 | | <td class="code"><div>u'testing import'</div></td> |
934 | | </tr> |
935 | | |
936 | | </tbody> |
937 | | </table> |
938 | | |
939 | | |
940 | | <h3 id="cookie-info">COOKIES</h3> |
941 | | |
942 | | <table class="req"> |
943 | | <thead> |
944 | | <tr> |
945 | | <th>Variable</th> |
946 | | <th>Value</th> |
947 | | </tr> |
948 | | </thead> |
949 | | <tbody> |
950 | | |
951 | | <tr> |
952 | | <td>sessionid</td> |
953 | | <td class="code"><div>'4a43855137c2ca19161240e59ea2b457'</div></td> |
954 | | </tr> |
955 | | |
956 | | </tbody> |
957 | | </table> |
958 | | |
959 | | |
960 | | <h3 id="meta-info">META</h3> |
961 | | <table class="req"> |
962 | | <thead> |
963 | | <tr> |
964 | | <th>Variable</th> |
965 | | <th>Value</th> |
966 | | </tr> |
967 | | </thead> |
968 | | <tbody> |
969 | | |
970 | | <tr> |
971 | | <td>AUTH_TYPE</td> |
972 | | <td class="code"><div>None</div></td> |
973 | | </tr> |
974 | | |
975 | | <tr> |
976 | | <td>CONTENT_LENGTH</td> |
977 | | <td class="code"><div>0L</div></td> |
978 | | </tr> |
979 | | |
980 | | <tr> |
981 | | <td>CONTENT_TYPE</td> |
982 | | <td class="code"><div>None</div></td> |
983 | | </tr> |
984 | | |
985 | | <tr> |
986 | | <td>GATEWAY_INTERFACE</td> |
987 | | <td class="code"><div>'CGI/1.1'</div></td> |
988 | | </tr> |
989 | | |
990 | | <tr> |
991 | | <td>HTTP_ACCEPT</td> |
992 | | <td class="code"><div>'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'</div></td> |
993 | | </tr> |
994 | | |
995 | | <tr> |
996 | | <td>HTTP_ACCEPT_CHARSET</td> |
997 | | <td class="code"><div>'ISO-8859-1,utf-8;q=0.7,*;q=0.7'</div></td> |
998 | | </tr> |
999 | | |
1000 | | <tr> |
1001 | | <td>HTTP_ACCEPT_ENCODING</td> |
1002 | | <td class="code"><div>'gzip,deflate'</div></td> |
1003 | | </tr> |
1004 | | |
1005 | | <tr> |
1006 | | <td>HTTP_ACCEPT_LANGUAGE</td> |
1007 | | <td class="code"><div>'en-us,en;q=0.5'</div></td> |
1008 | | </tr> |
1009 | | |
1010 | | <tr> |
1011 | | <td>HTTP_CACHE_CONTROL</td> |
1012 | | <td class="code"><div>'max-age=259200'</div></td> |
1013 | | </tr> |
1014 | | |
1015 | | <tr> |
1016 | | <td>HTTP_CONNECTION</td> |
1017 | | <td class="code"><div>'keep-alive'</div></td> |
1018 | | </tr> |
1019 | | |
1020 | | <tr> |
1021 | | <td>HTTP_CONTENT_LENGTH</td> |
1022 | | <td class="code"><div>'60'</div></td> |
1023 | | </tr> |
1024 | | |
1025 | | <tr> |
1026 | | <td>HTTP_CONTENT_TYPE</td> |
1027 | | <td class="code"><div>'application/x-www-form-urlencoded'</div></td> |
1028 | | </tr> |
1029 | | |
1030 | | <tr> |
1031 | | <td>HTTP_COOKIE</td> |
1032 | | <td class="code"><div>'sessionid=4a43855137c2ca19161240e59ea2b457'</div></td> |
1033 | | </tr> |
1034 | | |
1035 | | <tr> |
1036 | | <td>HTTP_HOST</td> |
1037 | | <td class="code"><div>'ome2-copy.fzk.de'</div></td> |
1038 | | </tr> |
1039 | | |
1040 | | <tr> |
1041 | | <td>HTTP_REFERER</td> |
1042 | | <td class="code"><div>'http://ome2-copy.fzk.de/webclient/action/new/?url=/webclient/mydata/'</div></td> |
1043 | | </tr> |
1044 | | |
1045 | | <tr> |
1046 | | <td>HTTP_USER_AGENT</td> |
1047 | | <td class="code"><div>'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7'</div></td> |
1048 | | </tr> |
1049 | | |
1050 | | <tr> |
1051 | | <td>PATH_INFO</td> |
1052 | | <td class="code"><div>u'/webclient/action/addnew/'</div></td> |
1053 | | </tr> |
1054 | | |
1055 | | <tr> |
1056 | | <td>PATH_TRANSLATED</td> |
1057 | | <td class="code"><div>None</div></td> |
1058 | | </tr> |
1059 | | |
1060 | | <tr> |
1061 | | <td>QUERY_STRING</td> |
1062 | | <td class="code"><div>'url=/webclient/mydata/'</div></td> |
1063 | | </tr> |
1064 | | |
1065 | | <tr> |
1066 | | <td>REMOTE_ADDR</td> |
1067 | | <td class="code"><div>'72.37.171.52'</div></td> |
1068 | | </tr> |
1069 | | |
1070 | | <tr> |
1071 | | <td>REMOTE_HOST</td> |
1072 | | <td class="code"><div>None</div></td> |
1073 | | </tr> |
1074 | | |
1075 | | <tr> |
1076 | | <td>REMOTE_IDENT</td> |
1077 | | <td class="code"><div>None</div></td> |
1078 | | </tr> |
1079 | | |
1080 | | <tr> |
1081 | | <td>REMOTE_USER</td> |
1082 | | <td class="code"><div>None</div></td> |
1083 | | </tr> |
1084 | | |
1085 | | <tr> |
1086 | | <td>REQUEST_METHOD</td> |
1087 | | <td class="code"><div>'POST'</div></td> |
1088 | | </tr> |
1089 | | |
1090 | | <tr> |
1091 | | <td>SCRIPT_NAME</td> |
1092 | | <td class="code"><div>''</div></td> |
1093 | | </tr> |
1094 | | |
1095 | | <tr> |
1096 | | <td>SERVER_NAME</td> |
1097 | | <td class="code"><div>'127.0.0.1'</div></td> |
1098 | | </tr> |
1099 | | |
1100 | | <tr> |
1101 | | <td>SERVER_PORT</td> |
1102 | | <td class="code"><div>80</div></td> |
1103 | | </tr> |
1104 | | |
1105 | | <tr> |
1106 | | <td>SERVER_PROTOCOL</td> |
1107 | | <td class="code"><div>'HTTP/1.0'</div></td> |
1108 | | </tr> |
1109 | | |
1110 | | <tr> |
1111 | | <td>SERVER_SOFTWARE</td> |
1112 | | <td class="code"><div>'mod_python'</div></td> |
1113 | | </tr> |
1114 | | |
1115 | | </tbody> |
1116 | | </table> |
1117 | | |
1118 | | <h3 id="settings-info">Settings</h3> |
1119 | | <h4>Using settings module <code>omeroweb.settings</code></h4> |
1120 | | <table class="req"> |
1121 | | <thead> |
1122 | | <tr> |
1123 | | <th>Setting</th> |
1124 | | <th>Value</th> |
1125 | | </tr> |
1126 | | </thead> |
1127 | | <tbody> |
1128 | | |
1129 | | <tr> |
1130 | | <td>ABSOLUTE_URL_OVERRIDES</td> |
1131 | | <td class="code"><div>{}</div></td> |
1132 | | </tr> |
1133 | | |
1134 | | <tr> |
1135 | | <td>ADMINS</td> |
1136 | | <td class="code"><div>(('A. Tarkowska', 'A.Tarkowska@dundee.ac.uk'),)</div></td> |
1137 | | </tr> |
1138 | | |
1139 | | <tr> |
1140 | | <td>ADMIN_FOR</td> |
1141 | | <td class="code"><div>()</div></td> |
1142 | | </tr> |
1143 | | |
1144 | | <tr> |
1145 | | <td>ADMIN_MEDIA_PREFIX</td> |
1146 | | <td class="code"><div>'/admin_static/'</div></td> |
1147 | | </tr> |
1148 | | |
1149 | | <tr> |
1150 | | <td>ALLOWED_INCLUDE_ROOTS</td> |
1151 | | <td class="code"><div>()</div></td> |
1152 | | </tr> |
1153 | | |
1154 | | <tr> |
1155 | | <td>APPEND_SLASH</td> |
1156 | | <td class="code"><div>True</div></td> |
1157 | | </tr> |
1158 | | |
1159 | | <tr> |
1160 | | <td>APPLICATION_HOST</td> |
1161 | | <td class="code"><div>'http://141.52.175.71/'</div></td> |
1162 | | </tr> |
1163 | | |
1164 | | <tr> |
1165 | | <td>AUTHENTICATION_BACKENDS</td> |
1166 | | <td class="code"><div>('django.contrib.auth.backends.ModelBackend',)</div></td> |
1167 | | </tr> |
1168 | | |
1169 | | <tr> |
1170 | | <td>BANNED_IPS</td> |
1171 | | <td class="code"><div>()</div></td> |
1172 | | </tr> |
1173 | | |
1174 | | <tr> |
1175 | | <td>CACHE_BACKEND</td> |
1176 | | <td class="code"><div>'locmem://'</div></td> |
1177 | | </tr> |
1178 | | |
1179 | | <tr> |
1180 | | <td>CACHE_MIDDLEWARE_KEY_PREFIX</td> |
1181 | | <td class="code"><div>''</div></td> |
1182 | | </tr> |
1183 | | |
1184 | | <tr> |
1185 | | <td>CACHE_MIDDLEWARE_SECONDS</td> |
1186 | | <td class="code"><div>600</div></td> |
1187 | | </tr> |
1188 | | |
1189 | | <tr> |
1190 | | <td>COMMENTS_ALLOW_PROFANITIES</td> |
1191 | | <td class="code"><div>False</div></td> |
1192 | | </tr> |
1193 | | |
1194 | | <tr> |
1195 | | <td>COMMENTS_BANNED_USERS_GROUP</td> |
1196 | | <td class="code"><div>None</div></td> |
1197 | | </tr> |
1198 | | |
1199 | | <tr> |
1200 | | <td>COMMENTS_FIRST_FEW</td> |
1201 | | <td class="code"><div>0</div></td> |
1202 | | </tr> |
1203 | | |
1204 | | <tr> |
1205 | | <td>COMMENTS_MODERATORS_GROUP</td> |
1206 | | <td class="code"><div>None</div></td> |
1207 | | </tr> |
1208 | | |
1209 | | <tr> |
1210 | | <td>COMMENTS_SKETCHY_USERS_GROUP</td> |
1211 | | <td class="code"><div>None</div></td> |
1212 | | </tr> |
1213 | | |
1214 | | <tr> |
1215 | | <td>DATABASE_ENGINE</td> |
1216 | | <td class="code"><div>'sqlite3'</div></td> |
1217 | | </tr> |
1218 | | |
1219 | | <tr> |
1220 | | <td>DATABASE_HOST</td> |
1221 | | <td class="code"><div>''</div></td> |
1222 | | </tr> |
1223 | | |
1224 | | <tr> |
1225 | | <td>DATABASE_NAME</td> |
1226 | | <td class="code"><div>'/home/omero/webdb/db.sqlite3'</div></td> |
1227 | | </tr> |
1228 | | |
1229 | | <tr> |
1230 | | <td>DATABASE_OPTIONS</td> |
1231 | | <td class="code"><div>{}</div></td> |
1232 | | </tr> |
1233 | | |
1234 | | <tr> |
1235 | | <td>DATABASE_PASSWORD</td> |
1236 | | <td class="code"><div>'********************'</div></td> |
1237 | | </tr> |
1238 | | |
1239 | | <tr> |
1240 | | <td>DATABASE_PORT</td> |
1241 | | <td class="code"><div>''</div></td> |
1242 | | </tr> |
1243 | | |
1244 | | <tr> |
1245 | | <td>DATABASE_USER</td> |
1246 | | <td class="code"><div>''</div></td> |
1247 | | </tr> |
1248 | | |
1249 | | <tr> |
1250 | | <td>DATETIME_FORMAT</td> |
1251 | | <td class="code"><div>'N j, Y, P'</div></td> |
1252 | | </tr> |
1253 | | |
1254 | | <tr> |
1255 | | <td>DATE_FORMAT</td> |
1256 | | <td class="code"><div>'N j, Y'</div></td> |
1257 | | </tr> |
1258 | | |
1259 | | <tr> |
1260 | | <td>DEBUG</td> |
1261 | | <td class="code"><div>False</div></td> |
1262 | | </tr> |
1263 | | |
1264 | | <tr> |
1265 | | <td>DEBUG_PROPAGATE_EXCEPTIONS</td> |
1266 | | <td class="code"><div>False</div></td> |
1267 | | </tr> |
1268 | | |
1269 | | <tr> |
1270 | | <td>DEFAULT_CHARSET</td> |
1271 | | <td class="code"><div>'utf-8'</div></td> |
1272 | | </tr> |
1273 | | |
1274 | | <tr> |
1275 | | <td>DEFAULT_CONTENT_TYPE</td> |
1276 | | <td class="code"><div>'text/html'</div></td> |
1277 | | </tr> |
1278 | | |
1279 | | <tr> |
1280 | | <td>DEFAULT_FILE_STORAGE</td> |
1281 | | <td class="code"><div>'django.core.files.storage.FileSystemStorage'</div></td> |
1282 | | </tr> |
1283 | | |
1284 | | <tr> |
1285 | | <td>DEFAULT_FROM_EMAIL</td> |
1286 | | <td class="code"><div>'webmaster@localhost'</div></td> |
1287 | | </tr> |
1288 | | |
1289 | | <tr> |
1290 | | <td>DEFAULT_IMG</td> |
1291 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/omeroweb/webclient/media/images/image128.png'</div></td> |
1292 | | </tr> |
1293 | | |
1294 | | <tr> |
1295 | | <td>DEFAULT_INDEX_TABLESPACE</td> |
1296 | | <td class="code"><div>''</div></td> |
1297 | | </tr> |
1298 | | |
1299 | | <tr> |
1300 | | <td>DEFAULT_TABLESPACE</td> |
1301 | | <td class="code"><div>''</div></td> |
1302 | | </tr> |
1303 | | |
1304 | | <tr> |
1305 | | <td>DEFAULT_USER</td> |
1306 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/omeroweb/webclient/media/images/personal32.png'</div></td> |
1307 | | </tr> |
1308 | | |
1309 | | <tr> |
1310 | | <td>DISALLOWED_USER_AGENTS</td> |
1311 | | <td class="code"><div>()</div></td> |
1312 | | </tr> |
1313 | | |
1314 | | <tr> |
1315 | | <td>EMAIL_HOST</td> |
1316 | | <td class="code"><div>'mailhost.fzk.de'</div></td> |
1317 | | </tr> |
1318 | | |
1319 | | <tr> |
1320 | | <td>EMAIL_HOST_PASSWORD</td> |
1321 | | <td class="code"><div>'********************'</div></td> |
1322 | | </tr> |
1323 | | |
1324 | | <tr> |
1325 | | <td>EMAIL_HOST_USER</td> |
1326 | | <td class="code"><div>''</div></td> |
1327 | | </tr> |
1328 | | |
1329 | | <tr> |
1330 | | <td>EMAIL_PORT</td> |
1331 | | <td class="code"><div>25</div></td> |
1332 | | </tr> |
1333 | | |
1334 | | <tr> |
1335 | | <td>EMAIL_SUBJECT_PREFIX</td> |
1336 | | <td class="code"><div>'[OMERO.web] '</div></td> |
1337 | | </tr> |
1338 | | |
1339 | | <tr> |
1340 | | <td>EMAIL_USE_TLS</td> |
1341 | | <td class="code"><div>False</div></td> |
1342 | | </tr> |
1343 | | |
1344 | | <tr> |
1345 | | <td>FEEDBACK_URL</td> |
1346 | | <td class="code"><div>'qa.openmicroscopy.org.uk:80'</div></td> |
1347 | | </tr> |
1348 | | |
1349 | | <tr> |
1350 | | <td>FILE_CHARSET</td> |
1351 | | <td class="code"><div>'utf-8'</div></td> |
1352 | | </tr> |
1353 | | |
1354 | | <tr> |
1355 | | <td>FILE_UPLOAD_HANDLERS</td> |
1356 | | <td class="code"><div>('django.core.files.uploadhandler.MemoryFileUploadHandler', |
1357 | | 'django.core.files.uploadhandler.TemporaryFileUploadHandler')</div></td> |
1358 | | </tr> |
1359 | | |
1360 | | <tr> |
1361 | | <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td> |
1362 | | <td class="code"><div>2621440</div></td> |
1363 | | </tr> |
1364 | | |
1365 | | <tr> |
1366 | | <td>FILE_UPLOAD_PERMISSIONS</td> |
1367 | | <td class="code"><div>None</div></td> |
1368 | | </tr> |
1369 | | |
1370 | | <tr> |
1371 | | <td>FILE_UPLOAD_TEMP_DIR</td> |
1372 | | <td class="code"><div>'/tmp'</div></td> |
1373 | | </tr> |
1374 | | |
1375 | | <tr> |
1376 | | <td>FIRST_DAY_OF_WEEK</td> |
1377 | | <td class="code"><div>0</div></td> |
1378 | | </tr> |
1379 | | |
1380 | | <tr> |
1381 | | <td>FIXTURE_DIRS</td> |
1382 | | <td class="code"><div>()</div></td> |
1383 | | </tr> |
1384 | | |
1385 | | <tr> |
1386 | | <td>FORCE_SCRIPT_NAME</td> |
1387 | | <td class="code"><div>None</div></td> |
1388 | | </tr> |
1389 | | |
1390 | | <tr> |
1391 | | <td>IGNORABLE_404_ENDS</td> |
1392 | | <td class="code"><div>'*.ico'</div></td> |
1393 | | </tr> |
1394 | | |
1395 | | <tr> |
1396 | | <td>IGNORABLE_404_STARTS</td> |
1397 | | <td class="code"><div>('/cgi-bin/', '/_vti_bin', '/_vti_inf')</div></td> |
1398 | | </tr> |
1399 | | |
1400 | | <tr> |
1401 | | <td>INSTALLED_APPS</td> |
1402 | | <td class="code"><div>['django.contrib.admin', |
1403 | | 'django.contrib.markup', |
1404 | | 'django.contrib.auth', |
1405 | | 'django.contrib.contenttypes', |
1406 | | 'django.contrib.sessions', |
1407 | | 'django.contrib.sites', |
1408 | | 'omeroweb.feedback', |
1409 | | 'omeroweb.webadmin', |
1410 | | 'omeroweb.webclient', |
1411 | | 'omeroweb.webgateway']</div></td> |
1412 | | </tr> |
1413 | | |
1414 | | <tr> |
1415 | | <td>INTERNAL_IPS</td> |
1416 | | <td class="code"><div>()</div></td> |
1417 | | </tr> |
1418 | | |
1419 | | <tr> |
1420 | | <td>JING_PATH</td> |
1421 | | <td class="code"><div>'/usr/bin/jing'</div></td> |
1422 | | </tr> |
1423 | | |
1424 | | <tr> |
1425 | | <td>LANGUAGES</td> |
1426 | | <td class="code"><div>(('ar', 'Arabic'), |
1427 | | ('bn', 'Bengali'), |
1428 | | ('bg', 'Bulgarian'), |
1429 | | ('ca', 'Catalan'), |
1430 | | ('cs', 'Czech'), |
1431 | | ('cy', 'Welsh'), |
1432 | | ('da', 'Danish'), |
1433 | | ('de', 'German'), |
1434 | | ('el', 'Greek'), |
1435 | | ('en', 'English'), |
1436 | | ('es', 'Spanish'), |
1437 | | ('et', 'Estonian'), |
1438 | | ('es-ar', 'Argentinean Spanish'), |
1439 | | ('eu', 'Basque'), |
1440 | | ('fa', 'Persian'), |
1441 | | ('fi', 'Finnish'), |
1442 | | ('fr', 'French'), |
1443 | | ('ga', 'Irish'), |
1444 | | ('gl', 'Galician'), |
1445 | | ('hu', 'Hungarian'), |
1446 | | ('he', 'Hebrew'), |
1447 | | ('hr', 'Croatian'), |
1448 | | ('is', 'Icelandic'), |
1449 | | ('it', 'Italian'), |
1450 | | ('ja', 'Japanese'), |
1451 | | ('ka', 'Georgian'), |
1452 | | ('ko', 'Korean'), |
1453 | | ('km', 'Khmer'), |
1454 | | ('kn', 'Kannada'), |
1455 | | ('lv', 'Latvian'), |
1456 | | ('lt', 'Lithuanian'), |
1457 | | ('mk', 'Macedonian'), |
1458 | | ('nl', 'Dutch'), |
1459 | | ('no', 'Norwegian'), |
1460 | | ('pl', 'Polish'), |
1461 | | ('pt', 'Portugese'), |
1462 | | ('pt-br', 'Brazilian Portuguese'), |
1463 | | ('ro', 'Romanian'), |
1464 | | ('ru', 'Russian'), |
1465 | | ('sk', 'Slovak'), |
1466 | | ('sl', 'Slovenian'), |
1467 | | ('sr', 'Serbian'), |
1468 | | ('sv', 'Swedish'), |
1469 | | ('ta', 'Tamil'), |
1470 | | ('te', 'Telugu'), |
1471 | | ('tr', 'Turkish'), |
1472 | | ('uk', 'Ukrainian'), |
1473 | | ('zh-cn', 'Simplified Chinese'), |
1474 | | ('zh-tw', 'Traditional Chinese'))</div></td> |
1475 | | </tr> |
1476 | | |
1477 | | <tr> |
1478 | | <td>LANGUAGES_BIDI</td> |
1479 | | <td class="code"><div>('he', 'ar', 'fa')</div></td> |
1480 | | </tr> |
1481 | | |
1482 | | <tr> |
1483 | | <td>LANGUAGE_CODE</td> |
1484 | | <td class="code"><div>'en-gb'</div></td> |
1485 | | </tr> |
1486 | | |
1487 | | <tr> |
1488 | | <td>LANGUAGE_COOKIE_NAME</td> |
1489 | | <td class="code"><div>'django_language'</div></td> |
1490 | | </tr> |
1491 | | |
1492 | | <tr> |
1493 | | <td>LEVEL</td> |
1494 | | <td class="code"><div>20</div></td> |
1495 | | </tr> |
1496 | | |
1497 | | <tr> |
1498 | | <td>LOCALE_PATHS</td> |
1499 | | <td class="code"><div>()</div></td> |
1500 | | </tr> |
1501 | | |
1502 | | <tr> |
1503 | | <td>LOGDIR</td> |
1504 | | <td class="code"><div>'/home/omero/weblog/'</div></td> |
1505 | | </tr> |
1506 | | |
1507 | | <tr> |
1508 | | <td>LOGFILE</td> |
1509 | | <td class="code"><div>'OMEROweb.log'</div></td> |
1510 | | </tr> |
1511 | | |
1512 | | <tr> |
1513 | | <td>LOGGING_LOG_SQL</td> |
1514 | | <td class="code"><div>False</div></td> |
1515 | | </tr> |
1516 | | |
1517 | | <tr> |
1518 | | <td>LOGIN_REDIRECT_URL</td> |
1519 | | <td class="code"><div>'/accounts/profile/'</div></td> |
1520 | | </tr> |
1521 | | |
1522 | | <tr> |
1523 | | <td>LOGIN_URL</td> |
1524 | | <td class="code"><div>'/accounts/login/'</div></td> |
1525 | | </tr> |
1526 | | |
1527 | | <tr> |
1528 | | <td>LOGOUT_URL</td> |
1529 | | <td class="code"><div>'/accounts/logout/'</div></td> |
1530 | | </tr> |
1531 | | |
1532 | | <tr> |
1533 | | <td>MANAGERS</td> |
1534 | | <td class="code"><div>(('A. Tarkowska', 'A.Tarkowska@dundee.ac.uk'),)</div></td> |
1535 | | </tr> |
1536 | | |
1537 | | <tr> |
1538 | | <td>MEDIA_ROOT</td> |
1539 | | <td class="code"><div>''</div></td> |
1540 | | </tr> |
1541 | | |
1542 | | <tr> |
1543 | | <td>MEDIA_URL</td> |
1544 | | <td class="code"><div>''</div></td> |
1545 | | </tr> |
1546 | | |
1547 | | <tr> |
1548 | | <td>MIDDLEWARE_CLASSES</td> |
1549 | | <td class="code"><div>('django.middleware.common.CommonMiddleware', |
1550 | | 'django.contrib.sessions.middleware.SessionMiddleware', |
1551 | | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
1552 | | 'django.middleware.doc.XViewMiddleware', |
1553 | | 'djangologging.middleware.LoggingMiddleware')</div></td> |
1554 | | </tr> |
1555 | | |
1556 | | <tr> |
1557 | | <td>MONTH_DAY_FORMAT</td> |
1558 | | <td class="code"><div>'F j'</div></td> |
1559 | | </tr> |
1560 | | |
1561 | | <tr> |
1562 | | <td>PASSWORD_RESET_TIMEOUT_DAYS</td> |
1563 | | <td class="code"><div>'********************'</div></td> |
1564 | | </tr> |
1565 | | |
1566 | | <tr> |
1567 | | <td>PREPEND_WWW</td> |
1568 | | <td class="code"><div>False</div></td> |
1569 | | </tr> |
1570 | | |
1571 | | <tr> |
1572 | | <td>PROFANITIES_LIST</td> |
1573 | | <td class="code"><div>'********************'</div></td> |
1574 | | </tr> |
1575 | | |
1576 | | <tr> |
1577 | | <td>ROOT_URLCONF</td> |
1578 | | <td class="code"><div>'omeroweb.urls'</div></td> |
1579 | | </tr> |
1580 | | |
1581 | | <tr> |
1582 | | <td>SECRET_KEY</td> |
1583 | | <td class="code"><div>'********************'</div></td> |
1584 | | </tr> |
1585 | | |
1586 | | <tr> |
1587 | | <td>SEND_BROKEN_LINK_EMAILS</td> |
1588 | | <td class="code"><div>True</div></td> |
1589 | | </tr> |
1590 | | |
1591 | | <tr> |
1592 | | <td>SERVER_EMAIL</td> |
1593 | | <td class="code"><div>'hwiki_admin@fzk.de'</div></td> |
1594 | | </tr> |
1595 | | |
1596 | | <tr> |
1597 | | <td>SESSION_COOKIE_AGE</td> |
1598 | | <td class="code"><div>86400</div></td> |
1599 | | </tr> |
1600 | | |
1601 | | <tr> |
1602 | | <td>SESSION_COOKIE_DOMAIN</td> |
1603 | | <td class="code"><div>None</div></td> |
1604 | | </tr> |
1605 | | |
1606 | | <tr> |
1607 | | <td>SESSION_COOKIE_NAME</td> |
1608 | | <td class="code"><div>'sessionid'</div></td> |
1609 | | </tr> |
1610 | | |
1611 | | <tr> |
1612 | | <td>SESSION_COOKIE_PATH</td> |
1613 | | <td class="code"><div>'/'</div></td> |
1614 | | </tr> |
1615 | | |
1616 | | <tr> |
1617 | | <td>SESSION_COOKIE_SECURE</td> |
1618 | | <td class="code"><div>False</div></td> |
1619 | | </tr> |
1620 | | |
1621 | | <tr> |
1622 | | <td>SESSION_ENGINE</td> |
1623 | | <td class="code"><div>'django.contrib.sessions.backends.db'</div></td> |
1624 | | </tr> |
1625 | | |
1626 | | <tr> |
1627 | | <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td> |
1628 | | <td class="code"><div>True</div></td> |
1629 | | </tr> |
1630 | | |
1631 | | <tr> |
1632 | | <td>SESSION_FILE_PATH</td> |
1633 | | <td class="code"><div>None</div></td> |
1634 | | </tr> |
1635 | | |
1636 | | <tr> |
1637 | | <td>SESSION_SAVE_EVERY_REQUEST</td> |
1638 | | <td class="code"><div>False</div></td> |
1639 | | </tr> |
1640 | | |
1641 | | <tr> |
1642 | | <td>SETTINGS_MODULE</td> |
1643 | | <td class="code"><div>'omeroweb.settings'</div></td> |
1644 | | </tr> |
1645 | | |
1646 | | <tr> |
1647 | | <td>SITE_ID</td> |
1648 | | <td class="code"><div>1</div></td> |
1649 | | </tr> |
1650 | | |
1651 | | <tr> |
1652 | | <td>STATIC_LOGO</td> |
1653 | | <td class="code"><div>'/home/omero/omero_dist/lib/python/omeroweb/webclient/media/images/logo.png'</div></td> |
1654 | | </tr> |
1655 | | |
1656 | | <tr> |
1657 | | <td>TEMPLATE_CONTEXT_PROCESSORS</td> |
1658 | | <td class="code"><div>('django.core.context_processors.auth', |
1659 | | 'django.core.context_processors.debug', |
1660 | | 'django.core.context_processors.i18n', |
1661 | | 'django.core.context_processors.media')</div></td> |
1662 | | </tr> |
1663 | | |
1664 | | <tr> |
1665 | | <td>TEMPLATE_DEBUG</td> |
1666 | | <td class="code"><div>False</div></td> |
1667 | | </tr> |
1668 | | |
1669 | | <tr> |
1670 | | <td>TEMPLATE_DIRS</td> |
1671 | | <td class="code"><div>('/home/omero/omero_dist/lib/python/djangologging/templates', |
1672 | | '/home/omero/omero_dist/lib/python/omeroweb/feedback/templates', |
1673 | | '/home/omero/omero_dist/lib/python/omeroweb/webadmin/templates', |
1674 | | '/home/omero/omero_dist/lib/python/omeroweb/webclient/templates')</div></td> |
1675 | | </tr> |
1676 | | |
1677 | | <tr> |
1678 | | <td>TEMPLATE_LOADERS</td> |
1679 | | <td class="code"><div>('django.template.loaders.filesystem.load_template_source', |
1680 | | 'django.template.loaders.app_directories.load_template_source')</div></td> |
1681 | | </tr> |
1682 | | |
1683 | | <tr> |
1684 | | <td>TEMPLATE_STRING_IF_INVALID</td> |
1685 | | <td class="code"><div>''</div></td> |
1686 | | </tr> |
1687 | | |
1688 | | <tr> |
1689 | | <td>TEST_DATABASE_CHARSET</td> |
1690 | | <td class="code"><div>None</div></td> |
1691 | | </tr> |
1692 | | |
1693 | | <tr> |
1694 | | <td>TEST_DATABASE_COLLATION</td> |
1695 | | <td class="code"><div>None</div></td> |
1696 | | </tr> |
1697 | | |
1698 | | <tr> |
1699 | | <td>TEST_DATABASE_NAME</td> |
1700 | | <td class="code"><div>'test-db.sqlite3'</div></td> |
1701 | | </tr> |
1702 | | |
1703 | | <tr> |
1704 | | <td>TEST_RUNNER</td> |
1705 | | <td class="code"><div>'django.test.simple.run_tests'</div></td> |
1706 | | </tr> |
1707 | | |
1708 | | <tr> |
1709 | | <td>TIME_FORMAT</td> |
1710 | | <td class="code"><div>'P'</div></td> |
1711 | | </tr> |
1712 | | |
1713 | | <tr> |
1714 | | <td>TIME_ZONE</td> |
1715 | | <td class="code"><div>'Europe/London'</div></td> |
1716 | | </tr> |
1717 | | |
1718 | | <tr> |
1719 | | <td>TRANSACTIONS_MANAGED</td> |
1720 | | <td class="code"><div>False</div></td> |
1721 | | </tr> |
1722 | | |
1723 | | <tr> |
1724 | | <td>URL_VALIDATOR_USER_AGENT</td> |
1725 | | <td class="code"><div>u'Django/1.0-final-SVN-unknown (http://www.djangoproject.com)'</div></td> |
1726 | | </tr> |
1727 | | |
1728 | | <tr> |
1729 | | <td>USE_ETAGS</td> |
1730 | | <td class="code"><div>False</div></td> |
1731 | | </tr> |
1732 | | |
1733 | | <tr> |
1734 | | <td>USE_I18N</td> |
1735 | | <td class="code"><div>True</div></td> |
1736 | | </tr> |
1737 | | |
1738 | | <tr> |
1739 | | <td>YEAR_MONTH_FORMAT</td> |
1740 | | <td class="code"><div>'F Y'</div></td> |
1741 | | </tr> |
1742 | | |
1743 | | </tbody> |
1744 | | </table> |
1745 | | |
1746 | | </div> |
1747 | | |
1748 | | <div id="explanation"> |
1749 | | <p> |
1750 | | You're seeing this error because you have <code>DEBUG = True</code> in your |
1751 | | Django settings file. Change that to <code>False</code>, and Django will |
1752 | | display a standard 500 page. |
1753 | | </p> |
1754 | | </div> |
1755 | | </body> |
1756 | | </html> |
1757 | | |
1758 | | }}} |