<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/myghty/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/myghty/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/myghty/bugs/</id><updated>2006-09-02T11:00:53Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>easy_install broken</title><link href="https://sourceforge.net/p/myghty/bugs/19/" rel="alternate"/><published>2006-09-02T11:00:53Z</published><updated>2006-09-02T11:00:53Z</updated><author><name>a zwinkau</name><uri>https://sourceforge.net/u/beza1e1/</uri></author><id>https://sourceforge.net061ff78eeaa52c9b8de129cee497904ee9663b52</id><summary type="html">&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;</summary></entry><entry><title>test/Container.py: unittest fails</title><link href="https://sourceforge.net/p/myghty/bugs/18/" rel="alternate"/><published>2005-10-27T17:59:30Z</published><updated>2005-10-27T17:59:30Z</updated><author><name>Geoffrey T. Dairiki</name><uri>https://sourceforge.net/u/dairiki/</uri></author><id>https://sourceforge.net7d9b883f5503969654184cda3958df3f425bbd86</id><summary type="html">&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;</summary></entry><entry><title>Too much white-space in subcomponent/method output.</title><link href="https://sourceforge.net/p/myghty/bugs/17/" rel="alternate"/><published>2005-09-13T17:47:21Z</published><updated>2005-09-13T17:47:21Z</updated><author><name>Geoffrey T. Dairiki</name><uri>https://sourceforge.net/u/dairiki/</uri></author><id>https://sourceforge.net0688dee8cfec09fb39bb6e07b408810c9a0bfcb2</id><summary type="html">&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;</summary></entry><entry><title>r is not available within &lt;%requestlocal&gt; blocks</title><link href="https://sourceforge.net/p/myghty/bugs/16/" rel="alternate"/><published>2005-09-09T02:50:47Z</published><updated>2005-09-09T02:50:47Z</updated><author><name>Geoffrey T. Dairiki</name><uri>https://sourceforge.net/u/dairiki/</uri></author><id>https://sourceforge.netabb3620ea3a614494ed9bc88b388f6ec147dd040</id><summary type="html">&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;</summary></entry><entry><title>Component.attributes is broken</title><link href="https://sourceforge.net/p/myghty/bugs/15/" rel="alternate"/><published>2005-07-28T03:13:59Z</published><updated>2005-07-28T03:13:59Z</updated><author><name>Geoffrey T. Dairiki</name><uri>https://sourceforge.net/u/dairiki/</uri></author><id>https://sourceforge.net3701bcb6a8382412c59b8820523e845fc1374c74</id><summary type="html">&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;</summary></entry><entry><title>session object does not resemble python mapping type</title><link href="https://sourceforge.net/p/myghty/bugs/14/" rel="alternate"/><published>2005-07-23T13:29:07Z</published><updated>2005-07-23T13:29:07Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net54b9c0ac522a275db0bff60e6c75419dc3cd74a7</id><summary type="html">&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;</summary></entry><entry><title>Creating/Executing components from strings, via Interpreter</title><link href="https://sourceforge.net/p/myghty/bugs/13/" rel="alternate"/><published>2005-03-19T01:37:11Z</published><updated>2005-03-19T01:37:11Z</updated><author><name>Philip Jenvey</name><uri>https://sourceforge.net/u/pjenvey/</uri></author><id>https://sourceforge.net660c824fe92e29369be74cc3fc3c33504823141f</id><summary type="html">&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;</summary></entry><entry><title>Mod_python error: "PythonHandler myghty.ApacheHandler::handl</title><link href="https://sourceforge.net/p/myghty/bugs/12/" rel="alternate"/><published>2004-12-30T04:36:01Z</published><updated>2004-12-30T04:36:01Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3bdec1671b55ac6fff9483133171aea49ecf844d</id><summary type="html">&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;</summary></entry><entry><title>one-line else:/except:/finally: statements glitchy</title><link href="https://sourceforge.net/p/myghty/bugs/11/" rel="alternate"/><published>2004-12-01T17:50:36Z</published><updated>2004-12-01T17:50:36Z</updated><author><name>Mike Bayer</name><uri>https://sourceforge.net/u/zzzeek/</uri></author><id>https://sourceforge.net8618bf8c7d80098353eab8b131e8b617e11c3ecc</id><summary type="html">&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;</summary></entry><entry><title>dhandler decline() broken</title><link href="https://sourceforge.net/p/myghty/bugs/10/" rel="alternate"/><published>2004-11-10T05:12:10Z</published><updated>2004-11-10T05:12:10Z</updated><author><name>Mike Bayer</name><uri>https://sourceforge.net/u/zzzeek/</uri></author><id>https://sourceforge.netc6eeb79fef7c6dfb2a65208ca2cf335af1c86e43</id><summary type="html">&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;</summary></entry></feed>