summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Delete the "old" docs directory to make way for fancy smancy sphinx"docsR. Tyler Ballance2009-11-1686-0/+16663
| | | | This reverts commit 5dc95cfcd015628665d3672e56d0551943b5db6b.
* Prevent Template.compile() from creating classnames with numerous leading ↵R. Tyler Ballance2009-11-161-1/+1
| | | | | | | underscores Issue originally reported by Kirill Uhanov <kirill.uhanov@intel.com> on the mailing list (see: "problem with include directive on cheetah 2.4.0")
* Clean up a swath of fixes suggested by 2to3R. Tyler Ballance2009-11-1629-363/+325
| | | | | Fixes from 2to3 include: xrange, ws_comma, repr, reduce, raise, idioms, has_key, future, filter, exec, callable, apply
* Refactor Cheetah.Parser.ArgListR. Tyler Ballance2009-11-163-24/+72
| | | | | | Added a test for ArgList as well; a large amount of code in Cheetah.Parser could do well to be cleaned up, but perhaps another day.
* Space-ify the tabs for Cheetah.Tools.SiteHierarchyR. Tyler Ballance2009-11-161-151/+136
|
* Update Template.py with @classmethod decoratorsR. Tyler Ballance2009-11-161-11/+9
|
* Refactor CheetahWrapper tests to locate my local cheetah/cheetah-compile in ↵R. Tyler Ballance2009-11-162-5/+88
| | | | | | | my PATH Adding the "buildandrun" shortcut script so to easily rerun the full test suite locally; usage: ./buildandrun cheetah/Tests/Test.py
* Refactor usage of the "types" module out, per 2to3 -f typesR. Tyler Ballance2009-11-1615-1379/+49
| | | | | Left out cheetah/Template.py which will need to be refactored a bit more aggressively, particularly in Template.compile()
* Refactor raw print statements in accordance with 2to3R. Tyler Ballance2009-11-1622-120/+101
| | | | | Removed prints in a couple places entirely, some of this code should likely use the `logging` module instead
* Add --quiet option and use it to suppress messages from the Unicode testsJames Abbatiello2009-11-162-3/+3
|
* remove unnecessary encoding in the default filters, now that everything is a ↵Mike Bonnet2009-10-181-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 Ballance2009-10-183-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.
* Merge branch 'next'R. Tyler Ballance2009-10-157-83/+125
|\ | | | | | | | | | | | | Conflicts: cheetah/Template.py cheetah/Tests/Performance.py cheetah/Version.py
| * Bump the version to Cheetah 2.4.0R. Tyler Ballance2009-10-151-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 Ballance2009-10-151-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 Ballance2009-10-141-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 Ballance2009-10-141-0/+17
| |
| * Correctly use cStringIO which only deals in bytestrings.R. Tyler Ballance2009-10-142-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 DummyTransactionArun Kumar2009-10-141-8/+19
| | | | | | | | Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
| * Push Reserved_SearchList onto the Template class objectR. Tyler Ballance2009-10-131-2/+2
| | | | | | | | Suggested by: aahz@
| * Merge commit 'origin/next' into nextR. Tyler Ballance2009-10-120-0/+0
| |\
| | * Rename the README to reflect formattingR. Tyler Ballance2009-09-201-0/+0
| | |
| | * Merge branch 'master' into nextR. Tyler Ballance2009-09-202-377/+0
| | |\
| | * | implement the popen2.Popen4 interface using the subprocess.Popen backend, to ↵Mike Bonnet2009-09-171-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.0R. Tyler Ballance2009-09-172-2/+5
| | | |
| * | | Update the printing of the Performance testsR. Tyler Ballance2009-10-121-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 Ballance2009-10-121-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 Ballance2009-10-121-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 casesR. Tyler Ballance2009-10-121-10/+11
| | | |
| * | | Prune sbin directory; these tools are no longer part of the release processR. Tyler Ballance2009-10-122-19/+0
| | | |
| * | | Rename the README to reflect formattingR. Tyler Ballance2009-10-121-0/+0
| | | |
| * | | implement the popen2.Popen4 interface using the subprocess.Popen backend, to ↵Mike Bonnet2009-10-121-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.0R. Tyler Ballance2009-10-122-2/+5
| | |/ | |/|
* | | Update the version for a maintenance releasev2.2.3R. Tyler Ballance2009-10-151-2/+2
| | |
* | | Remove unnecessary dir()/set() calls in Template.__init__()R. Tyler Ballance2009-10-151-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 casesR. Tyler Ballance2009-10-151-10/+11
| | |
* | | Prune sbin directory; these tools are no longer part of the release processR. Tyler Ballance2009-10-152-19/+0
| | |
* | | Rename the README to reflect formattingR. Tyler Ballance2009-10-151-0/+0
|/ /
* | I meant to kill this directory long agoR. Tyler Ballance2009-09-202-377/+0
|/
* Don't use function decorator syntax for compatibility with Python 2.3v2.2.2James Abbatiello2009-09-141-1/+2
|
* Update the MANIFEST.in to reflect the src/ -> cheetah/ moveR. Tyler Ballance2009-09-141-2/+2
|
* Nuke the VerifyType tests since they're largely unnecessary nowR. Tyler Ballance2009-09-141-2/+0
|
* Disable these C modules since they're of marginal utility to be honestR. Tyler Ballance2009-09-141-6/+6
|
* Make `setup.py install` skip C extensions if they can't be builtJames Abbatiello2009-09-111-1/+47
|
* Update the CHANGES for v2.2.2R. Tyler Ballance2009-09-101-1/+9
|
* Denote this is the final version of Cheetah v2.2.2R. Tyler Ballance2009-09-101-1/+1
|
* Prune a leftover print statementR. Tyler Ballance2009-09-101-1/+0
|
* Update CheetahWrapper to run the new testsR. Tyler Ballance2009-09-101-6/+8
|
* Ensure all the EOL tests are run, as well as Filters testsR. Tyler Ballance2009-09-102-20/+25
|
* Remove references to unittest_local_copy which is quite old and causing problemsR. Tyler Ballance2009-09-107-11/+7
|