Aquileo | Recent changes to bugshttps://sourceforge.net/p/pso/bugs/Recent changes to bugsenTue, 27 Dec 2005 20:10:46 -0000Aquileo | headers sent out after contenthttps://sourceforge.net/p/pso/bugs/16/<div class="markdown_content"><p>Hi,</p> <p>I'm using pso 0.98.D-beta with python2.3.</p> <p>Sometimes, the headers get sent _after_ the actual<br /> content. As a workaround I commented out 'if not<br /> self.headers_sent:' in the close member function of<br /> RequestIO so I can call send_http_header() directly at<br /> the beginning of the handler (right after setting some<br /> headers).</p> <p>I haven't figured what causes this problem exactly.<br /> Unfortunately my code is quite complex, so maybe you<br /> have a better idea where to start looking.</p> <p>My cgi script looks like this:</p> <p>#!/usr/bin/python</p> <p>import sys<br /> sys.path.insert(0, "/home/drizzd/lpms")</p> <p>from germ.ui_ht.handler import handler<br /> from pso.service import ServiceHandler<br /> ServiceHandler().run(handler)</p> <p>The handler essentially looks like this:</p> <p>def handler(req):<br /> try:<br /> prevent_caching(req)</p> <p>req.pso().send_http_header()</p> <p>import cgi<br /> form = cgi.FieldStorage(keep_blank_values = True)</p> <p># [...] lots of stuff,<br /> # also using req.pso().session,<br /> # but never any printing</p> <p>print parser.output()<br /> except:<br /> from boil_out import boil_out<br /> return boil_out()</p> <p>from pso.service import OK<br /> return OK</p> <p>Best regards,<br /> Clemens</p></div>Clemens BuchacherTue, 27 Dec 2005 20:10:46 -0000https://sourceforge.net2d02fbb00f07b1ad787433745f0cbfaca9f9f8d6Aquileo | statcache deprecated in python 2.3https://sourceforge.net/p/pso/bugs/15/<div class="markdown_content"><p>hi, </p> <p>i'm using python 2.3 + pso 0.98.C-beta.</p> <p>i get a deprecated warning for the stacache module used<br /> in parser.py.</p> <p>line 146: from statcache import stat, forget</p> <p>line 541: ttime = stat(filePath)[ST_MTIME]<br /> line 568: forget(ofilePath)<br /> line 569: forget(filePath)</p> <p>maybe the linenumbers are +-1.</p> <p>i commented your lines and replaced line 541 with </p> <p>ttime = os.stat(filePath)[ST_MTIME] </p> <p>but i'm not shure if this has the same behavior.</p> <p>rene</p></div>AnonymousTue, 02 Sep 2003 15:37:52 -0000https://sourceforge.netb0f323c2bff7ae0be5104e5f8c6331ff730880e7Aquileo | Session doesn't work with mod_python under Linuxhttps://sourceforge.net/p/pso/bugs/14/<div class="markdown_content"><p>Hi,</p> <p>I tried pso 0.98.C sessions under Linux, and I have the<br /> experience that it doesn't work as expected.</p> <p>My impression is that because each apache process has<br /> its own python interpreter instance, I get multiple<br /> copies of the session objects.</p> <p>explicitly saving the session as stated in the doc<br /> doesn't work, the log file says something about<br /> dictionaries not having save() methods.</p> <p>If you need additional info, please ask.</p> <p>Thanks,<br /> Markus</p></div>Markus SchaberFri, 04 Jul 2003 11:44:25 -0000https://sourceforge.net98c354a75c479b5e228132e28faf592acf950d83Aquileo | pso-guide: mod_python .htaccesshttps://sourceforge.net/p/pso/bugs/13/<div class="markdown_content"><p>In the pso-guide is missing information on setting up<br /> pso and mod_pythoon, in particluar setting up the<br /> .htaccess file.</p></div>thanos vassilakisTue, 11 Feb 2003 22:54:26 -0000https://sourceforge.net64bdc1dc7dad1783527268261fdadfdc0d5349daAquileo | mod_python examples brokenhttps://sourceforge.net/p/pso/bugs/12/<div class="markdown_content"><p>Mod_python error: &amp;quot;PythonFixupHandler pso.modpython::fixup&amp;quot;</p> <p>Traceback (most recent call last):</p> <p>File<br /> &amp;quot;/usr/local/lib/python2.2/site-packages/mod_python/apache.py&amp;quot;,<br /> line 181, in Dispatch<br /> module = import_module(module_name, _req)</p> <p>File<br /> &amp;quot;/usr/local/lib/python2.2/site-packages/mod_python/apache.py&amp;quot;,<br /> line 338, in import_module<br /> module = imp.load_module(mname, f, p, d)</p> <p>File<br /> &amp;quot;/usr/home/thanos/public_html/pso/tests/guide/mp/pso/modpython.py&amp;quot;,<br /> line 26, in ?<br /> from pso import service</p> <p>File &amp;quot;./pso/service.py&amp;quot;, line 31, in ?</p> <p>File &amp;quot;./pso/request.py&amp;quot;, line 36, in ?</p> <p>File<br /> &amp;quot;/usr/home/thanos/public_html/pso/tests/guide/mp/pso/url.py&amp;quot;,<br /> line 31, in ?<br /> from urllib import urlencode</p> <p>ImportError: cannot import name urlencode</p> <p>Mod_python error: &amp;quot;PythonLogHandler pso.modpython::cleanup&amp;quot;</p> <p>Traceback (most recent call last):</p> <p>File<br /> &amp;quot;/usr/local/lib/python2.2/site-packages/mod_python/apache.py&amp;quot;,<br /> line 193, in Dispatch<br /> result = object(req)</p> <p>File<br /> &amp;quot;/usr/home/thanos/public_html/pso/tests/guide/mp/pso/modpython.py&amp;quot;,<br /> line 36, in cleanup<br /> service.cleanup(req)</p> <p>AttributeError: 'module' object has no attribute 'cleanup'</p></div>thanos vassilakisTue, 11 Feb 2003 22:52:28 -0000https://sourceforge.net8711922a3093a7a9a628fce3e34cc9855f26bdb5Aquileo | parser fails to import package moduleshttps://sourceforge.net/p/pso/bugs/11/<div class="markdown_content"><p>&amp;lt;pso pso=&amp;quot;gui.util.nav:Link&amp;quot; /&amp;gt; <br /> currently fails<br /> This is a regression falure</p></div>thanos vassilakisSun, 02 Feb 2003 02:38:23 -0000https://sourceforge.netf8f5d7b2a1dfc952ce0a9760e9dc0c35dc733619Aquileo | Check and Radio buttonshttps://sourceforge.net/p/pso/bugs/10/<div class="markdown_content"><p>1) Check and Radio buttons in readonly dont show their<br /> values<br /> 2) In the pso-example they don't seem to be saved.</p></div>thanos vassilakisFri, 31 Jan 2003 18:12:22 -0000https://sourceforge.netd8f808b51a30fd905db6b96dc65b71fd89bf77b9Aquileo | portal: lists of members is brokenhttps://sourceforge.net/p/pso/bugs/9/<div class="markdown_content"><p>%(userId)s%(state)s%(zip)s<br /> is shown </p></div>thanos vassilakisFri, 24 Jan 2003 17:49:25 -0000https://sourceforge.net69f45adb675e880f00cfd5a622f0bca519d1b4a2Aquileo | login fails for web service examplehttps://sourceforge.net/p/pso/bugs/8/<div class="markdown_content"><p>The example of building a web service with pso, found at</p> <p><a href="http://www.scriptfoundry.com/modules/pso/doc/pso-example.html" rel="nofollow">http://www.scriptfoundry.com/modules/pso/doc/pso-example.html</a></p> <p>and which is truly helpful has one glitch. The<br /> login process works for part02 only (not for part01, 03, 04, 05 or 06). That is, after entering and<br /> submitting a valid login name and password, the user is bounced back to the test.cgi (main)<br /> web page (as desired) but with a &amp;quot;Please Login&amp;quot; message instead of &amp;quot;logout&amp;quot;. Unfortunately,<br /> being very new to pso (though exceptionally impressed), I am unable to determine why this<br /> doesn't work or how to fix this. Knowing the fix would be quite instructive in itself.</p></div>AnonymousWed, 23 Oct 2002 18:50:38 -0000https://sourceforge.netb496d65f711d6ee8f06d2bc1e0a3f8d6f83fd398Aquileo | TemplateHandler.scratch() doesn't workhttps://sourceforge.net/p/pso/bugs/7/<div class="markdown_content"><p>_scratch field is absent</p></div>Alexey FilippovFri, 21 Jun 2002 09:08:01 -0000https://sourceforge.net4043ef0419dd1bd3a0c73da4be7921ffff5ab267