Transformer inconsistency

4 views
Skip to first unread message

techtonik

unread,
Sep 3, 2010, 3:41:04 PM9/3/10
to Genshi
Hi,

Five year ago I couldn't even think I'll be writing serious letters
with such subjects. Today I've run into another Genshi peculiarity
that I can't explain.

The source at http://paste.lisp.org/display/114200 contains two
identical transformers that insert two signatures into the last two
elements of <tr> parent. The first starts from the root, the second -
from the middle. However, the second transformer manages to insert
only one signature. Here is the output:

>python gentest.py

<tr>
<th class="col1">
<label for="field-cc">Cc:</label>
</th>
<td class="col1">
<span>
<input type="text" id="field-cc"/>
</span>
</td>
<th class="col2">
Aaaa</th>
<td class="col2">
Bbbb</td>
</tr>
-----
<tr>
<th class="col1">
<label for="field-cc">Cc:</label>
</th>
<td class="col1">
<span>
<input type="text" id="field-cc"/>
</span>
</td>
<th class="col2">
</th>
<td class="col2">
Bbbb</td>
</tr>

The question is - how can I construct the transformer to insert both
signatures in the second case?

Thanks.
--
anatoly t.

techtonik

unread,
Sep 7, 2010, 9:10:54 AM9/7/10
to Genshi
Seems like the problem is in Transformer.end() which clears all
selections instead of only the active one. I've filled a bug
http://genshi.edgewall.org/ticket/403 - maybe it will be easier to
review.

Joshua J. Kugler

unread,
Sep 7, 2010, 2:10:04 PM9/7/10
to gen...@googlegroups.com
On Tuesday 07 September 2010, techtonik elucidated thus:

Looks like there was more to this problem than met the eye.

Sorry.

Couldn't resist.

j

--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com - Fairbanks, AK
PGP Key: http://pgp.mit.edu/ �ID 0x73B13B6A

techtonik

unread,
Sep 8, 2010, 3:27:49 AM9/8/10
to Genshi
On Sep 7, 9:10 pm, "Joshua J. Kugler" <jos...@eeinternet.com> wrote:
>
> Looks like there was more to this problem than met the eye.
>
> Sorry.
>
> Couldn't resist.

Thanks for the feedback. It is way better than no feedback at all. =)

--
anatoly t.
Reply all
Reply to author
Forward
0 new messages