Your message dated Sat, 15 Sep 2007 18:32:08 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#433192: fixed in turbogears 1.0.3.2-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-turbogears
Version: 1.0.2.2-1
Severity: normal
Tags: patch

Hi,

turbogears uses elementtree. As elementtree was included in python2.5
the python-elementtree doesn't support python2.5. Therefore the imports
in turbogears needs to be fixed to import the correct module when
running with python2.5.

I've filed upstream a bug report about it:
http://trac.turbogears.org/ticket/1441
The attached patch tries to import xml.etree first and fall-backs to
importing elementtree. It was applied into upstream svn as rev3262:
http://trac.turbogears.org/changeset/3262

Michael
Index: turbogears/command/i18n.py
===================================================================
--- turbogears/command/i18n.py	(revision 3250)
+++ turbogears/command/i18n.py	(working copy)
@@ -10,7 +10,12 @@
 import optparse
 import tempfile
 
-from elementtree.ElementTree import ElementTree
+try:
+    # try the python 2.5 way
+    from xml.etree.cElementTree import ElementTree, XML
+except ImportError:
+    # then try the python 2.4 way
+    from elementtree.ElementTree import ElementTree
 
 import formencode
 import turbogears
Index: turbogears/toolbox/admi18n/pygettext.py
===================================================================
--- turbogears/toolbox/admi18n/pygettext.py	(revision 3250)
+++ turbogears/toolbox/admi18n/pygettext.py	(working copy)
@@ -169,7 +169,13 @@
 import operator
 import codecs
 
-from elementtree.ElementTree import ElementTree, XML
+try:
+    # try the python 2.5 way
+    from xml.etree.cElementTree import ElementTree, XML
+except ImportError:
+    # then try the python 2.4 way
+    from elementtree.ElementTree import ElementTree, XML
+
 from turbogears.util import fixentities
 
 __version__ = '1.5'

--- End Message ---
--- Begin Message ---
Source: turbogears
Source-Version: 1.0.3.2-1

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

python-turbogears_1.0.3.2-1_all.deb
  to pool/main/t/turbogears/python-turbogears_1.0.3.2-1_all.deb
turbogears_1.0.3.2-1.diff.gz
  to pool/main/t/turbogears/turbogears_1.0.3.2-1.diff.gz
turbogears_1.0.3.2-1.dsc
  to pool/main/t/turbogears/turbogears_1.0.3.2-1.dsc
turbogears_1.0.3.2.orig.tar.gz
  to pool/main/t/turbogears/turbogears_1.0.3.2.orig.tar.gz



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.
Gustavo Noronha Silva <[EMAIL PROTECTED]> (supplier of updated turbogears 
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: SHA1

Format: 1.7
Date: Sat, 15 Sep 2007 15:01:20 -0300
Source: turbogears
Binary: python-turbogears
Architecture: source all
Version: 1.0.3.2-1
Distribution: unstable
Urgency: low
Maintainer: Gustavo Noronha Silva <[EMAIL PROTECTED]>
Changed-By: Gustavo Noronha Silva <[EMAIL PROTECTED]>
Description: 
 python-turbogears - Python-based web framework
Closes: 415909 433192 434443 439370
Changes: 
 turbogears (1.0.3.2-1) unstable; urgency=low
 .
   * New upstream release (Closes: #439370, #434443)
   - includes the xml.etree patch (Closes: #433192)
   - includes fix for the mismatch between the identity model classes and
     the tables used by toolbox (Closes: #415909)
   * 01_disable_requirements.diff,
     02_sqlalchemy_default_if_no_correct_sqlobject.diff,
     03_sqlalchemy_identity_toolbox_fixup.diff:
   - updated to match new version
   * debian/patches/05_xml_etree.diff:
   - removed; no longer needed, since it has been applied upstream
   * debian/patches/04_keep_using_pyprotocols.diff, debian/control:
   - removed; now we're able to use the newest python-decoratortools package;
   - also depend on the new package, thus
Files: 
 e1be90bfbf915e2f076b902f1733cfbc 839 python optional turbogears_1.0.3.2-1.dsc
 75471c1767af970479ca2d4788a30323 762552 python optional 
turbogears_1.0.3.2.orig.tar.gz
 31b6509e764cf56a395d9e2e2f8ebb6f 8221 python optional 
turbogears_1.0.3.2-1.diff.gz
 67abfa05328a44a3a136d7a370313965 1082264 python optional 
python-turbogears_1.0.3.2-1_all.deb

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

iD8DBQFG7CJIt1anjIgqbEsRAutRAKDT6QhRHAFTarKc9aSF96aVdBTPRACfZZrl
PEFXyf9ch5ewAYZznBFFfIc=
=KfEo
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to