Bug 474090
Summary: | Cheetah does not understand all arguments for python-2.5+ import hooks | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Toshio Ernie Kuratomi <a.badger> | ||||
Component: | python-cheetah | Assignee: | Mike Bonnet <mikeb> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | mikeb, tyler | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-03-23 19:35:32 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Toshio Ernie Kuratomi
2008-12-02 06:48:28 UTC
Can you please supply either a valid patch, valid test case for the issue (or both!). I'm not entirely certain how to reproduce the error such that I can fix it in the next release of Cheetah Community Edition. Cheers. test case would be: Make sure you're running with python-2.6 (so that the re module has the code that causes cheetah problems) install cheetah from source. python /usr/lib/python2.6/site-packages/CheetahTests/Test.py This should issue an exception in the test suite. I'll attach the patch we're using. Created attachment 336241 [details] Patch to add level argument to importHook This is the patch we're using. It simply adds the level argument but doesn't do anything with it. This is enough to fix the unit tests but cheetah doesn't actually conform to the importHook spec until it does something with that argument. Information on the signature for the new importHook is here:: http://www.python.org/doc/2.5.2/lib/built-in-funcs.html I have committed a slightly modified version of this patch into the Cheetah Community Edition git repository, in the "next" branch which can be found here: http://github.com/rtyler/cheetah/tree/next The next version of Cheetah CE will be v2.1.1 and is slated for release on April 16th. Thanks! I'll close this as we're patched to work and the patch has been merged upstream. |