Commit Graph

1901 Commits

Author SHA1 Message Date
R. Tyler Croy 073876f66e Apply patch to fix another UnicodeEncodeError
Reported by Carles Muñoz Gorriz in the Debian bug tracker:
    <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584966>

Change-Id: Ic6db91b5da9966eaf5b26e2d7170e667915d57c2
2011-04-22 17:12:56 -07:00
Evan Klitzke 1f3e4ed66a make it possible to force file encoding via the command line 2010-12-12 20:00:47 -08:00
R. Tyler Croy e8352935d0 Check our call to PyObject_GetAttrString() to make sure it returns a non-NULL value
Should resolve issue: #6

Change-Id: Ie1fd42a9719d50e0baa600e3563ac50159201dc9
2010-12-12 19:58:24 -08:00
R. Tyler Croy 86229c10e2 Fix EOL tests for Python 2.7
Patch from: Mike Bonnet <mikeb@redhat.com>

Change-Id: I3a3a3e57c1c94cac0ee020e41882b86dc9a4d4be
2010-12-12 19:46:52 -08:00
R. Tyler Croy 4fc4045062 Force tests to exit with a non-zero return code on failure when running `cheetah test`
Patch from: Mike Bonnet <mikeb@redhat.com>

Change-Id: Ie20348e1272d6102381c467e414bd176bbc2b9b9
2010-12-12 19:46:10 -08:00
R. Tyler Croy e9b2d300fc Avoid setuptools warning
Patch from: Mike Bonnet <mikeb@redhat.com>

Change-Id: Ia1e97422867df55686985f6cb44c000a1322531b
2010-12-12 19:45:36 -08:00
Jon Siddle 6ac031ab0f sys.version_info isn't a tuple in 2.7. Fix version check in Template.py 2010-12-12 19:38:34 -08:00
R. Tyler Croy f8e2a8ea51 Bump the version for the next series of development
Change-Id: I04a6df632c2b0c95128ef78a766514f2da5e756a
2010-09-16 13:04:52 -07:00
Jon Siddle 0287a0833c Added test and fix for segfault in namemapper where exception is thrown by __getattr__. 2010-09-15 10:52:11 -07:00
R. Tyler Ballance a969475248 Use `itervalues()` when iterating over cache regions
Suggested by Simon Koenig <simjoko@gmail.com>

Change-Id: Ie18c8d9d82b55124440fc2aad508c9525d766a89
2010-06-24 11:48:45 -07:00
R. Tyler Ballance d5e6ce9720 Add a hidden environment flag to break builds when the C extensions fail
Change-Id: Ic3e30db0911d1899c30a955b5fd692da1be7f7c7
2010-06-24 11:48:45 -07:00
R. Tyler Ballance 8724436c90 Properly generate a PYTHONPATH and locate the cheetah executable for 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
2010-03-21 20:29:16 -07:00
R. Tyler Ballance 7ab7f51887 Merge branch 'master' into next
Conflicts:
	cheetah/Version.py

Change-Id: I90bb7469ef5fedbd07c28804fb13c4a818b121a4
2010-02-28 21:01:28 -08:00
R. Tyler Ballance a28fcc76ba Denote that this is v2.4.2.1 2010-03-01 04:58:26 -08:00
R. Tyler Ballance b29d0e1e5f Include header files in the source distribution 2010-03-01 04:56:31 -08:00
R. Tyler Ballance a1957504ab Increment version for next series of development 2010-02-07 22:47:52 -08:00
R. Tyler Ballance d20b523d30 Mark v2.4.2 2010-02-07 20:17:17 -08:00
R. Tyler Ballance 62f5a2fe99 Fix regression in the pure Python NameMapper
Introduced the regression in `a0c6979` when cleaning up
imports.
2010-01-31 18:22:42 -08:00
R. Tyler Ballance 6a42520b8f Tidying up whitespace 2010-01-31 18:22:24 -08:00
R. Tyler Ballance 97c0b6580c Denote that we're working on 2.4.2rc2 now 2010-01-31 18:18:52 -08:00
R. Tyler Ballance d28a4d9c90 Tag a 2.4.2 candidate release 2010-01-27 20:47:10 -08:00
R. Tyler Ballance 0eead16006 Gut the old WebWare-servlet code from Cheetah.Servlet
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.
2010-01-27 20:43:05 -08:00
R. Tyler Ballance 5d931545fc Find the #encoding directive even if it's after a comment (for example)
Added a test and applied Juan's patch, everything seems to check out
alright with it

Reported-by: Juan Fiol <fiolj@yahoo.com>
2010-01-27 20:39:01 -08:00
R. Tyler Ballance 46df95cf55 Handle Python3's `slice` objects in SourceReader 2010-01-03 14:08:33 -08:00
R. Tyler Ballance 020059f74d Import __builtin__ in generated template code in a compatible way with 2 and 3 2010-01-03 13:42:57 -08:00
R. Tyler Ballance dd56eea737 Support difference between types.MethodType constructors in Python2 vs. Python3 2010-01-03 13:23:28 -08:00
R. Tyler Ballance 189eaa59f1 Add types.FileType shim compat for 3.xx 2009-12-30 23:40:09 -08:00
R. Tyler Ballance ed60164ecb Correct references to string.letters and string.translate not caught by 2to3 2009-12-27 16:58:45 -08:00
R. Tyler Ballance 0900226c99 Remove references to the `new` module 2009-12-27 16:55:57 -08:00
R. Tyler Ballance 1ee4ba40d6 Remove old bundled memcached client 2009-12-27 16:41:45 -08:00
R. Tyler Ballance 142b8343f9 Since functions are properly objects in Python 3, need to start detecting them differently for auto-calling 2009-12-27 15:55:52 -08:00
R. Tyler Ballance 0c35ef91d0 NameMapperTest.failureException cannot be a tuple 2009-12-27 15:55:46 -08:00
R. Tyler Ballance 2a7231b583 Fix implicit relative import of _namemapper 2009-12-27 15:55:38 -08:00
R. Tyler Ballance a0c6979f8f Prune unnecessary 'types' import in Namemapper.py 2009-12-27 15:55:31 -08:00
R. Tyler Ballance f1032b54cc Prune some more stale code, get _namemapper.c building on Python 2 and 3 2009-12-27 15:55:26 -08:00
R. Tyler Ballance 90e832d33f Code using 'INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS' has been turned off for some time, killing it 2009-12-27 15:55:19 -08:00
R. Tyler Ballance 571608122f Move macros into header file 2009-12-27 15:55:13 -08:00
R. Tyler Ballance 61c539dec0 Start cleaning up _namemapper.c for Python 3 support 2009-12-27 15:55:08 -08:00
R. Tyler Ballance 2ce00d1867 Prune use of the 'apply()' function, deprecated since 2.3
Conflicts:

	SetupTools.py
2009-12-26 22:22:51 -08:00
R. Tyler Ballance 9b2cbb3b3c Refactor run_setup() to prevent resizing the dict during iteration 2009-12-26 22:22:16 -08:00
R. Tyler Ballance ebf6146915 Prune 'del' of a variable from the list comprehension 2009-12-26 22:22:10 -08:00
R. Tyler Ballance 4277a7adf5 Update download page for v2.4.1 2009-12-26 14:52:24 -08:00
R. Tyler Ballance 4c6a28883f Update Sphinx config for new dev cycle/year 2009-12-26 14:48:13 -08:00
R. Tyler Ballance 00264b6f26 Fix Sphinx doc generation error 2009-12-26 14:42:02 -08:00
R. Tyler Ballance 7145ff6c46 Remove optik related document 2009-12-26 14:41:42 -08:00
R. Tyler Ballance 43d7cbe361 Correct issue tested with SubclassSearchListTest
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.
2009-12-26 14:31:09 -08:00
R. Tyler Ballance 5b32df45da Add regression test for dynamically compiled subclasses of Template 2009-12-26 14:02:58 -08:00
R. Tyler Ballance 837d26cb8c Bump version for next development cycle 2009-12-26 12:39:46 -08:00
R. Tyler Ballance df519b24ed Update ignore with some more rules 2009-12-26 12:39:33 -08:00
R. Tyler Ballance d51badc5fc Bump the version number 2009-12-19 15:30:52 -08:00