Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into maintv2.3.0maint | R. Tyler Ballance | 2009-10-24 | 3 | -29/+47 |
|\ | |||||
| * | remove unnecessary encoding in the default filters, now that everything is a ↵ | Mike Bonnet | 2009-10-18 | 1 | -28/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | unicode object internally There is no longer any value in having the filters return encoded str objects, since they need to be decoded back to unicode before they can be combined with the rest of the template text (which is managed as a unicode object). This patch maintains API compatibility but fundamentally changes the behavior of some of the filters. RawOrEncodedUnicode and EncodeUnicode should be deprecated and removed from the API. Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org> | ||||
| * | Add Template.__unicode__() to return unicode() objects, while ↵ | R. Tyler Ballance | 2009-10-18 | 3 | -2/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Template.__str__() returns encoded str() objects Per my discussion in #cheetah on IRC with mikeb@ regarding the following issue: https://bugzilla.redhat.com/show_bug.cgi?id=529332 This, in addition to recent patches to cheetah/DummyTransaction.py should alleviate migration issues for users still passing a mishmash of unicode()/str() objects into Templates. __str__() should return a str() object, whereas __unicode__() should return a unicode() object. No-op the EncodeUnicode filter when it encounters a unicode() object. | ||||
* | | Remove this generator to work on Python 2.3 | R. Tyler Ballance | 2009-10-15 | 1 | -1/+1 |
| | | |||||
* | | Revert "Bump the version to Cheetah 2.4.0" | R. Tyler Ballance | 2009-10-15 | 1 | -2/+2 |
|/ | | | | This reverts commit 8237cf474f5398ec737c1f9bc511cbb40b7655bb. | ||||
* | Bump the version to Cheetah 2.4.0 | R. Tyler Ballance | 2009-10-15 | 1 | -2/+2 |
| | | | | | Starting the 2.4.xx series to denote base-compatibility with Python 2.4 and up | ||||
* | Remove the encode/decode calls in DummyResponse.write()/getvalue() and take ↵ | R. Tyler Ballance | 2009-10-15 | 1 | -15/+25 |
| | | | | | | | | | | | | | a more optimistic approach Borrowing some concepts from the "slide-compat" branch that I maintain for Slide, Inc. for gracefully handling less-than-ideal string-encoding situations (as is the case for Slide). Making DummyResponse.getvalue() optimistic in trying to u''.join() a list of random string (unicode, str (various encodings)) objects and then only on a UnicodeDecodeError, run through the "safeConvert" function (blech) to handle encoded str() objects | ||||
* | Revert "Use cStringIO instead of array in DummyTransaction" | R. Tyler Ballance | 2009-10-14 | 1 | -18/+7 |
| | | | | | | | | | | | | This reverts commit 9ac5e4c6ed36c3b6b1bc8340fdb69d32db9d98c4. Left some of my previous changes in place; self._outputChunks will deal with only utf-8 encoded strings and then decode them all at the very end Conflicts: cheetah/DummyTransaction.py | ||||
* | Add a simple test to help judge perfomance of DummyTransaction.write() | R. Tyler Ballance | 2009-10-14 | 1 | -0/+17 |
| | |||||
* | Correctly use cStringIO which only deals in bytestrings. | R. Tyler Ballance | 2009-10-14 | 2 | -5/+7 |
| | | | | | | | I'm uncertain if there's any lossiness in encoding a unicode() object 'utf-8' prior to writing to the stream, but this does appear to inadvertantly fix another issue we had with mixing UTF-8 encoded strings and unicode() objects when filling a template. | ||||
* | Use cStringIO instead of array in DummyTransaction | Arun Kumar | 2009-10-14 | 1 | -8/+19 |
| | | | | Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org> | ||||
* | Push Reserved_SearchList onto the Template class object | R. Tyler Ballance | 2009-10-13 | 1 | -2/+2 |
| | | | | Suggested by: aahz@ | ||||
* | Update the printing of the Performance tests | R. Tyler Ballance | 2009-10-12 | 1 | -5/+9 |
| | | | | | I want to print out the directories to ensure that I'm actually testing the code I think I'm testing (*facepalm*) | ||||
* | Cleanup some of this "type()" muckery that's been bugging me. | R. Tyler Ballance | 2009-10-12 | 1 | -57/+45 |
| | | | | The amount of type-checking here is absurd for a duck-typed language | ||||
* | Remove unnecessary dir()/set() calls in Template.__init__() | R. Tyler Ballance | 2009-10-12 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | When running cheetah.Tests.Performance.DynamicMethodCompilationTest with 100000 iterations set, Template.__init__() is the most performance sensitive call. Prior to this commit: ncalls tottime percall cumtime percall filename:lineno(function) 100000 12.558 0.000 15.274 0.000 Template.py:1025(__init__) After this commit: ncalls tottime percall cumtime percall filename:lineno(function) 100000 1.263 0.000 3.541 0.000 Template.py:1025(__init__) That code need not execute every time __init__ is called | ||||
* | Swap out statprof for hotshot profiling with these basic Performance test cases | R. Tyler Ballance | 2009-10-12 | 1 | -10/+11 |
| | |||||
* | implement the popen2.Popen4 interface using the subprocess.Popen backend, to ↵ | Mike Bonnet | 2009-10-12 | 1 | -2/+13 |
| | | | | | | avoid DeprecationWarnings when running the tests on python >= 2.6 Finally got tired of 'em. :) | ||||
* | Bump the version in /next/ to 2.3.0 | R. Tyler Ballance | 2009-10-12 | 1 | -2/+2 |
| | |||||
* | Don't use function decorator syntax for compatibility with Python 2.3v2.2.2 | James Abbatiello | 2009-09-14 | 1 | -1/+2 |
| | |||||
* | Nuke the VerifyType tests since they're largely unnecessary now | R. Tyler Ballance | 2009-09-14 | 1 | -2/+0 |
| | |||||
* | Denote this is the final version of Cheetah v2.2.2 | R. Tyler Ballance | 2009-09-10 | 1 | -1/+1 |
| | |||||
* | Prune a leftover print statement | R. Tyler Ballance | 2009-09-10 | 1 | -1/+0 |
| | |||||
* | Update CheetahWrapper to run the new tests | R. Tyler Ballance | 2009-09-10 | 1 | -6/+8 |
| | |||||
* | Ensure all the EOL tests are run, as well as Filters tests | R. Tyler Ballance | 2009-09-10 | 2 | -20/+25 |
| | |||||
* | Remove references to unittest_local_copy which is quite old and causing problems | R. Tyler Ballance | 2009-09-10 | 7 | -11/+7 |
| | |||||
* | Use logging.info() instead of printing carelessly to stdout | R. Tyler Ballance | 2009-09-10 | 1 | -9/+6 |
| | |||||
* | Remove the use of the verifyType and verifyTypeClass functions for speed | James Abbatiello | 2009-09-03 | 1 | -96/+121 |
| | |||||
* | Remove the use of the valOrDefault function for speed | James Abbatiello | 2009-09-02 | 1 | -29/+24 |
| | |||||
* | Add the VerifyType tests to the runner | R. Tyler Ballance | 2009-09-01 | 3 | -3/+380 |
| | |||||
* | Correct some double encoding issues (regressed in Unicode.JBQ_UTF8_Test8) | R. Tyler Ballance | 2009-09-01 | 1 | -1/+1 |
| | | | | | Regression test courtesy of jbq@ Patch courtesy of mikeb@fedoraproject.org | ||||
* | Add Cheps.py test module | R. Tyler Ballance | 2009-08-31 | 1 | -0/+39 |
| | |||||
* | Add the CHEP related test module in here | R. Tyler Ballance | 2009-08-28 | 1 | -0/+2 |
| | |||||
* | Merge branch 'next' of git://github.com/rtyler/cheetah into next | James Abbatiello | 2009-08-24 | 10 | -93/+375 |
|\ | |||||
| * | Remove the VerifyType module from Test.py, I think I left this on another ↵ | R. Tyler Ballance | 2009-08-14 | 1 | -2/+0 |
| | | | | | | | | machine | ||||
| * | Move src/c/ to cheetah/c/ and update SetupConfig.py appropraitely | R. Tyler Ballance | 2009-08-14 | 5 | -0/+829 |
| | | |||||
| * | Merge branch 'next' into performance | R. Tyler Ballance | 2009-08-14 | 6 | -623/+78 |
| | | | | | | | | | | | | | | | | | | | | | | Left some rename conflicts partially unresolved, need to move src/c/ to cheetah/c/ in the next commit Conflicts: SetupConfig.py cheetah/_namemapper.c src/_namemapper.c src/c/_namemapper.c | ||||
* | | Have setuptools generate .exe wrappers for scripts on Windows | James Abbatiello | 2009-08-04 | 1 | -0/+10 |
|/ | |||||
* | Rename the root package to "cheetah" instead of "src" to follow more ↵ | R. Tyler Ballance | 2009-07-16 | 59 | -0/+20600 |
conventional python package naming |