Your message dated Sat, 14 Dec 2013 18:00:07 +0000
with message-id <[email protected]>
and subject line Bug#673935: fixed in genshi 0.7-1
has caused the Debian Bug report #673935,
regarding python-genshi: py:match templates not applied to all elements that 
match XPath expression
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
673935: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673935
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-genshi
Version: 0.6-2
Severity: important
Tags: upstream

Hello,

I noticed that python-genshi does not correctly apply py:match templates with
XPath expressions that match elements that are children of another element.
Instead of applying the template to all children, it is only applied to the
first child:

--- sample program 
---------------------------------------------------------------------
from genshi.template import MarkupTemplate

template = """<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:py="http://genshi.edgewall.org/";
            lang="en">
    <py:match path="//ul/li/span" 
recursive="true"><span>replaced-span</span></py:match>
    <head>
    </head>
    <body>
        <ul>
            <li>1 <span>test span</span> 2</li>
            <li>3 <span>test span</span> 4</li>
            <li>5 <span>test span</span> 6</li>
            <li>7 <span>test span</span> 8</li>
            <li>9 <span>test span</span> 10</li>
        </ul>
    </body>
</html>
"""

tmpl = MarkupTemplate(template)
stream = tmpl.generate(name='world')
print(stream.render('xhtml'))
----------------------------------------------------------------------------------------

--- sample output 
----------------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en">
    <head>
    </head>
    <body>
        <ul>
            <li>1 <span>replaced-span</span> 2</li>
            <li>3 <span>test span</span> 4</li>
            <li>5 <span>test span</span> 6</li>
            <li>7 <span>test span</span> 8</li>
            <li>9 <span>test span</span> 10</li>
        </ul>
    </body>
</html>
----------------------------------------------------------------------------------------

The expected behaviour in this case would have been application of the template
to all spans within the list items.

This bug is known upstream (scroll down to the comments for illustration of
this particular effect):
http://genshi.edgewall.org/ticket/370

It has been patched in the genshi trunk and the 0.6.x development branch:
http://genshi.edgewall.org/changeset/1170
http://genshi.edgewall.org/changeset/1171

Unfortunately it seems that no patched stable release of genshi has been
released upstream yet.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (710, 'testing'), (700, 'testing'), (610, 'unstable'), (600, 
'unstable'), (500, 'experimental'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.15-desktop (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-genshi depends on:
ii  libc6      2.13-30
ii  python     2.7.2-10
ii  python2.6  2.6.7-4
ii  python2.7  2.7.2-8

python-genshi recommends no packages.

Versions of packages python-genshi suggests:
ii  doc-base              0.10.3
ii  python-genshi-doc     <none>
ii  python-pkg-resources  0.6.24-1



--- End Message ---
--- Begin Message ---
Source: genshi
Source-Version: 0.7-1

We believe that the bug you reported is fixed in the latest version of
genshi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry Warsaw <[email protected]> (supplier of updated genshi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 04 Dec 2013 12:13:02 -0500
Source: genshi
Binary: python-genshi python3-genshi python-genshi-doc
Architecture: source amd64 all
Version: 0.7-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Barry Warsaw <[email protected]>
Description: 
 python-genshi - Python XML-based template engine
 python-genshi-doc - Python XML-based template engine (documentation and 
examples)
 python3-genshi - Python XML-based template engine
Closes: 673935 713747 731280
Changes: 
 genshi (0.7-1) unstable; urgency=low
 .
   [ Barry Warsaw ]
   * Team upload.
     - Closes: #673935
   * New upstream release.  Closes: #731280
     - Closes: #713747 (FTBFS)
     - Closes: #673935 (py:match templates patch applied upstream).
   * d/control:
     - With maintainer permission, put DPMT in Maintainers, moved Arnaud to
       Uploaders, and added Barry to the latter.
     - Add python3-genshi binary package.
     - Update Build-Depends for pybuild and remove cdbs.
     - Standards-Version: 3.9.5 with no further changes needed.
     - Add X-Python3-Version header.
     - wrap-and-sort
   * d/rules:
     - Switch to pybuild and add Python 3 support as a byproduct.
     - Removed cdbs and simplified.
   * d/watch: Updated
   * d/compat: Update to v8.
   * d/patches/fix_tests_failure_with_python27.patch: Updated.
 .
   [ Jakub Wilk ]
   * Use canonical URIs for Vcs-* fields.
Checksums-Sha1: 
 28e1e66ddbcd2a65c66442b60804a6b127f00e02 2170 genshi_0.7-1.dsc
 f34b762736d2814bcdea075f6b01b9de6c61aa61 491579 genshi_0.7.orig.tar.gz
 194bd6fbd1a00127a10cfdab88850f3d5c24302c 5737 genshi_0.7-1.debian.tar.gz
 9dd7251d96592075fd71ed9db487cfaf54a34cf7 135178 python-genshi_0.7-1_amd64.deb
 b92a2419e26f3e4a200ed45a596c10e94edf463e 133330 python3-genshi_0.7-1_amd64.deb
 91d410113f4cab5d7a65587db37c7504c8f7dd7d 247048 python-genshi-doc_0.7-1_all.deb
Checksums-Sha256: 
 b58dcd73af747581da321e049ee1a3691ff62309d225760263df769dd126d8ab 2170 
genshi_0.7-1.dsc
 1d154402e68bc444a55bcac101f96cb4e59373100cc7a2da07fbf3e5cc5d7352 491579 
genshi_0.7.orig.tar.gz
 d85bb43468b126d6c9994bfce934e2cb45bf98019d49e7230cdc2377c9451b8f 5737 
genshi_0.7-1.debian.tar.gz
 c97c7cdc6ba60317444260a5249da1481cbcde5095a46a65aaadced7af25b141 135178 
python-genshi_0.7-1_amd64.deb
 315e72ec97ea51477de6527bfde005eee7185d212728c23dad6a2a699817a934 133330 
python3-genshi_0.7-1_amd64.deb
 69ac708ee49c30685308ed8cc7e73c51473a0f4830b0e32d3d938998c07fcceb 247048 
python-genshi-doc_0.7-1_all.deb
Files: 
 246fd9732d5b240e350063d141a39973 2170 python optional genshi_0.7-1.dsc
 54e64dd69da3ec961f86e686e0848a82 491579 python optional genshi_0.7.orig.tar.gz
 9a03d63cc3a4ac028930eeda3d660ae4 5737 python optional 
genshi_0.7-1.debian.tar.gz
 527f3c5fc9e1883d8d40c50a57990fe4 135178 python optional 
python-genshi_0.7-1_amd64.deb
 edb7a05ceb113e6e1b5404954dc5ad48 133330 python optional 
python3-genshi_0.7-1_amd64.deb
 a515849eae091acf3b9b90ebdde21bea 247048 doc optional 
python-genshi-doc_0.7-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBCAAGBQJSqz8lAAoJEBJutWOnSwa/NHIP/RCo9zYxrCUuaj4iGG444OpL
nICsdXliMvtcXbI5Sd2uA4uiWfzhjTqQlNEfea017/ioissgKWPfpfovc/+CP3/O
/8CSbvU87W8KyVZ6eZesq5f0D6PHLdKtp6ubYSJOddYppVAZOuBJr9E+oyXD0d/i
b6zflFOYY4Hrw/olk5Jl8eScH34Q3/qwnVst3D9PJt1Yn2gyJxv1xSn8fEdupHNj
PQJbVuMVZxFFmRm0hfkz9AG+QXuRrtOhaSDoG/YNHbiJCRaLLFlVYBtEgJzsI3Nm
ecLa6roXjLozDQj0POjJVCrNzJG91iHxohjsLte816KSkYaZkOFQEbXCkDnag6Uw
qi4WSgt8U93JOAioPG3mp0wkNtu4Tbsg2tVbgpzNOH/o6e4y6w77tIJV9bcOdzoz
atOHsUvGdzhwcoFkcicaaF6xHD58aECghmZAaAAgO9R+Q067ILioNal8LInFImfM
5E4ln2wgwVLWvveIA5HtaWBNLNxS3FzLCqSDrWWS1ljiJZb4L4wGkE7tdAFtpPmP
yV6YeX0oP76ItF+6MpyKhEBzx8aYfvwJAn/Lb/2H1xQGXhDtFvrxc5icrCvX4lhb
ap7mjKIr+26mRSLz30BqoK+rzr1Nza/fLA2q0qqvqx8Mbi5V2sCESek9+tqeARhe
kVIRxrqrgWB8Q6/uct22
=QX5i
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to