summaryrefslogtreecommitdiff
path: root/cheetah
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3 from mikola/masterHEADmasterbaserock/morphR. Tyler Croy2012-12-171-1/+1
|\ | | | | Avoid creating an invalid class name
| * Avoid creating an invalid class name for the file on the path where the ↵mikola2012-10-221-1/+1
| | | | | | | | first folder name starts with a number, e.g. c:\10folder\code\sample.tmpl
* | fixing validation logic in template initializationDarren Yin2012-11-291-1/+1
|/
* Fixed a `TypeError` caused because of `unicode` issues in python 2.7.xLakshmi Vyasarajan2012-01-262-2/+6
|
* Apply patch to fix another UnicodeEncodeErrornextR. Tyler Croy2011-04-221-2/+6
| | | | | | | Reported by Carles Muñoz Gorriz in the Debian bug tracker: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584966> Change-Id: Ic6db91b5da9966eaf5b26e2d7170e667915d57c2
* make it possible to force file encoding via the command lineEvan Klitzke2010-12-122-1/+10
|
* Check our call to PyObject_GetAttrString() to make sure it returns a ↵R. Tyler Croy2010-12-121-14/+25
| | | | | | | | non-NULL value Should resolve issue: #6 Change-Id: Ie1fd42a9719d50e0baa600e3563ac50159201dc9
* Fix EOL tests for Python 2.7R. Tyler Croy2010-12-121-3/+3
| | | | | | Patch from: Mike Bonnet <mikeb@redhat.com> Change-Id: I3a3a3e57c1c94cac0ee020e41882b86dc9a4d4be
* Force tests to exit with a non-zero return code on failure when running ↵R. Tyler Croy2010-12-121-3/+4
| | | | | | | | `cheetah test` Patch from: Mike Bonnet <mikeb@redhat.com> Change-Id: Ie20348e1272d6102381c467e414bd176bbc2b9b9
* sys.version_info isn't a tuple in 2.7. Fix version check in Template.pyJon Siddle2010-12-121-1/+1
|
* Bump the version for the next series of developmentR. Tyler Croy2010-09-161-2/+2
| | | | Change-Id: I04a6df632c2b0c95128ef78a766514f2da5e756a
* Added test and fix for segfault in namemapper where exception is thrown by ↵Jon Siddle2010-09-152-5/+19
| | | | __getattr__.
* Use `itervalues()` when iterating over cache regionsR. Tyler Ballance2010-06-241-2/+2
| | | | | | Suggested by Simon Koenig <simjoko@gmail.com> Change-Id: Ie18c8d9d82b55124440fc2aad508c9525d766a89
* Properly generate a PYTHONPATH and locate the cheetah executable for ↵R. Tyler Ballance2010-03-211-6/+12
| | | | | | | | CheetahWrapper tests On FreeBSD particularly, the tempfile.mktemp() heavily sandboxes the process into /tmp/ somewhere. Finding absolute paths to the cheetah process and the Cheetah/ directory is necessary to properly run the tests
* Increment version for next series of developmentR. Tyler Ballance2010-02-071-2/+2
|
* Mark v2.4.2v2.4.2R. Tyler Ballance2010-02-071-1/+1
|
* Fix regression in the pure Python NameMapperR. Tyler Ballance2010-01-311-1/+1
| | | | | Introduced the regression in `a0c6979` when cleaning up imports.
* Tidying up whitespaceR. Tyler Ballance2010-01-311-27/+17
|
* Denote that we're working on 2.4.2rc2 nowR. Tyler Ballance2010-01-311-4/+4
|
* Tag a 2.4.2 candidate releaseR. Tyler Ballance2010-01-271-1/+1
|
* Gut the old WebWare-servlet code from Cheetah.ServletR. Tyler Ballance2010-01-271-72/+8
| | | | | | Apparently the attempted import might be to blame for some slowness when importing on Mac OS X which has a (large-ish) WebKit python module available.
* Find the #encoding directive even if it's after a comment (for example)R. Tyler Ballance2010-01-272-1/+7
| | | | | | | Added a test and applied Juan's patch, everything seems to check out alright with it Reported-by: Juan Fiol <fiolj@yahoo.com>
* Handle Python3's `slice` objects in SourceReaderR. Tyler Ballance2010-01-031-28/+5
|
* Import __builtin__ in generated template code in a compatible way with 2 and 3R. Tyler Ballance2010-01-032-4/+17
|
* Support difference between types.MethodType constructors in Python2 vs. Python3R. Tyler Ballance2010-01-031-12/+13
|
* Add types.FileType shim compat for 3.xxR. Tyler Ballance2009-12-301-2/+10
|
* Correct references to string.letters and string.translate not caught by 2to3R. Tyler Ballance2009-12-271-4/+9
|
* Remove references to the `new` moduleR. Tyler Ballance2009-12-275-46/+23
|
* Remove old bundled memcached clientR. Tyler Ballance2009-12-272-623/+1
|
* Since functions are properly objects in Python 3, need to start detecting ↵R. Tyler Ballance2009-12-271-23/+27
| | | | them differently for auto-calling
* NameMapperTest.failureException cannot be a tupleR. Tyler Ballance2009-12-271-1/+1
|
* Fix implicit relative import of _namemapperR. Tyler Ballance2009-12-271-1/+1
|
* Prune unnecessary 'types' import in Namemapper.pyR. Tyler Ballance2009-12-271-4/+1
|
* Prune some more stale code, get _namemapper.c building on Python 2 and 3R. Tyler Ballance2009-12-271-12/+41
|
* Code using 'INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS' has been turned ↵R. Tyler Ballance2009-12-272-22/+2
| | | | off for some time, killing it
* Move macros into header fileR. Tyler Ballance2009-12-272-41/+35
|
* Start cleaning up _namemapper.c for Python 3 supportR. Tyler Ballance2009-12-272-291/+325
|
* Correct issue tested with SubclassSearchListTestR. Tyler Ballance2009-12-261-0/+12
| | | | | | | | | Subclasses (in Python) of Template failed to properly propogate attributes into the dyanmically compiled templates that were created with them as per: http://www.cheetahtemplate.org/docs/users_guide_html_multipage/gettingStarted.tutorial.html Issue reported by dhaivat.
* Add regression test for dynamically compiled subclasses of TemplateR. Tyler Ballance2009-12-261-0/+10
|
* Bump version for next development cycleR. Tyler Ballance2009-12-261-2/+2
|
* Bump the version numberR. Tyler Ballance2009-12-191-2/+2
|
* Add a test to verify the use of getVar and write inside of a PSPR. Tyler Ballance2009-12-191-1/+17
|
* Refactor the InlineSpanishTest to better clarify a success/failure scenarioR. Tyler Ballance2009-12-161-5/+16
|
* Add a test to verify escaped entities in #raw blocksR. Tyler Ballance2009-12-151-0/+6
| | | | Related to 0cc9f78 and 70c9bd4
* only split multiline strings in output code at repr generated breaksDoug Knight2009-12-142-24/+26
| | | | Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
* move handling of escaped variables and directives to the parserDoug Knight2009-12-142-16/+16
| | | | | | | | | Once text reaches the compiler, it is too late to parse escaped variables and directives. The compiler does not know where the text came from, and can not determine when it should skip processing of escape sequences for raw blocks. Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
* Add another unicode testR. Tyler Ballance2009-12-141-0/+28
| | | | | | | This is based off an IRC conversation in #cheetah which I've honestly forgotten what the bug was when I wrote the test case. Pech gehabt.
* Print the files we're analyzingR. Tyler Ballance2009-11-181-0/+1
|
* Correct relative imports of test modulesR. Tyler Ballance2009-11-181-11/+11
|
* Add DirectiveAnalyzer tests to suiteR. Tyler Ballance2009-11-181-0/+2
|