<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/myghty/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/myghty/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 02 Sep 2006 11:00:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/myghty/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>easy_install broken</title><link>https://sourceforge.net/p/myghty/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;While easy_installing Pylons:&lt;/p&gt;
&lt;p&gt;Searching for Myghty&amp;gt;=1.0.2&lt;br /&gt;
Reading &lt;a href="http://www.python.org/pypi/Myghty/" rel="nofollow"&gt;http://www.python.org/pypi/Myghty/&lt;/a&gt;&lt;br /&gt;
Reading &lt;a href="http://www.myghty.org" rel="nofollow"&gt;http://www.myghty.org&lt;/a&gt;&lt;br /&gt;
Reading &lt;a href="http://www.myghty.org/links.myt?linkid=download" rel="nofollow"&gt;http://www.myghty.org/links.myt?linkid=download&lt;/a&gt;&lt;br /&gt;
Reading &lt;a href="http://www.python.org/pypi/Myghty/1.0.2" rel="nofollow"&gt;http://www.python.org/pypi/Myghty/1.0.2&lt;/a&gt;&lt;br /&gt;
Best match: Myghty 1.0.2&lt;br /&gt;
Downloading&lt;br /&gt;
&lt;a href="http://69.9.164.2/sourceforge/myghty/Myghty-1.0.2.tar.gz" rel="nofollow"&gt;http://69.9.164.2/sourceforge/myghty/Myghty-1.0.2.tar.gz&lt;/a&gt;&lt;br /&gt;
error: Can't download&lt;br /&gt;
&lt;a href="http://69.9.164.2/sourceforge/myghty/Myghty-1.0.2.tar.gz:" rel="nofollow"&gt;http://69.9.164.2/sourceforge/myghty/Myghty-1.0.2.tar.gz:&lt;/a&gt;&lt;br /&gt;
504 Gateway Time-out&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">a zwinkau</dc:creator><pubDate>Sat, 02 Sep 2006 11:00:53 -0000</pubDate><guid>https://sourceforge.net061ff78eeaa52c9b8de129cee497904ee9663b52</guid></item><item><title>test/Container.py: unittest fails</title><link>https://sourceforge.net/p/myghty/bugs/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In test/Container.py, ContainerTest.testDbmContainer2&lt;br /&gt;
fails for me.&lt;/p&gt;
&lt;p&gt;Details of failure are:&lt;/p&gt;
&lt;p&gt;testDbmContainer2 (__main__.ContainerTest) ...&lt;br /&gt;
testing myghty.container.DBMContainer for 10 secs&lt;br /&gt;
with expiretime 2&lt;br /&gt;
delay 0&lt;br /&gt;
create thread 1 starting&lt;br /&gt;
create thread 2 starting&lt;br /&gt;
[...]&lt;br /&gt;
create thread 3 exiting&lt;br /&gt;
total object creates 2&lt;br /&gt;
total object gets 6788&lt;br /&gt;
FAIL&lt;/p&gt;
&lt;p&gt;(Translation: The test script expects (approximately)&lt;br /&gt;
five object creates, but it only sees two.)&lt;/p&gt;
&lt;p&gt;This is in the latest CVS version of test/Container.py&lt;br /&gt;
(file revision 1.13).  The version from release 0.99&lt;br /&gt;
also fails, but in that case it is&lt;br /&gt;
ContainerTest.testcontainer which fails.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey T. Dairiki</dc:creator><pubDate>Thu, 27 Oct 2005 17:59:30 -0000</pubDate><guid>https://sourceforge.net7d9b883f5503969654184cda3958df3f425bbd86</guid></item><item><title>Too much white-space in subcomponent/method output.</title><link>https://sourceforge.net/p/myghty/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is more of an anoying behavior than a bug.&lt;/p&gt;
&lt;p&gt;The compiler inserts (probably) unintended whitespace&lt;br /&gt;
in subcomponents and methods.&lt;/p&gt;
&lt;p&gt;Here's an example:&lt;br /&gt;
&amp;lt;%flags&amp;gt;&lt;br /&gt;
inherit = None&lt;br /&gt;
&amp;lt;/%flags&amp;gt;&lt;br /&gt;
&amp;lt;%def mycomp&amp;gt;&lt;br /&gt;
%  m.write("Binary data")&lt;br /&gt;
&amp;lt;/%def&amp;gt;&lt;br /&gt;
&amp;lt;&amp;amp; mycomp &amp;amp;&amp;gt;&lt;/p&gt;
&lt;p&gt;which produces "\nBinary data" (note the leading "\n").&lt;/p&gt;
&lt;p&gt;This behavior is particularly troublesome in&lt;br /&gt;
subcomenents/methods which are producing binary data&lt;br /&gt;
(say a GIF image).&lt;/p&gt;
&lt;p&gt;It can be worked around using m.clear_buffer() (which,&lt;br /&gt;
btw, does not seem to be mentioned in the&lt;br /&gt;
documentation.)  (Using the trim attribute is not a&lt;br /&gt;
safe workaround for subcomponents which produce binary&lt;br /&gt;
data, since the binary data may include white-space&lt;br /&gt;
characters.)&lt;/p&gt;
&lt;p&gt;My guess as to the best fix is to make the lexer ignore&lt;br /&gt;
all white-space which is not contiguous with either&lt;br /&gt;
some non-white-space text, or a substitution or&lt;br /&gt;
component call.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey T. Dairiki</dc:creator><pubDate>Tue, 13 Sep 2005 17:47:21 -0000</pubDate><guid>https://sourceforge.net0688dee8cfec09fb39bb6e07b408810c9a0bfcb2</guid></item><item><title>r is not available within &lt;%requestlocal&gt; blocks</title><link>https://sourceforge.net/p/myghty/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The global http request object, r, does not seem to be&lt;br /&gt;
available within &amp;lt;%requestlocal&amp;gt; blocks.&lt;/p&gt;
&lt;p&gt;This is in constrast to the documentation, which&lt;br /&gt;
states: "The good news is, the regular Myghty variables&lt;br /&gt;
m, ARGS, r etc. are all available within a&lt;br /&gt;
request-scoped block."&lt;br /&gt;
(http://www.myghty.org/docs/scopedpython.myt#scopedpython_request)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey T. Dairiki</dc:creator><pubDate>Fri, 09 Sep 2005 02:50:47 -0000</pubDate><guid>https://sourceforge.netabb3620ea3a614494ed9bc88b388f6ec147dd040</guid></item><item><title>Component.attributes is broken</title><link>https://sourceforge.net/p/myghty/bugs/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The Component.attributes accessor as in (release 0.98a)&lt;br /&gt;
will only look up a maximum of one level in the&lt;br /&gt;
inheritance graph to find an attribute.&lt;/p&gt;
&lt;p&gt;I've attached a patch.&lt;/p&gt;
&lt;p&gt;For specificity, here's untested example code which&lt;br /&gt;
will exercise the bug:&lt;/p&gt;
&lt;p&gt;===in /a.myt===&lt;br /&gt;
&amp;lt;%attr&amp;gt;&lt;br /&gt;
foo = 'fooval'&lt;br /&gt;
&amp;lt;/%attr&amp;gt;&lt;/p&gt;
&lt;p&gt;===in /b.myt===&lt;br /&gt;
&amp;lt;%flags&amp;gt;&lt;br /&gt;
inherit = '/a.myt'&lt;br /&gt;
&amp;lt;/%flags&amp;gt;&lt;br /&gt;
&amp;lt;%attr&amp;gt;&lt;br /&gt;
bar = 'barval'&lt;br /&gt;
&amp;lt;/%attr&amp;gt;&lt;/p&gt;
&lt;p&gt;===in /c.myt===&lt;br /&gt;
&amp;lt;%flags&amp;gt;&lt;br /&gt;
inherit = '/b.myt'&lt;br /&gt;
&amp;lt;/%flags&amp;gt;&lt;/p&gt;
&lt;p&gt;# This is okay; it finds the 'bar' attribute from /b.myt:&lt;br /&gt;
&amp;lt;% m.base_component.attributes['bar'] %&amp;gt;&lt;/p&gt;
&lt;p&gt;# This throws an AttributeError, doesn't find /a.myt's,&lt;br /&gt;
'foo':&lt;br /&gt;
&amp;lt;% m.base_component.attributes['foo'] %&amp;gt;&lt;/p&gt;
&lt;p&gt;=============&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Geoffrey T. Dairiki</dc:creator><pubDate>Thu, 28 Jul 2005 03:13:59 -0000</pubDate><guid>https://sourceforge.net3701bcb6a8382412c59b8820523e845fc1374c74</guid></item><item><title>session object does not resemble python mapping type</title><link>https://sourceforge.net/p/myghty/bugs/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The session object as returned by m.get_session() does &lt;br /&gt;
not support basic python mapping type methods as &lt;br /&gt;
specified in &lt;a href="http://www.python.org/doc/2.4.1/lib/" rel="nofollow"&gt;http://www.python.org/doc/2.4.1/lib/&lt;/a&gt;&lt;br /&gt;
typesmapping.html .&lt;br /&gt;
Especially the methods get and setdefault would be &lt;br /&gt;
useful. Shouldn't be too hard to fix this, thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 23 Jul 2005 13:29:07 -0000</pubDate><guid>https://sourceforge.net54b9c0ac522a275db0bff60e6c75419dc3cd74a7</guid></item><item><title>Creating/Executing components from strings, via Interpreter</title><link>https://sourceforge.net/p/myghty/bugs/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am attempting to compile a myghty template from a string. I'm&lt;br /&gt;
using the interpreter to generate the component from the string data&lt;br /&gt;
(via make_component), and then attemping to execute that&lt;br /&gt;
component via the interpreter (execute). If there is another way of &lt;br /&gt;
doing this, let me know (I noticed this is how Mason describes how &lt;br /&gt;
to do it ;) )&lt;/p&gt;
&lt;p&gt;This is under 0.96f&lt;/p&gt;
&lt;p&gt;The interpreter seems to lose my passed in parameter, possibly&lt;br /&gt;
during the the clone of the interp's request (the first thing execute &lt;br /&gt;
does)??&lt;/p&gt;
&lt;p&gt;I've included a brief snippet of code that will reproduce this. It&lt;br /&gt;
prints out:&lt;/p&gt;
&lt;p&gt;id: 137136108MissingArgument: required argument username not&lt;br /&gt;
found&lt;/p&gt;
&lt;p&gt;file: test.py line 12&lt;/p&gt;
&lt;p&gt;message = interp.execute(comp, username = 'pjenvey')&lt;/p&gt;
&lt;p&gt;test.py:12&lt;/p&gt;
&lt;p&gt;---------------------------------------------&lt;br /&gt;
Original Stack Trace:&lt;br /&gt;
MissingArgument: required argument username not found&lt;/p&gt;
&lt;p&gt;file: /usr/local/lib/python2.3/site-packages/myghty/component.py line&lt;br /&gt;
110&lt;/p&gt;
&lt;p&gt;raise exception.MissingArgument("required argument %s not found"&lt;br /&gt;
% arg)&lt;/p&gt;
&lt;p&gt;/usr/local/lib/python2.3/site-packages/myghty/component.py:110&lt;br /&gt;
/usr/local/lib/python2.3/site-packages/myghty/request.py:389&lt;br /&gt;
/usr/local/lib/python2.3/site-packages/myghty/request.py:253&lt;br /&gt;
/usr/local/lib/python2.3/site-packages/myghty/exception.py:70&lt;br /&gt;
/usr/local/lib/python2.3/site-packages/myghty/request.py:285&lt;br /&gt;
/usr/local/lib/python2.3/site-packages/myghty/interp.py:129&lt;br /&gt;
test.py:12&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Philip Jenvey</dc:creator><pubDate>Sat, 19 Mar 2005 01:37:11 -0000</pubDate><guid>https://sourceforge.net660c824fe92e29369be74cc3fc3c33504823141f</guid></item><item><title>Mod_python error: "PythonHandler myghty.ApacheHandler::handl</title><link>https://sourceforge.net/p/myghty/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have this error below with 0.96a,b but works fine&lt;br /&gt;
with 0.95x&lt;/p&gt;
&lt;p&gt;Mod_python error: "PythonHandler&lt;br /&gt;
myghty.ApacheHandler::handle"&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;/p&gt;
&lt;p&gt;File&lt;br /&gt;
"D:\Python23\lib\site-packages\mod_python\apache.py",&lt;br /&gt;
line 287, in HandlerDispatch&lt;br /&gt;
log=debug)&lt;/p&gt;
&lt;p&gt;File&lt;br /&gt;
"D:\Python23\lib\site-packages\mod_python\apache.py",&lt;br /&gt;
line 454, in import_module&lt;br /&gt;
f, p, d = imp.find_module(parts[i], path)&lt;/p&gt;
&lt;p&gt;ImportError: No module named ApacheHandler&lt;/p&gt;
&lt;p&gt;Any idea why? &lt;br /&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 30 Dec 2004 04:36:01 -0000</pubDate><guid>https://sourceforge.net3bdec1671b55ac6fff9483133171aea49ecf844d</guid></item><item><title>one-line else:/except:/finally: statements glitchy</title><link>https://sourceforge.net/p/myghty/bugs/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;if you write code like this, using ':' lines with the&lt;br /&gt;
statement immediately following it:&lt;/p&gt;
&lt;p&gt;% if foo: m.write('foo')&lt;br /&gt;
% else: m.write('no foo')&lt;/p&gt;
&lt;p&gt;the object generator does the "if:" line correctly, but&lt;br /&gt;
mistakes the "else:" line for an "else:" all by itself,&lt;br /&gt;
and incorrectly decreases the indentation count.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Bayer</dc:creator><pubDate>Wed, 01 Dec 2004 17:50:36 -0000</pubDate><guid>https://sourceforge.net8618bf8c7d80098353eab8b131e8b617e11c3ecc</guid></item><item><title>dhandler decline() broken</title><link>https://sourceforge.net/p/myghty/bugs/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;release .95b has a class instantiation error in&lt;br /&gt;
exceptions.Declined, the dhandler_arg is not set up&lt;br /&gt;
correctly for declined components, calling decline() in&lt;br /&gt;
a root dhandler can create endless loops.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Bayer</dc:creator><pubDate>Wed, 10 Nov 2004 05:12:10 -0000</pubDate><guid>https://sourceforge.netc6eeb79fef7c6dfb2a65208ca2cf335af1c86e43</guid></item></channel></rss>