Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1441 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Try xml.etree from python 2.5 if elementtree is not available

Reported by: geser Owned by: anonymous
Priority: normal Milestone: 1.0.3
Component: TurboGears Version: 1.0.2
Severity: normal Keywords:
Cc:

Description

As elementtree got included in python 2.5, Ubuntu (and Debian) doesn't provide elementtree for python 2.5 anymore (only for 2.4).

This makes "tg-admin info" fail with an ImportError?.

The attached patch tries to import xml.etree if importing elementtree fails.

If this patch is ok, I'll include it in Ubuntu's turbogears package.

This patch is for the 1.0 branch, but should also apply for the 1.1 branch.

Attachments

xml.etree.diff Download (1018 bytes) - added by geser 12 years ago.
Patch to import xml.etree if importing elementtree fails
xml.etree2.diff Download (1.1 KB) - added by faide 12 years ago.
Cleaned-up version

Change History

Changed 12 years ago by geser

Patch to import xml.etree if importing elementtree fails

comment:1 Changed 12 years ago by faide

Thanks for pointing this out! This is fixed in r3262 (1.0.3dev) and r3263 (1.1dev)

Changed 12 years ago by faide

Cleaned-up version

comment:2 Changed 12 years ago by faide

  • Status changed from new to closed
  • Resolution set to fixed

I also attached to commit diff I produced because it is slightly different from the original

Note: See TracTickets for help on using tickets.