Debian Codegraph @

docs/news2.rst

raw
1 2.4.2 (February 8th, 2010)
2 - Fix issue where subclasses of Template failed to pick up attributes in the
3 searchlist
4 - Remove old/outdated bundled memcached python client
5 - Allow for #encoding directives to exist after a comment (i.e. not the first
6 line in a module)
7 - Remove support for WebWare servlets (which caused significant performance
8 slowdowns on Mac OS X)
9 - Old/stale code pruned in preparation for Python 3 support
10
11 2.4.1 (December 19th, 2009)
12 - --quiet flag added to `cheetah` to silence printing to stdout (abbeyj)
13 - Refactoring to minimize the amount of forked code for Python3 (rtyler)
14 - Template.compile() will no longer create class names with numerous leading
15 underscores (rtyler; reported by Kirill Uhanov)
16 - DirectiveAnalyzer (cheetah-analyze script) added to report directive usage in templates (rtyler)
17 - Older LaTeX docs converted to rst for Sphinx (rtyler)
18 - Prevent #raw blocks from evaluating \$-placeholders and escaped strings (karmix0)
19 - New tests added to verify PSP behavior and other untested internals (rtyler)
20
21 2.4.0 (October 24th, 2009)
22 - Fix a major performance regression in Template.__init__()
23 - More graceful handling of unicode when calling .respond() to render a template
24 - Minor code updates
25 - Update the default filter (thanks mikeb!)
26
27 2.3.0 (October 24th, 2009) (loosely equivalent to 2.4.0)
28 - Fix a major performance regression in Template.__init__()
29 - More graceful handling of unicode when calling .respond() to render a template
30 - Minor code updates
31 - Update the default filter (thanks mikeb!)
32
33 2.2.2 (September 10th, 2009)
34 - Prevent _namemapper.c from segfaulting when PyImport_ImportModule fails for some reason (Bogdano Arendartchuk <[email protected]>)
35 - Removal of the contrib/markdown module (in favor of a setuptools dependency)
36 - Default setup.py to use setuptools by default, failing that, fall back to distutils
37 - Improvements to setup.py to support building for Windows (thanks abbeyj!)
38 - Improvements to C-based NameMapper for Windows
39 - Fixes for a swath of unit tests on Windows
40 - Re-enabling the EOL tests (whoops)
41 - Fix for unicode/utf-8 dynamic compilation error (thanks mikeb!) (Test.Unicode.JBQ_UTF8_Test8)
42 - 0000010: [Templates] Failure to execute templates on Google App Engine (rtyler)
43 - 0000026: [Compiler] Support multiple inheritance (rtyler)
44
45
46 2.2.1 (June 1st, 2009)
47 - 0000020: [Templates] Builtin support for using Cheetah with Django (rtyler)
48 - 0000021: [Compiler] @static and @classmethod don't properly define the _filter local (rtyler)
49 - 0000023: [Compiler] Update Template super calls to use super() (rtyler)
50 - Update all references to communitycheetah.org to point back at cheetahtemplate.org
51
52 2.2.0 (May 17th, 2009)
53 - Switch all internal representations of template code to unicode objects instead of str() objects
54 - Convert unicode compiled template to an utf8 char buffer when writing to a file (Jean-Baptiste Quenot <[email protected]>)
55 - 0000011: [Templates] Calling a function with arguments calls the function with None (rtyler)
56 - 0000015: [Tests] Resolve test failures in 'next' branch (rtyler)
57 - 0000019: [Templates] Properly warn when joining unicode and non-unicode objects in DummyTransaction (rtyler)
58
59 2.1.2 (May 5, 2009)
60 - 0000006: [Templates] Support @staticmethod and @classmethod (rtyler)
61
62 2.1.1 (April 16, 2009)
63 - Support __eq__() and __ne__() the way you might expect in src/Tools/RecursiveNull (patch suggested by Peter Warasin <[email protected]>)
64 - Applied patch to avoid hitting the filesystem to get the file modification time everytime a #include directive is processed (Jean-Baptiste Quenot <[email protected]>)
65 - Applied patch to fix some annoying cases when Cheetah writes to stderr instead of propagating the exception (Jean-Baptiste Quenot <[email protected]>)
66 - Added KDE editor support
67 - Applied patch to correct importHook behavior on Python 2.6 (reported/patched by Toshio Ernie Kuratomi <[email protected]>)
68 - Correct unicode issue when calling/embedding unicode templates inside of other templtes (testcase Tests.Unicode.JPQ_UTF8_Test3. reported by Jean-Baptiste Quenot <[email protected]>)
69 - Added --shbang option (e.g. "cheetah compile --shbang '#!/usr/bin/python2.6' ")
70 - Removed dependency on optik OptionParser in favor of builtin Python optparse module
71 - Introduction of the #transform directive for whole-document filtering
72 - Introduction of Cheetah.contrib.markdown and Cheetah.Filters.Markdown for outputting a markdown processed template (meant for #transform)
73 - Cheetah.Filters.CodeHighlighter, pygments-based code highlighting filter for use with #transform
74 - Addition of "useLegacyImportMode" compiler setting (defaulted to True) to allow for older (read: broken) import behavior
75
76 2.1.0.1 (March 27, 2009)
77 - Fix inline import issue introduced in v2.1.0
78
79 2.1.0 (March 16, 2009)
80 - Quiet DeprecationWarnings being printed to stderr when using Cheetah on Python 2.6 and up. Patch suggested by Satoru SATOH <[email protected]>
81 - Apply patch to support parallel compilation of templates courtesy of Evan Klitzke <[email protected]>
82 - Corrected issue when __getattr__ calls on searchList objects raise exceptions ([email protected])
83 - make autocalling in valueForName correctly ignore newstyle classes and instances
84 that are callable, as it does for oldstyle classes and instances. Patch
85 from [email protected]
86 [TR]
87 - made it possible to chain multiple decorators to a method #def [TR with
88 patch from Graham Dennis]
89 - fixed a bug in _eatMultiLineDef that Graham Dennis reported. [TR]
90 - fixed 'module.__init__() argument 1 must be string, not unicode' bug in
91 Template.py reported by Erwin Ambrosch [TR]
92
93 2.0.1 (Nov 16, 2007)
94 - fixed a deadlock Christoph Zwerschke found in Cheetah.ImportHooks.
95 [TR]
96
97 2.0 (Oct 12, 2007)
98 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
99
100 - fixed exception handling issue in the C implemenation of NameMapper
101 [patch from Eric Huss]
102
103 - fixed filtering of #included subtemplates
104 [patch from Brian Bird]
105
106 See the release notes from 2.0b1-5 and 2.0rc1-8 for other changes since
107 Cheetah 1.0.
108
109
110 2.0rc8 (April 11, 2007)
111 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
112 Core Changes: [TR]
113
114 - added a '#unicode <encoding>' directive to indicate that the output of the
115 template should be a unicode string even if the template source is a
116 normal byte string.
117
118 - #unicode and #encoding are mutually exclusive. Use one or the other.
119 - #unicode must be on a line by itself.
120 - Strings in embedded code must be explictly marked as unicode if they
121 contain non-ascii chars::
122
123 #unicode latin-1
124 \$f(u"<some non-ascii char>") ## right
125 \$f("<some non-ascii char>") ## wrong
126
127 However, this works fine::
128
129 #unicode latin-1
130 blah blah <some non-ascii char> blah blah
131
132 - fixed several unicode bugs in the compiler.
133 - fixed some unicode issues in the standard filters.
134 - fixed a few minor bugs in code that never gets called. Thanks to
135 Alejandro Dubrovsky for pointing them out.
136 - make RawOrEncodedUnicode the baseclass of all filters and remove some
137 unused/redudant filters
138 - added new compiler setting 'addTimestampsToCompilerOutput'. See Brian
139 Bird's post about it. He stores his cheetah generated .py files in
140 subversion and needed to disable the timestamp code so svn wouldn't care
141 when he recompiles those .py modules.
142 - added the #super directive, which calls the method from the parent class
143 which has the same as the current #def or #block method::
144
145 #def foo
146 ... child output
147 #super ## includes output of super(<CurrentClass>, self).foo()
148 ... child output
149 #end def
150
151 #def bar(arg)
152 ... child output
153 #super(arg) ## includes output of super(<CurrentClass>, self).bar(arg)
154 ... child output
155 #end def
156 - added some unit tests for the new directives
157
158
159 2.0rc7 (July 4, 2006)
160 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
161 Core Changes: [TR]
162
163 - extended the #implements directive so an arguments list can be declared in
164 the same fashion as #def and #block.
165 - made the parser raise ParseError when \$\*placeholder, \$\*5\*placeholder,
166 \$(placeholder), etc. are found within expressions. They are only valid in
167 top-level text.
168 - tweaked the parser so it's possible to place a comment on the same line as
169 a directive without needing to explicitly close the directive first. This
170 works regardless of whether or not you added a colon::
171
172 self.verify("#if 1:\\n\$aStr\\n#end if\\n",
173 "blarg\\n")
174
175 self.verify("#if 1: \\n\$aStr\\n#end if\\n",
176 "blarg\\n")
177
178 self.verify("#if 1: ##comment \\n\$aStr\\n#end if\\n",
179 "blarg\\n")
180
181 self.verify("#if 1 ##comment \\n\$aStr\\n#end if\\n",
182 "blarg\\n")
183
184 Previously, that last test would have required an extra # to close the #if
185 directive before the comment directive started::
186
187 self.verify("#if 1 ###comment \\n\$aStr\\n#end if\\n",
188 "blarg\\n")
189
190 Code that makes use of explicit directive close tokens immediately followed by
191 another directive will still work as expected:
192 #if test##for i in range(10)# foo \$i#end for##end if
193
194 - safer handling of the baseclass arg to Template.compile(). It now does
195 the right thing if the user passes in an instance rather than a class.
196
197 ImportHooks: [TR]
198
199 - made it possible to specify a list of template filename extentions that are
200 looped through while searching for template modules. E.g.::
201
202 import Cheetah.ImportHooks
203 Cheetah.ImportHooks.install(templateFileExtensions=('.tmpl','.cheetah'))
204
205 Core changes by MO:
206
207 - Filters are now new-style classes.
208 - WebSafe and the other optional filters in Filters.py now use
209 RawOrEncodedUnicode instead of Filter as a base class. This allows them
210 to work with Unicode values containing non-ASCII characters.
211 - User-written custom filters should inherit from RawOrEncodedUnicode
212 and call the superclass .filter() instead of str(). str() as of
213 Python 2.4.2 still converts Unicode to string using ASCII codec,
214 which raises UnicodeEncodeError if it contains non-ASCII characters.
215
216 2.0rc6 (Feb 4, 2006)
217 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
218 Core Changes: [TR]
219
220 - added a Cheetah version dependency check that raises an assertion if a
221 template was compiled with a previous version of Cheetah whose templates
222 must be recompiled.
223 - made the Cheetah compilation metadata accessible via class attributes in
224 addition to module globals
225 - major improvement to exception reporting in cases where bad Python syntax
226 slips past the Cheetah parser::
227
228 File "/usr/lib/python2.4/site-packages/Cheetah/Template.py", line 792, in compile
229 raise parseError
230 Cheetah.Parser.ParseError:
231
232 Error in the Python code which Cheetah generated for this template:
233 ================================================================================
234
235 invalid syntax (DynamicallyCompiledCheetahTemplate.py, line 86)
236
237 Line|Python Code
238 ----|-------------------------------------------------------------
239 84 |
240 85 | write('\\n\\n')
241 86 | for i an range(10): # generated from line 4, col 1
242 ^
243 87 | _v = i # '\$i' on line 5, col 3
244 88 | if _v is not None: write(_filter(_v, rawExpr='\$i')) # from line 5, col 3.
245 89 | write('\\n')
246
247 ================================================================================
248
249 Here is the corresponding Cheetah code:
250
251 Line 4, column 1
252
253 Line|Cheetah Code
254 ----|-------------------------------------------------------------
255 2 |#compiler useNameMapper=False
256 3 |
257 4 |#for i an range(10)
258 ^
259 5 | \$i
260 6 |#end for
261 7 |
262
263 2.0rc5 (Feb 3, 2006)
264 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
265 Core Changes: [TR]
266
267 - fixed a memory leak in Template.compile(), reported by Andrea Arcangeli
268 - simplified concurrency locking and compile caching in Template.compile()
269
270 The command line tool (CheetahWrapper.py):
271
272 - added new option --settings for supplying compiler settings
273 - added new option --templateAPIClass to replace the environment var
274 CHEETAH_TEMPLATE_CLASS lookup I added in 2.0b1
275
276 2.0rc4 (Jan 31, 2006)
277 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
278 Core Changes: [TR]
279
280 - fixed a typo-bug in the compile hashing code in Template.compile()
281 - improved the macros framework and made it possible to implement macros in
282 Python code so they can be shared between templates
283 - more work on the #i18n directive. It's now a macro directive.
284 - added new Cheetah.Macros package
285 - more tests
286
287 2.0rc3 (Jan 29, 2006)
288 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
289 Core Changes: [TR]
290
291 - added short-form single line versions of all directives that have an #end
292 tag, except for #errorCatcher::
293
294 #if, #else, #elif, #unless,
295 #for, #while, #repeat,
296 #try, #except, #finally,
297 #cache, #raw
298 #call, #capture
299
300 The #def and #block directives already had single-line versions::
301
302 #if cond: foo
303 #elif cond2: bar
304 #else: blarg
305
306 #for i, val in enumerate(vals): \$i-\$val
307
308 Note that if you accidentally leave a colon at the end of one of these
309 directives but nothing else follows it, aside from whitespace, the parser
310 will treat it as a normal multi-line directive.
311
312 The first leading space after the colon is discarded. Any additional
313 spaces will be included in the output.
314
315 Also note, if you use the short form versions of #if/#else/#elif you must
316 it for all three. The following is not valid::
317
318 #if cond: foo
319 #elif cond2
320 bar
321 #else: blarg
322
323 - added support for \$!silentModePlaceholders. This is the same as quiet
324 mode in Velocity: http://jakarta.apache.org/velocity/docs/user-guide.html#Quiet%20Reference%20Notation
325 - added support for function/method @decorators. It also works with blocks.
326 As in vanilla Python, the @decorator statement must be followed with a
327 function/method definition (i.e. #def or #block)::
328
329 #from xxx import aDecorator
330 ...
331 ...
332 #@aDecorator
333 #def func
334 foo
335 #end def
336
337 #@aDecorator
338 #def singleLineShortFormfunc: foo
339
340 #@aDecorator
341 #block func2
342 bar
343 #end block
344
345 - added a new callback hook 'handlerForExtendsDirective' to the compiler settings. It
346 can be used to customize the handling of #extends directives. The
347 callback can dynamically add import statements or rewrite the baseclass'
348 name if needed::
349
350 baseClassName = handler(compiler, baseClassName)
351
352 See the discussion on the mailing list on Jan 25th for more details.
353 - changed the default filter to the one that doesn't try to encode Unicode
354 It was 'EncodeUnicode' and is now 'RawOrEncodedUnicode'.
355 - added optional support for parsing whitespace between the directive start
356 token (#) and directive names, per Christophe Eymard's request. For the
357 argument behind this see the mailing list archives for Jan 29th. This is
358 off by default. You must turn it on using the compiler setting
359 allowWhitespaceAfterDirectiveStartToken=True::
360
361 #for \$something in \$another
362 # for \$somethin2 in \$another2
363 blahblah \$something in \$something2
364 # end for
365 #end for
366
367 - made the handling of Template.compile()'s preprocessors arg simpler and
368 fixed a bug in it.
369 - fixed attribute name bug in the .compile() method (it affected the feature
370 that allows generated module files to be cached for better exception
371 tracebacks)
372 - refactored the #cache/CacheRegions code to support abitrary backend cache
373 data stores.
374 - added MemcachedCacheStore, which allows cache data to be stored in a
375 memcached backend. See http://www.linuxjournal.com/article/7451 and
376 http://www.danga.com/memcached/. This is only appropriate for systems
377 running many Python server processes that need to share cached data to
378 reduce memory requirements. Don't bother with this unless you actually
379 need it. If you have a limited number of Python server processes it is
380 much faster, simpler, and more secure to just cache in the memory of each
381 process.
382
383 KEEP MEMCACHED'S LIMITED SECURITY IN MIND!! It has no authentication or
384 encryption and will introduce a gaping hole in your defenses unless you
385 are careful. If you are caching sensitive data you should take measures
386 to ensure that a) untrusted local system users cannot connect to memcached
387 server, b) untrusted external servers cannot connect, and c) untrusted
388 users on trusted external servers cannot connect. Case (a) can be dealt
389 with via iptable's owner match module for one way to do this: "iptables -A
390 ... -m owner ..." Cases (b) and (c) can be handled by tunnelling
391 memcached network connections over stunnel and implementing stunnel
392 authentication with mandatory peer/client certs.
393 - some under-the-hood refactoring of the parser
394 - made it possible to add custom directives, or customize the
395 parsing/handling of existing ones, via the compiler settings
396 'directiveNamesAndParsers' and 'endDirectiveNamesAndHandlers'
397 - added a compile-time macro facility to Cheetah. These macros are very
398 similar to macros in Lisp:
399 http://www.apl.jhu.edu/~hall/Lisp-Notes/Macros.html.
400
401 As with Lisp macros, they take source code (Cheetah source) as input and
402 return source code (again Cheetah source) as output. They are executed at
403 compile-time, just like in Lisp and C. The resultant code
404 gets executed at run-time.
405
406 The new #defmacro directive allows users to create macros inside the
407 source of their templates. Macros can also be provided via the compiler
408 setting 'macroDirectives'. The 'macroDirectives' setting allows you to
409 share common macros between templates.
410
411 The syntax for the opening tag of #defmacro is the same as for #def and
412 #block. It expects a macro name followed by an optional argument list in
413 brackets. A `src` argument is automatically added to the beginning of
414 every macro's argument list. The value of the `src` is the block of
415 input source code that is provided during a macro call (see below)::
416
417 #defmacro <macroname>[(argspec)]
418 <macrobody>
419 #end defmacro
420
421 All of Cheetah's syntax is available for use inside macros, but the
422 placeholderStartToken is @ instead of \$ and the
423 directiveStartToken/EndToken is % instead of #. Any syntax using the
424 standard \$/# tokens will be treated as plain text and included in the output
425 of the macro.
426
427 Here are some examples::
428
429 #defmacro addHeaderFooter
430 header
431 @src
432 footer
433 #end defmacro
434
435 #defmacro addHeaderFooter(header='h', footer='f')
436 @header
437 @src
438 @footer
439 #end defmacro
440
441 There is a single-line short form like for other directives::
442
443 #defmacro addHeaderFooter: header @src footer
444 #defmacro addHeaderFooter(header='h', footer='f'): @header @src @footer
445
446 The syntax for calling a macro is similar to the simplest usage of the
447 #call directive::
448
449 #addHeaderFooter
450 Source \$code to wrap
451 #end addHeaderFooter
452
453 #addHeaderFooter: Source \$code to wrap
454
455 #addHeaderFooter header='header', footer='footer: Source \$code to wrap
456
457 In Elisp you write
458 (defmacro inc (var)
459 (list 'setq var (list '1+ var)))
460 to define the macro `inc` and write
461 (inc x)
462 which expands to
463 (setq x (1+ x))
464
465 In Cheetah you'd write
466 #defmacro inc: #set @src +=1
467 #inc: \$i
468 which expands to
469 #set \$i += 1
470
471 print Template("""\\
472 #defmacro inc: #set @src +=1
473 #set i = 1
474 #inc: \$i
475 \$i""").strip()==2
476
477 - fixed some bugs related to advanced usage of Template.compile(). These
478 were found via new unit tests. No one had actually run into them yet.
479 - added the initial bits of an #i18n directive. It has the same semantics
480 as::
481
482 #call self.handleI18n
483 Some \$var cheetah source
484 #end call
485
486 but has a simpler syntax::
487
488 #i18n
489 Some \$var cheetah source
490 #end i18n
491
492 ## single-line short form:
493 #i18n: Some \$var cheetah source
494
495 The method it calls, self.handleI18n, is just a stub at the moment, but it
496 will soon be a wrapper around gettext. It currently has one required
497 positional argument `message`. I anticipate supporting the following
498 optional arguments::
499
500 id = msgid in the translation catalog
501 domain = translation domain
502 source = source lang
503 target = a specific target lang
504 comment = a comment to the translation team
505
506 plural = the plural form of the message
507 n = a sized argument to distinguish between single and plural forms
508
509 #i18n is executed at runtime, but it can also be used in conjunction with
510 a Cheetah preprocessor or macro (see above) to support compile time
511 translation of strings that don't have to deal with plural forms.
512 - added Cheetah.Utils.htmlEncode and Cheetah.Utils.htmlDecode
513 - more docstring text
514
515 Unit tests: [TR]
516
517 - extended the caching tests
518 - added tests for the various calling styles of Template.compile()
519 - added copies of all the SyntaxAndOutput tests that use a template
520 baseclass other than `Template`. This ensures that all syntax & core
521 features work with 2.0's support for arbitrary baseclasses.
522 - added tests for all the new directives and the new single-line short forms
523
524 2.0rc2 (Jan 13th, 2006)
525 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
526 Core Changes: [TR]
527
528 - fixed some python 2.4isms that slipped in. All the tests pass with Python
529 2.2 now
530 - added lots more docstring content in the Template class
531 - made multiline comments gobble whitespace like other directives, per JJ's
532 request. The rather longwinded compiler setting
533 gobbleWhitespaceAroundMultiLineComments can be used to go back to the old
534 non-gobbling behaviour if needed.
535 - added #capture directive to complement the #call directive.
536 #call executes a region of Cheetah code and passes its output into a function call
537 #capture executes a region of Cheetah code and assigns its output to a variable
538 - extended the compile caching code in Template.compile so it works with the
539 'file' arg.
540 - added cacheModuleFilesForTracebacks and cacheDirForModuleFiles args to
541 Template.compile(). See the docstring for details.
542 - misc internal refactoring in the parser
543 - improved handling of keyword args in the __init__ method and fixed a
544 potential clash between the namespaces and searchList args
545
546 WWW: [TR]
547
548 - added the source for the new Cheetah website layout/content
549
550 2.0rc1 (Jan 10, 2006)
551 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
552 Core Changes: [TR]
553
554 - made it possible nest #filter directives
555 - added lots more docstring content in the Template class
556 - added Template.subclass() classmethod for quickly creating subclasses of
557 existing Cheetah template classes. It takes the same args as the
558 .compile() classmethod and returns a template that is a subclass of the
559 template .subclass() is called from::
560
561 T1 = Template.compile(' foo - \$meth1 - bar\\n#def meth1: this is T1.meth1')
562 T2 = T1.subclass('#implements meth1\\n this is T2.meth1')
563
564 - added baseclass arg to Template.compile(). It simplifies the reuse of
565 dynamically compiled templates::
566
567 # example 1, quickly subclassing a normal Python class and using its
568 # __init__ call signature:
569 dictTemplate = Template.compile('hello \$name from \$caller', baseclass=dict)
570 print dictTemplate(name='world', caller='me')
571
572 # example 2, mixing a Cheetah method into a class definition::
573
574 class Foo(dict):
575 def meth1(self):
576 return 'foo'
577 def meth2(self):
578 return 'bar'
579 Foo = Template.compile('#implements meth3\\nhello \$name from \$caller',
580 baseclass=Foo)
581 print Foo(name='world', caller='me')
582
583 A side-benefit is the possibility to use the same Cheetah source with
584 several baseclass, as the baseclass is orthogonal to the source code,
585 unlike the #extends directive.
586 - added 'namespaces' as an alias for 'searchList' in Template.__init__
587 - made it possible to pass in a single namespace to 'searchList', which will
588 automatically be converted into a list.
589 - fixed issue with buffering and use of #call when template is used as a
590 webkit servlet
591 - added Cheetah.Utils.htmlEncode and htmlDecode
592
593 The command line tool (CheetahWrapper.py):
594
595 - changed insertion order for the --env and --pickle options so they match the
596 commandline UI of the compiled template modules themselves [TR]
597
598 2.0b5 (Jan 7, 2006)
599 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
600 Core Changes: [TR]
601
602 - made Cheetah.Template a new-style class by inserting 'object' into its'
603 inheritance tree. Templates can now use super(), properties and all the
604 other goodies that come with new-style classes.
605 - removed the WebInputMixin by placing its one method directly in the
606 Template class.
607 - removed the SettingsManager Mixin. It wasn't being used by anything
608 anymore.
609 - added a framework for caching the results of compilations in
610 Template.compile(). This is on by default and protects against bad
611 performance issues that are due to programmers misguidedly compiling
612 templates inside tight loops. It also saves on memory usage.
613 - misc attr name changes to avoid namespace pollution
614 - more + improved docstrings
615 - replaced the oldstyle dynamic compile hacks with a wrapper around
616 Template.compile(). The old usage pattern Template(src) now benefits from
617 most of the recent changes::
618
619 Template(src).__class__ == Template.compile(src)
620
621 - removed all the extra imports required by oldstyle dynamic compile hacks
622 - converted the cheetah #include mechanism to newstyle compilation and made it
623 more flexible
624 - made the #include mechanism work with file objects in addition to file names
625 - made the handling of args to Template.compile() more flexible. You can now
626 provide defaults via class attributes.
627 - made preprocessors for Template.compile() work with file arguments
628 - added support for specifying a __metaclass__ on cheetah template classes
629 - refactored both the class and instance initialization processes
630 - improved the handling of __str__ in _assignRequiredMethodsToClass
631
632 The command line tool (CheetahWrapper.py): [TR]
633
634 - improved error output in CheetahWrapper
635 - switched fill command over to new style compile usage
636
637 Unit tests: [TR]
638
639 - fixed format string bug in unittest_local_copy.py
640
641 2.0b4 (Jan 6, 2006)
642 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
643 Core Changes: [TR]
644
645 - fixed up parsing of target lists in for loops. This was previously limited
646 to fairly simple target lists::
647
648 #for (\$i, \$j) in [('aa','bb'),('cc','dd')]
649 \$i.upper,\$j.upper
650 #end for"
651 #for (i, j) in [('aa','bb'),('cc','dd')]
652 \$i.upper,\$j.upper
653 #end for"
654 #for i,(j, k) in enumerate([('aa','bb'),('cc','dd')])
655 \$j.upper,\$k.upper
656 #end for"
657
658 - refactored the class initialization process
659 - improved handling of target lists in #set directive. This was previously
660 limited to fairly simple target lists.
661 #set i,j = [1,2] ... #set \$i,\$j = [1,2]
662 #set (i,j) = [1,2] ... #set (\$i,\$j) = [1,2]
663 #set i, (j,k) = [1,(2,3)] ... #set \$i, (\$j,\$k) = [1,(2,3)]
664
665 - made it possible for the expressionFilter hooks to modify the code chunks
666 they are fed. Also documented the hooks in a docstring. Thus the hooks
667 can be used as preprocessors for expressions, 'restricted execution', or
668 even enforcement of style guidelines.
669
670 - removed cheetah junk from docstrings and placed it all in comments or
671 __moduleVars__. Per JJ's suggestion.
672
673 - made it possible to nest #cache directives to any level
674 - made it possible to nest #call directives to any level
675
676 Unit Tests [TR]
677
678 - extended tests for #for directive
679 - expanded tests for #set directive
680 - expanded tests for #call directive
681 - expanded tests for #cache directive
682 - added basic tests for the new \$placeholder string expressions:
683 c'text \$placeholder text'
684
685 2.0b3 (Jan 5, 2006)
686 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
687 Core Changes: [TR]
688
689 - added #yield statement
690 - added ability to create nested scopes/functions via nested #def statements
691 - added new #call directive and related #arg directive, per Ian Bicking's
692 suggestion.
693 - added new expression syntax c"text \$placeholder text"
694
695 for those basic function calling cases where you just need to pass in a
696 small bit of cheetah output as an argument::
697
698 c'a string with \$placeholders',
699 c'''a string with \$placeholders''',
700 c"a string with \$placeholders",
701 c"""a string with \$placeholders"""
702
703 - They can't contain #directives, but accept any valid \$placeholder syntax
704 except caching placeholders. Caching placeholders don't make any sense in
705 this context.
706 - They can be used \*any\* place where a python expression is expected.
707 - They can be nested to any depth::
708
709 \$func(c'<li>\$var1-\$var2</li>')
710 \$func(c'<li>\$var1-\$var2</li>', doSomething=True)
711 \$func(content=c'<li>\$var1-\$var2</li>', doSomething=True)
712 \$func(lambda x,y: c'<li>\$x-\$y</li>')
713 \$func(callback=lambda x,y: c'<li>\$x-\$y</li>')
714 \$func(lambda x,y: c'<li>\$x-\$y-\$varInSearchList</li>')
715 \$func(c'<li>\$var1-\$var2-\$(var3\*10)-\$(94.3\*58)</li>')
716 \$func(c'<li>\$var1-\$var2-\$func2(c"a nested expr \$var99")</li>')
717 #if \$cond then c'<li>\$var1-\$var2</li>' else c'<p>\$var1-\$var2</p>'
718 #def foo(arg1=c'\$var1<span class="foo">\$var2</span>'): blah \$arg1 blah
719 \$foo(c'\$var1<i>\$var2</i>')
720
721 - added preprocessor hooks to Template.compile()
722 can be used for partial completion or 'compile-time-caching'
723 ... more details and examples coming. It's very useful, but takes a bit
724 of explaining.
725 - added '#set module varName = expr' for adding module globals. JJ's suggestion
726 - improved generated docstring notes about cached vars
727 - fixed silly bug related to """ in docstring comments and statements like
728 this '#def foo: \$str("""foo""")'. Reported by JJ.
729 - changed the handling of single-line defs so that
730 '#def xxx:<just whitespace>\\n' will be treated as a multi-line #def.
731 The same applies to #block. There's a compiler setting to turn this off
732 if you really need empty single-line #def:'s.
733 JJ reported that this was causing great confusion with beginners.
734 - improved error message for unclosed directives, per Mike Orr's suggestion.
735 - added optional support for passing the trans arg to methods via \*\*KWS rather
736 than trans=None. See the discussion on the mailing list Jan 4th (JJ's post) for
737 details. The purpose is to avoid a positional argument clash that
738 apparently is very confusing for beginners.
739
740 Note that any existing client code that passing the trans arg in
741 positionally rather than as a keyword will break as a result. WebKit
742 does this with the .respond method so I've kept the old style there.
743 You can also turn this new behaviour off by either manually including
744 the trans arg in your method signature (see the example below) or by
745 using the compiler setting 'useKWsDictArgForPassingTrans'=False::
746
747 #def manualOverride(arg1, trans=None)
748 foo \$arg1
749 #end def
750
751 ImportHooks:
752
753 - made the ImportHook more robust against compilation errors during import [TR]
754
755 Install scripts: [TR]
756
757 - added optional support for pje's setuptools
758 - added cheeseshop classifiers
759 - removed out of date install instructions in __init__.py
760
761 Servlet Base Class For Webkit: [TR]
762
763 - disabled assignment of self.application (was a webware hack)
764
765 Unit Tests: [TR]
766
767 - unit tests for most of the new syntax elements
768 - tidied up some old tests
769 - misc refactoring
770
771 2.0b2 (Dec 30, 2005)
772 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
773
774 Core Changes:
775
776 - In previous versions of Cheetah tracebacks from exceptions that were raised
777 inside dynamically compiled Cheetah templates were opaque because
778 Python didn't have access to a python source file to use in the traceback::
779
780 File "xxxx.py", line 192, in getTextiledContent
781 content = str(template(searchList=searchList))
782 File "cheetah_yyyy.py", line 202, in __str__
783 File "cheetah_yyyy.py", line 187, in respond
784 File "cheetah_yyyy.py", line 139, in writeBody
785 ZeroDivisionError: integer division or modulo by zero
786
787 It is now possible to keep the generated source code from the python
788 classes returned by Template.compile() in a cache dir. Having these files
789 around allows Python to include the actual source lines in tracebacks and
790 makes them much easier to understand::
791
792 File "/usr/local/unsnarl/lib/python/us/ui/views/WikiPageRenderer.py", line 192, in getTextiledContent
793 content = str(template(searchList=searchList))
794 File "/tmp/CheetahCacheDir/cheetah_yyyy.py", line 202, in __str__
795 def __str__(self): return self.respond()
796 File "/tmp/CheetahCacheDir/cheetah_yyyy.py", line 187, in respond
797 self.writeBody(trans=trans)
798 File "/tmp/CheetahCacheDir/cheetah_yyyy.py", line 139, in writeBody
799 __v = 0/0 # \$(0/0)
800 ZeroDivisionError: integer division or modulo by zero
801
802 This is turned off by default. To turn it on, do this::
803
804 class NiceTracebackTemplate(Template):
805 _CHEETAH_cacheModuleFilesForTracebacks = True
806 _CHEETAH_cacheDirForModuleFiles = '/tmp/CheetahCacheDir' # change to a dirname
807
808 templateClass = NiceTracebackTemplate.compile(src)
809
810 # or
811 templateClass = Template.compile(src,
812 cacheModuleFilesForTracebacks=True, cacheDirForModuleFiles='/tmp/CheetahCacheDir')
813
814
815 This only works with the new Template.compile(src) usage style!
816
817 Note, Cheetah generated modules that are compiled on the command line have
818 never been affected by this issue. [TR]
819 - added an extra comment per \$placeholder to generated python code so it is
820 easier to grok. [TR]
821
822 2.0b1 (Dec 29, 2005)
823 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
824
825 Core Changes:
826
827 - enabled use of any expression in \${placeholders}. See the examples I posted to
828 the email list on Dec 12th. All use cases of the #echo directive can now
829 be handled with \${placeholders}. This came from a suggestion by Mike
830 Orr. [TR]
831 - made it possible for templates to #extend (aka subclass) any arbitrary
832 baseclass, including Python's new style classes. You must either compile
833 your classes on the command line or use the new classmethod
834 Template.compile() as described below. The old Template(src) interface
835 still works, provided you don't try to use this new arbitrary baseclass
836 stuff. See my messages to the email list for more details. [TR]
837 - made it possible to create template classes dynamically, rather than just
838 instances. See the new classmethod Template.compile(). See my messages
839 to the email list for more details. [TR]
840
841 klass = Template.compile(src)
842 - made it easier to work with custom compiler settings, particularly from
843 the command line tool. You can now define a subclass of Template which
844 will compile your templates using custom compilerSettings, or even a
845 custom compiler class, without requiring you to manually pass in your
846 compilerSettings each time or define them in the template src itself via
847 the #compiler directive. You can make the command line tool use your
848 subclass by defining the environment variable CHEETAH_TEMPLATE_CLASS. It
849 should be in the form 'package.module:class'. See my messages
850 to the email list for more details. [TR]
851 - made it possible to pass the searchList in as an argument to #def'ined
852 methods. This makes all lookup that occur within the scope of that method
853 use the provided searchList rather than self._searchList. This does not
854 carry over to other methods called within the top method, unless they
855 explicitly accept the searchList in their signature AND you pass it to
856 them when calling them. This behaviour can be turned off with the
857 corresponding compilerSetting 'allowSearchListAsMethArg' [TR]
858 - added hooks for filtering / restricting dangerous stuff in cheetah source
859 code at compile time. These hooks can be used to enable Cheetah template
860 authoring by untrusted users. See my messages to the email list for more
861 details. Note, it filters expressions at parse/compile time, unlike Python's
862 old rexec module which restricted the Python environment at runtime. [TR]
863
864 # Here are the relevant compiler settings:
865 # use lower case keys here!!
866 'disabledDirectives':[], # list of directive keys, without the start token
867 'enabledDirectives':[], # list of directive keys, without the start token
868
869 'disabledDirectiveHooks':[], # callable(parser, directiveKey),
870 # called when a disabled directive is found, prior to raising an exception
871
872 'preparseDirectiveHooks':[], # callable(parser, directiveKey)
873 'postparseDirectiveHooks':[], # callable(parser, directiveKey)
874
875 'preparsePlaceholderHooks':[], # callable(parser)
876 'postparsePlaceholderHooks':[], # callable(parser)
877
878 'expressionFilterHooks':[],
879 # callable(parser, expr, exprType, rawExpr=None, startPos=None)
880 # exprType is the name of the directive, 'psp', or 'placeholder'.
881 #all lowercase
882 - added support for a short EOLSlurpToken to supplement the #slurp
883 directive. It's currently re.compile('#\\s\*\\n') (i.e # followed by
884 arbitrary whitespace and a new line), but this is not set in stone. One
885 other suggestion was the backslash char, but I believe Python's own
886 interpretation of backslashes will lead to confusion. The compiler
887 setting 'EOLSlurpToken' controls this. You can turn it off completely by
888 setting 'EOLSlurpToken' to None. See the email list for more details. [TR]
889 - added '_CHEETAH_' prefix to all instance attribute names in compiled
890 templates. This is related to the arbitrary baseclass change. [TR]
891 - shifted instance attribute setup to _initCheetahAttributes() method. This
892 is related to the arbitrary baseclass change. [TR]
893 - made it possible to use full expressions in the #extends directive, rather
894 than just dotted names. This allows you to do things like this:
895
896 #from xx.TemplateRepository import getTemplateClass
897 #extends getTemplateClass('someName')
898
899 I don't expect this to be used much. I needed it for a wiki system in
900 which the baseclasses for the templates are dynamically compiled at run
901 time and are not available via simple imports. [TR]
902 - added compiler setting autoImportForExtendDirective=True, so this existing
903 default behaviour can be turned off when needed. [TR]
904 - fixed a bug in the parsing of single-line #def's and #block's when they
905 are enclosed within #if ... #end if. Reported by Marcin Gajda [TR]
906 - tweak to remove needless write('') calls in generated code [TR]
907
908 The command line tool (CheetahWrapper.py):
909
910 - added code to cleanup trailing slashes on path arguments (code originally
911 from Mike Orr) [TR]
912 - turned on the ImportHooks by default for the 'cheetah fill' command. See the
913 discussion on the email list [TR]
914
915 ImportHooks:
916
917 - fixed a name error bug in the ImportHooks [TR]
918
919 1.0 (Dec 4, 2005)
920 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
921
922 Version bump from 1.0rc3
923
924 1.0rc3 (Nov 30, 2005)
925 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
926
927 - added useSearchList compiler setting [TR]
928 This defaults to True, but if false, the compiler assumes the first
929 portion of a \$variable (before the first dot) is a global, builtin, or local
930 var that doesn't need looking up in the searchlist. NameMapper's unified
931 dotted notation will still be used on the rest of the lookup (provide the
932 setting useNameMapper==True)::
933
934 \$aLocalDictVar.aKey.somethingElse
935
936 1.0rc2 (Nov 19, 2005)
937
938 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
939
940 See my email to the cheetahtemplate-discuss list on Sat. Nov. 12th for more
941 details on these changes:
942
943 - faster list-based buffering in DummyTrans, rather than StringIO (my
944 benchmarks showed it to be significantly faster. collections.deque wasn't
945 any faster than a simple list.) [TR]
946 - new CompilerSettings to tweak generated code: [TR]
947 \* alwaysFilterNone: filter out None immediately, before the filter is called
948 \* useFilters: allows you to turn them off completely and default to str()
949 \* includeRawExprInFilterArgs: allows you to disable this behaviour
950 \* autoAssignDummyTransactionToSelf: off by default
951 - and automatic \$trans finding without having to pass it as an arg to methods
952 based Jonathan Mark's suggestion. If the template's self.transaction
953 attribute has been set, each method of the template will use it when
954 called. [TR]
955 - applied Chris Murphy's patch to fix a bug in the #shBang directive. [TR]
956
957 1.0rc1 (Nov 2, 2005)
958
959 !!!THIS RELEASE REQUIRES RECOMPILATION OF ALL COMPILED CHEETAH TEMPLATES!!!
960
961 - added the compiler option "useStackFrames" for optionally turning off the
962 default lookup method which doesn't work with psyco because it uses stack
963 frame introspection. When useStackFrames=False, an alternative psyco
964 friendly lookup method is used. [TR]
965 - fixed treatment of None in several filters, bug reported by Daniele Varrazzo
966 [TR]
967
968 0.9.18 (Aug 22, 2005)
969
970 - version bump from 0.9.18rc1 [TR]
971
972 0.9.18rc1 (Aug 15, 2005)
973
974 - applied Philippe Normand's patch for extended cache support [TR]
975 - added filter RawOrEncodedUnicode to fix a unicode issue that was discussed
976 on the email list on Aug. 9th 2005 [TR]
977
978 0.9.17 (May 30, 2005)
979
980 - this is just 0.9.17rc1 repackaged [TR]
981
982 0.9.17-rc1 (May 12, 2005)
983
984 This simple bug fix release resolves some issues introduced by
985 under-the-hood changes in release 0.9.16a1.
986
987 - removed the use of temp files for handling imports with dynamic
988 compilation. This removes a whole slew of issues, including a temp file
989 security issue reported on the email list by Brian Bird. [TR]
990 - fixed bug with handling of the searchList with dynamic inheritance, as
991 reported by Brian Bird. [TR]
992
993 0.9.16 (Mar 27, 2005)
994
995 - this is just 0.9.16b1 repackaged [TR]
996
997 0.9.16b1 (Feb 28, 2005)
998
999 - fixed attr error in Parser.eatEncoding [TR]
1000 - some tweaks to Compiler.py to prevent errors with dynamically compiled
1001 templates [TR]
1002 - added tests for the #encoding directive [TR]
1003
1004 0.9.16a1 (Jan 6, 2005)
1005
1006 - fixed a unicode bug in Compiler.py [TR]
1007 - added new EncodeUnicode filter that Rene Pijlman contributed (I optimized it
1008 slightly) and made it the default filter for all templates. [TR]
1009 - added test cases for handling unicode with the default filter [TR]
1010 - fixed a caching bug related to the #include directive. Thanks to Michael
1011 Engelhart for reporting it.[TR]
1012 - added the new #encoding directive to handle PEP 263
1013 http://www.python.org/doc/2.3/whatsnew/section-encodings.html [TR]
1014 - Tools.CGITemplate: fix bug in comment.[MO]
1015 - Abort with a helpful error message if user runs 'cheetah test' in a
1016 directory without write permission. (Kludge in CheetahWrapper.py; we
1017 should probably move the temp files under the system tmp directory.) [MO]
1018 - added better string type checking for args in Template.py, as suggested by
1019 Terrel Shumway [TR]
1020 - minor tweak to the class attribute lookup style in the Compiler.py
1021 __getattr__ methods [TR]
1022 - Fix printf format bug in "cheetah c --debug", found by Terry MacDonald. [MO]
1023 - Disabled NameMapperDict test (in SyntaxAndOutput.py) because the
1024 namemappers still have the dict-method bug. (Reminder: don't use
1025 placehold names like \$update that match dict method names.) [MO]
1026 - #repeat now uses a local variable of the form __i\$num which permits
1027 nesting [JJ]
1028 - implemented a modified version of Bob and JJ's patch for better parser
1029 warnings about mismatched directives and #end directives [TR]
1030 - lots of little cleanups and refactoring [TR]
1031 - refactored the class tree for the Parser and Compiler. They are now
1032 completely separate trees and the communication between them is one-way:
1033 explicit commands from the parser to the compiler. The parser now handles
1034 all parsing tasks by itself and delegates \*all\* code generation to the
1035 compiler. This last bit was my original intention, but things got a bit
1036 mixed up over time. Also, all SettingsManager stuff for handling
1037 compiler/parser settings is now handled by ModuleCompiler. This should make
1038 it easier to grok, maintain, and extend both. [TR]
1039 - improved the parsing of singe-line #if directives. [TR]
1040 - removed the old webware example of the cheetah site, as it was way out of
1041 date and was more confusing than helpful. [TR]
1042 - added two new lookup functions to NameMapper (valueFromFrame and
1043 valueFromFrameOrSearchList) and synchronized the behaviour of the C and
1044 Python versions of all functions. [TR]
1045 - improved the exception handling of both versions of NameMapper. NotFound
1046 exceptions now include more detail about what wasn't found. [TR]
1047 - made NameMapper's searchList lookup functions work with any iterable
1048 type/class rather than just with lists. [TR]
1049 - added and updated a variety of test cases. [TR]
1050 - checked in a patch to CheetahWrapper that improves handling of the odir
1051 option when the path is absolute. I can't remember where the patch came
1052 from. [TR]
1053 - checked in a patch to Template.py for better include/import support under
1054 Jython. Again, I've forgotten who contributed it. [TR]
1055 - updated various bits of the user guide. [TR]
1056 - made the Cheetah NameMapper calls in the generated code use the new function
1057 valueFromFrameOrSearchList rather than passing locals, searchList, globals,
1058 and __builtins__ into valueFromSearchList. This is faster, less bug prone
1059 and simpler to read/grok. I also removed all tracking of local
1060 variable names by the compiler. [TR]
1061 - other misc. refactorings [TR]
1062
1063 0.9.15 (Mar 25, 2003)
1064
1065 - a minor tweak to the cleanup actions of one of the test cases [TR]
1066
1067 0.9.15rc2 (Mar 23, 2003)
1068
1069 - Fixed a python version dependency bug related to Compiler.py's use of
1070 isinstance() [TR]
1071
1072 0.9.15rc1 (Mar 21, 2003)
1073
1074 This is just 0.9.15b1 renamed.
1075
1076 0.9.15b1 (Mar 17, 2003)
1077
1078 - The Cheetah version of unittest now prints a blank line after each
1079 traceback to separate them. (MO)
1080 - .webInput() now saves the cgi.FieldStorage() instance in a global
1081 variable rather than recreating it each call. That should allow the
1082 method to be called multiple times with POST variables outside Webware.
1083 (MO)
1084 - CheetahWrapper: no verbose output on stdout with --stdout/-p. (MO)
1085 - "#indent" is now undocumented. The existing code remains intact for now.
1086 See the TODO file for our future plans. (MO)
1087 - Apply 2 unicode-support patches from Rodrigo B. de Oliveira (rodrigobamboo)
1088 that affected the Template and ModuleCompiler classes. (TR)
1089 - Template: compiling a template from a string now works if the current
1090 directory doesn't have write permission. (MO)
1091 - remove temporary .pyo files in addition to .py and .pyc files (TR)
1092
1093 0.9.15a3 (Nov 10, 2002)
1094
1095 - corrected a dictionary bug in the Python version of NameMapper (TR)
1096 - Rewrote the "cheetah" command (CheetahWrapper.py) again and added test
1097 cases. New options --flat and --nobackup; --stdout is now a synonym for
1098 -p. See the "cheetah compile" section in the Users' Guide for details.
1099 Deleted Utils.dualglob: merged into CheetahWrapper. (MO)
1100 - .addToSearchList() and .prependToSearchList() are gone. Instead of
1101 adding containers to the searchList after instantiation, pass all the
1102 containers you need to the constuctor, keep another reference somewhere
1103 to the containers, and modify the containers directly. Generic libraries
1104 that want to add a new kind of information to the searchList (e.g.,
1105 web variables) should do "self.searchList().insert(0, myContainer)". (MO)
1106
1107 0.9.15a2 (Nov 4th, 2002)
1108
1109 - Filters now have access to the name of the placeholder they're filtering.
1110 In the .filter() method, kw['rawExpr'] gives the entire placeholder name
1111 including subscripts and arguments, exactly as it appears in the template
1112 definition. (TR)
1113 - Fix three bugs in "cheetah compile -R": (1) the generated class name
1114 contained the subdirectory, (2) the destination path did not contain the
1115 subdirectory, (3) Cheetah failed to create the destination subdirectory
1116 if missing. All subdirectories created have an "__init__.py" file.
1117 "cheetah fill -R" does the same thing but does not create
1118 "__init__.py". (MO) NOTE: this is still buggy!
1119 - New directory "attic" in source contains code that has been abandoned
1120 for now but may come in handy someday. (MO)
1121 - Tests.CheetahWrapper: test suite for "cheetah compile" and
1122 "cheetah fill". If the module is run from the command line, the
1123 option "--list PATH/CheetahWrapper.py", lists all scenarios that would be
1124 tested; the argument is the path to the test module itself. (MO)
1125 - made Cheetah.NameMapper.NotFound subclass the builtin LookupError (TR)
1126 - added an initial implementation of single line #if directives
1127 #if <condition> then <true> else <false>
1128 The parsing is fairly rudimentary for now and assumes that the keywords
1129 'then' and 'else' won't appear any inside a string in this directive (TR)
1130
1131 0.9.15a1 (Oct 6th, 2002)
1132
1133 - fixed a package-relative import bug in ImportHooks.py (TR)
1134 - set 'monitorSrcFile' to false as it was causing problems with the
1135 ImportHooks ... This might be temporary as the problem needs more thought
1136 (TR)
1137 - fixed meta tag http_equiv to be http-equiv in SkeletonPage (TR)
1138 - \$webInput (Utils.WebInputMixin) 'source' arg can be either case. (MO)
1139 - fixed code-gen bug in MethodCompiler.commitStrConst that was leading to
1140 triple single quotes followed immediately by another single quote if the
1141 template def contained a '\$placeholder' surrounded in single quotes and
1142 multiple \\n newlines ... plus added new test case.(TR)
1143 - undocumented the '#settings' directive. The directive itself will be
1144 removed soon. (MO)
1145 - Utils.optik: Optik 1.3 package by Gregory P Ward, for parsing
1146 command-line options in 'cheetah' comamnd. Copied unchanged into
1147 Cheetah except added "Cheetah.Utils.optik." prefix to intra-package
1148 imports. Optik's copyright and license is in an appendix in the
1149 Cheetah Users' Guide. (MO)
1150 - rewrite of the "cheetah" and "cheetah-compile" commands.
1151 The command-line options have changed! Removed CheetahCompile module
1152 removed and its test suite too; CheetahWrapper now takes its place. (MO)
1153 - Utils.dualglob: new module to recursively generate source+destination
1154 filenames from command-line filespecs. (MO)
1155 - The command-line options of .py template modules have also changed
1156 to conform with the "cheetah" command. Also a --pickle bug was
1157 fixed. (MO)
1158 - Utils.WebMixin: made a string type comparision backward compatible.
1159 This was why the Cheetah test suite was failing on Python < 2.2! (MO)
1160 - SettingsManager._createConfigFile(): bugfix in default argument. (MO)
1161 - \$hasVar('varName') is an alias for \$varExists('varName'). (MO)
1162 - \$_fileDirName and \$_filePath are now None rather than missing if
1163 the template definition did not come from a named file. (MO)
1164 - applied patch on SourceForge for "%" in default arguments of a block (TR)
1165 - removed the _underscored attribute lookup step from NameMapper NOTE THIS
1166 MIGHT BREAK EXISTING TEMPLATES (TR)
1167 - Install Cheetah into site-packages/Cheetah/ rather than
1168 site-packages/Webware/Cheetah/. Added code to automatically remove the old
1169 dir.(TR)
1170 - fixed the variable name resolution order bug in \$placeholders. The new
1171 implementation uses::
1172
1173 valueFromSearchList([locals()] + searchList + [globals(), __builtin__],
1174 rest of the args) for all lookups. (TR)
1175
1176 - removed the #settings directive (TR)
1177 - added the #del directive, for using Python's del statement (TR)
1178 - I think I've fixed the problem with the searchList arg being discarded when a
1179 template is generated from a .tmpl file that #extends another template. This
1180 bug was reported by Edmund on Aug 30th
1181 (subject: "Bug? Was: Really basic searchList question") (TR)
1182
1183 0.9.14 (July 14, 2002)
1184
1185 - Precompiled template Templates/SkeletonPage.py added to CVS. This file is
1186 needed for Cheetah's regression tests. (MO)
1187 - removed automatic recompilation of .py template in memory if the
1188 .tmpl file has changed. (TR)
1189
1190 0.9.14b1 (June 30, 2002)
1191
1192 - moved the Users' Guide and the Developers' Guide into a separate CVS module,
1193 'CheetahDocs', so they can be distributed separately from the source distro
1194 (TR,MO)
1195 - added TypeType to the types that NameMapper won't do autocalling on (TR)
1196 - in Template.py moved the global LegalKWs to Template._legalKWs (TR)
1197 - made #set work with RVALUES that are missing the recommended \$ (TR)
1198 - added some new test cases for the #set directive (TR)
1199 - fixed bug in the output of the #unless directive that Mike found (TR)
1200 - added some module constants to clear up a missing name bug that Mike found
1201 in cases where you use \*\*KW in a Cheetah method definition (TR)
1202 - fixed a bug in Parser.py:_LowLevelSemanticsParser.getExpression() that was
1203 related to the default enclosures=[] argument. This arg was unintentionally
1204 being shared between calls and thus leading to parsing errors as reported by
1205 Greg Czajkowski (TR)
1206 - Filter: fixed an '== None' expression (should be 'is None'). (MO)
1207 - TemplateMisc: new base class for Template. This is for optional
1208 convenience methods that don't require Webware. (MO)
1209 - User's Guide: new sections "Non-Webware HTML Output" and "Non-HTML
1210 Output". (MO)
1211 - Expanded \$webInput() -- renamed from \$cgiImport() -- to work both with
1212 Webware input and CGI scripts. Handles GET/POST/cookie/session vars under
1213 Webware, and GET/POST under CGI. Defined in Cheetah.Utils.WebInputMixin,
1214 now inherited by Template directly. (MO)
1215 - Tools.CGITemplate has methods to output CGI headers: .isCgi, .cgiHeaders
1216 and .cgiHeadersHook in TemplateMisc. (MO)
1217 - New #indent directive allows you to indent block constructs in the
1218 template definition without having that indentation in the output, and
1219 allows you to set the output indentation per line independent of the
1220 indentation in the template definition. This version uses Robert
1221 Kuzelj's #indent syntax exactly. In the next few days,
1222 Cheetah.Utils.Indenter will be refactored and
1223 \*\*\* THE #INDENT SYNTAX WILL CHANGE! \*\*\* (MO)
1224 - added the #return directive as requested by Robert Kulezj (TR)
1225 - added some test cases for the #return directive (TR)
1226 - removed buggy import statement that had been left in Servlet.py after the
1227 CGIInputMixin changes (TR)
1228
1229
1230 0.9.13 (May 8, 2002)
1231
1232 - changed Cheetah.Servlet.isRunningFromWebKit to isWebwareInstalled (TR)
1233 - fixed parsing bug that would exit an expression if the directiveEndToken was a
1234 valid Python token and was found inside the directive. (TR)
1235
1236 E.g.::
1237
1238 #compiler-settings
1239 directiveStartToken = .
1240 directiveEndToken = :
1241 commentStartToken = #
1242 #end compiler-settings
1243
1244 .for a in [1,2,3,4][2:3]:
1245 blag
1246 .end for
1247
1248 - fixed #include bug that was resulting in non-unique includeIDs (TR)
1249
1250 0.9.13b2 (May 3, 2002)
1251
1252 - fixed the bug in Cheetah.Servlet.Servlet.serverSidePath that Jeff Johnson
1253 found. (TR)
1254 - changed the attribute Cheetah.Servlet.ServletisRunningFromWebKit to
1255 isControlledByWebKit and set the default to False unless the .awake method
1256 is called. This makes a clear distinction between templates that are being
1257 used with WebKit via the inheritance approach and the containment approach
1258 (TR)
1259
1260
1261 0.9.13b1 (May 1, 2002)
1262
1263 - Was going to import cStringIO instead of StringIO, but it made the
1264 DummyTransaction.py unittest fail so I undid it. Cheetah aims to provide
1265 Unicode support, which cStringIO does not provide. (TR/MO)
1266 - Utils.Misc.CheckKeywords(): prevent misspelled keyword arguments,
1267 used by Template constructor. (MO)
1268 - removed support for multiple inheritance (TR)
1269 - added some bounds-checking code to _namemapper.c's getNameChunks function
1270 (TR)
1271 - changed the exceptions in _namemapper.c from the old string exceptions
1272 to proper exception objects (TR)
1273 - first portion of Developers' Guide written (MO)
1274 - implemented the extended #extends directive, which does automatic importing
1275 (MO,TR)
1276 - added some new testcases for the extended #extends directive (TR)
1277 - lots of work on the Users' Guide (MO)
1278 - implemented and tested an import hook for .tmpl files (TR):
1279 import MyTemplate # will compile and import MyTemplate.tmpl
1280 - made my True/False declarations friendly with Python 2.2.1, which already
1281 includes True/False as builtins (TR)
1282 - implemented the #compiler directive that Edmund Lian suggested (TR)
1283 e.g.:
1284 #compiler commentStartToken = '//'
1285 // a comment
1286 #compiler reset
1287 // no longer a comment
1288 - fixed the bug that Edmund Lian found in .addSet() when useNameMapper = 0
1289 (TR)
1290 - fixed bug in comment creation using lineCol that Mike found (TR)
1291
1292 0.9.12 (April 3, 2002)
1293
1294 - no code changes from beta 2
1295 - more work on the docs (MO)
1296
1297 0.9.12b2 (Mar 28, 2002)
1298
1299 - fixed Win32 path bug in Template._makeDummyPackageForDir() (TR)
1300 - prettied up the format of the debug comments in the Cheetah generated
1301 Python code (TR)
1302 - fixed the non-unique key error in Template._includeCheetahSource (TR)
1303 - fixed the module import bug in 'cheetah compile -w' (TR)
1304
1305 0.9.12b1 (Mar 24, 2002)
1306
1307 - \$request().field(args) now works, identical to \$request.field(args)
1308 to implement this, the request object is now self.request() instead of
1309 self.request. This provides compatibility with Webware's servlet API.
1310 (self.session already was an accessor method). New read-only attribute
1311 self.isRunningFromWebKit is boolean. All changes are in Servlet.py. (MO)
1312 - fixed nested-NotFound bug in _namemapper.c's valueFromSearchList (TR)
1313 - 'cheetah' wrapper script has abbreviation -c for the 'compile' command,
1314 -t for 'test', and an ASCII-art cheetah face in the help message. (MO)
1315 - CheetahCompile.py: fixed to recognize --help option and to show --help/-h
1316 in help message. (MO)
1317 - CheetahCompile.py:
1318 changed the order of the VERBOSE mode printouts, as per Mike's request (TR)
1319 - Template.py:
1320 fixed the #include'd template searchList sharing problem, as reported by
1321 Johannes (TR)
1322 - corrected namemapper translation bug in
1323 Compiler.GenUtils.genNameMapperVar() (TR)
1324 - Utils.Misc.UseOrRaise(): convenience function to return a
1325 value, or raise it if it's a subclass of Exception. (MO)
1326 - Utils.CGIImportMixin replaces Tools.WebwareMixin. Servlet now
1327 subclasses it. This adds the .cgiImport() method to all servlets, allowing
1328 sophisticated retrieval of form fields, cookies or session variables from
1329 one line of Cheetah or Python code. See module docstring. (MO)
1330 - lots of updates to the docs (MO)
1331
1332 0.9.11 (Mar 07, 2002)
1333
1334 - fixed a careless bug in cheetah-compile (TR)
1335 - implemented the new 'cheetah' wrapper script (TR)
1336 - refactored the local copy of unittest a bit (TR)
1337
1338 0.9.10 (Mar 06, 2002): Primarily a bug fix release
1339
1340 - fixed bug in srcfile-mtime monitoring / update code (TR)
1341 - fixed the parsing of single-line #defs and #blocks so they can have
1342 arguments (TR)
1343 - added test cases for single-line #defs and #blocks with args (TR)
1344 - fixed a silly typo bug in Parser.py where a comma was left at the end of
1345 regex definition, make it a tuple rather than a regex
1346 - fixed the directive matching bug that Jeff Johnson reported. It was
1347 causing #else# to not match, while #else # was matching. + added a test
1348 for it.(TR)
1349 - fixed bug in a regex that was preventing bare \$'s followed by whitespace
1350 and then valid varname chars from parsing as just \$ instead of as a
1351 placeholder (TR)
1352 - added some code to break reference cycles after the compilation is
1353 complete. This helps prevent memory leaks when a process in creating then
1354 discarding lots of Templates. You also need to manually call
1355 "template.shutdown()" to clear the remaining reference cycles.
1356 (TR)
1357 - fixed string formating bug in the autogenerated docstring code (TR)
1358 - added better error message for the #attr directive (TR)
1359 - removed some residual code that was causing a bug with cheetahvars that
1360 started with the name of one of the imported modules, such as 'time'. (TR)
1361
1362 0.9.9 (Dec 14, 2001)
1363
1364 - implemented one-line #def's and #block's (TR)::
1365
1366 #def aTest: This is a \$adj test ---- READ THE MANUAL FOR MORE INFO.
1367
1368 NOTE: leading and trailing whitespace is stripped. These should only be
1369 used on lines by themselves as it reads to the end of the line.
1370 - made cheetah-compile accept input on standard input (TR)
1371 - made sure that #def and #block work with \$'s on the method names (TR)
1372
1373 0.9.9b1 (Dec 6, 2001)
1374
1375 - template constructor arg 'outputFilter' now 'filter', for consistency
1376 with #filter (MO)
1377 - template constructor raises TypeError if bad arguments (MO)
1378 - Cheetah.Utils.VerifyType new module containing functions for verifying the
1379 type of an argument (MO)
1380 - Cheetah.Utils: new package for non-Cheetah-specific modules needed by
1381 Cheetah (MO)
1382 - Cheetah.Filters: new filter WebSafe, several bugfixes (MO)
1383 - more work on the Users' Guide (MO)
1384 - fixed bug with adding Python's __builtins__ to the local vars list (TR)
1385 - fixed bug with #echo (TR)
1386 - fixed bug that was preventing \${a, \$b=1234} from working like \${a, b=1234} (TR)
1387 - fixed some bugs in Template.varExists and Template.getVar()
1388 (TR - thanks to MH for spotting them)
1389 - made it possible to use filenames like 'spam-eggs.txt' that have invalid
1390 characters for module names with Template(): Template(file='spam-eggs.txt')
1391 (TR/MH)
1392 - refactored 'cheetah-compile' a little (TR)
1393 - Cheetah.Filters.Strip: new filter to strip leading/trailing whitespace
1394 but preserve newlines. Suitable for #filter directive or (possible)
1395 future #sed directive. (MO)
1396 - Cheetah.Filters.StripSqueeze: new filter to canonicalize all whitespace
1397 chunks to ' '. Also removes all newlines (joining multi-line input into
1398 one long line), and leading/trailing whitespace from the final result. (MO)
1399 - Filters can now be used standalone for debugging or for use outside
1400 Cheetah. This works transparently; details are in Filters.py docstring.
1401 (MO)
1402 - Cheetah.Tools.MondoReport: new module for dividing a long list into
1403 "pages", and for calculating statistics useful in reports. (MO)
1404 - refactored Cheetah.Servlet.Servlet.Awake a little (TR)
1405 - fixed an output bug in the #block generated code that turned up when you
1406 tried to override a block method from Python rather than Cheetah. (TR)
1407 - started preparing to shift some of the 'shared' utility classes, such as
1408 SettingsManager, to the Webware core. Cheetah 1.0 will probably require
1409 Webware to be installed so it can access those shared classes. (TR)
1410 - extended the template module command line interface(TR/MO)
1411
1412 0.9.9a6 (Nov 6, 2001)
1413
1414 - fixed bug with quotations in longer constant string chunks (TR)
1415 - fixed another bug in the cheetah-compile script (TR)
1416 - fixed a bug in the file-update monitoring code that was resulting in
1417 infinite loops when used with Template sub-classes (TR)
1418 - extended the #filter framework according to Mike's suggestions (TR)
1419 - added test modules for cheetah-compile and the file-update monitoring code (TR)
1420 - extended the capabilities of cheetah-compile ... (IB)
1421 - updated the docs (MO)
1422
1423 0.9.9a5 (October 31, 2001)
1424
1425 - fixed a bug I created yesterday (TR)
1426
1427 0.9.9a4 (October 30, 2001)
1428
1429 - added #repeat (TR implementing Chuck's suggestion)
1430 - added #unless (TR implementing Mike's suggestion)
1431 - updates to the Users' Guide (MO)
1432 - fixed a small bug in the cheetah-compile script, as reported by Ian on the
1433 list (TR)
1434
1435 0.9.9a3 (October 12, 2001)
1436
1437 - more in the Users Guide (TR)
1438 - renamed #attribute as #attr (TR)
1439 - renamed #call as #silent (TR)
1440 - added #echo directive (TR)
1441
1442 0.9.9a2 (October 11, 2001)
1443
1444 - updated the example site and the SkeletonPage framework (TR)
1445 - fixed some small bugs (TR)
1446 - corrected some typos in the docs (TR + MO)
1447 - added Ian's sitehiearchy class to Cheetah.Tools (TR + IB)
1448
1449 0.9.9a1 (October 9, 2001) [many changes and bug-fixes]
1450
1451 - a complete reimplementation of Cheetah's core (the parser and compiler
1452 classes) (TR + IB)
1453 - implemented the #def, #implements, #import, and #from directives
1454 + removed #redefine and #macros
1455 + renamed #extend as #extends (TR + IB)
1456 - replaced #data with #settings, see the docs (TR)
1457 - restructured and updated the docs (TR + MO + IB)
1458 - reimplemented the cheetah-compile script, without the -g option that Ian
1459 had added (TR)
1460 - changed the signature of Template.__init__. See the docs. (TR)
1461 - made #set distinguish between local and global vars. See the docs. (TR)
1462 - added hundreds of new test cases (TR)
1463 - added the #breakpoint and #compiler-settings directives (TR)
1464 - started restructuring the SkeletonPage framework [not complete yet] (TR)
1465 - started restructuring the example sites [not complete yet] (TR)
1466
1467 0.9.8 (October 9, 2001)
1468
1469 - added a few new language constructs (aka 'directives') to Cheetah (TR)
1470 #while ... #end while
1471 #try ... #except ... #else ... #finally ... #end try
1472 - fixed a bug in the handling of local vars in #for loops that was preventing
1473 callable local vars from being handled properly. See Chuck's post of Sept
1474 10. (TR)
1475 - fixed a pointer bug in the C version of NameMapper.valueFromSearchList()
1476 that was yielding undefined values for the NotFound exception when it was
1477 raised (TR)
1478 - prefaced all internal args to Template() with underscores (TR)
1479 - fixed the problem with parsing triple quoted strings in arg lists (TR)
1480 - updated the docs (TR)
1481
1482 0.9.8a4 (September 7, 2001)
1483
1484 - Added -g (appendGen function argument), which compiles x.tmpl to xGen.py,
1485 with x.py being for non-generated Python code. Also changed option handling
1486 a little and added a comment to the top of compiled files. (IB + MO)
1487 - finalized the #include syntax after a lengthy discussion on the list
1488 This is different from in 0.9.8a3 (TR):
1489
1490 #include <ARGS> <EXPR>
1491 ... uses the value of EXPR as the path of the file to include.
1492
1493 #include <ARGS> source = <EXPR>
1494 ... includes the value of the EXPR
1495
1496 where <ARGS> is 'raw' or ''
1497 - re-implemented the output mechanism to use streaming via Webware's
1498 Transaction and Response objects when available and fake it with the
1499 DummyTransaction DummyResponse classes when the Webware Transaction is not
1500 avialable. This behaviour is roughly the same as in Webware's PSP. Will
1501 implement output buffering PHP-style later if there is any demand. (TR)
1502 - made #include a run-time directive rather than compile-time. This is
1503 slower, but the semantics are better. (TR)
1504 - various small optimizations to the generated code (TR)
1505 - updated the docs (TR)
1506
1507 0.9.8a3 (August 22, 2001) [includes changes for 0.9.8a1 and 0.9.8a2]
1508
1509 - Added package ./src/Tools/ for contributed classes/functions/packages not
1510 necessary to run Cheetah. The first such class is RecursiveNull.py by Ian
1511 Bicking. Added package Cheetah.Tools to list in ./setup.py . (MO)
1512 - Template.__init__ keyword arg 'searchList': no longer has to be a tuple. It
1513 may be a list or any type that that Python's 'tuple' function accepts. (MO)
1514 - Template.__init__ new keyword arg 'file': this may be a filename or file
1515 object to read the Template Definition from. If you use this, you must not
1516 pass a Template Definition string also. New instance variables
1517 ._fileName and ._fileMtime are set if a filename was passed; otherwise they
1518 are None. (MO)
1519 - CodeGenerator new function 'varNotFound_KeyError': raises KeyError if a
1520 placeholder name is missing when filling the template. Disabled by default.
1521 (MO) NB - this change has been superceeded by 'errorCheckers'
1522 - Template.getUnknowns (new method): returns a list of Placeholder Names
1523 missing in the Search List. (MO) - this change has been superceeded by
1524 'errorCheckers'
1525 - made changes to Template.py, CodeGenerator.py, PlaceholderProcessor.py,
1526 and TagProcessor.py to enable customization of the placeholderStartToken so
1527 it can be set to any character sequence, rather than just the default '\$'.
1528 This is configurable by the Template setting 'placeholderStartToken' (TR)
1529 - fixed a small bug in PlaceholderProcessor.processTag() that prevented
1530 static caching (i.e. \$\*) of a value containing ''' style quotes
1531 - added #break and #continue (TR)
1532 - fixed the relative path problem with #include when using Cheetah with WebKit
1533 (TR)
1534 - implemented the #stop directive (TR)
1535 - fixed a bug in the macro processing that prevented macros defined inside
1536 #includes from being visible at the top level (TR)
1537 - fixed a bug in the handling of the setting 'useAutocalling' (TR)
1538 - fixed some bugs in the handling of macros (TR)
1539 - completed the transition to nested template #includes (TR)
1540 - added direct #includes (TR)
1541 - completed the transition to run-time evaluation (TR)
1542 - renamed the .startServer() method of Template to .compile() (TR)
1543 - renamed the 'delayedStart' setting as 'delayedCompile' (TR)
1544 - added .redefineTemplateBlock as an alias to Template.defineTemplateBlock
1545 (TR)
1546 - got relative path includes working with Webware and Cheetah.Servlet (TR)
1547 - lots of changes in the docs (TR & MO)
1548 - implemented a C version of NameMapper (TR + CE)
1549 - added the 'errorCheckers' framwork (TR)
1550 - added the 'formatters' framework and the #formatter directive
1551 - a major restructuring of the modules and internal API (TR)
1552 - made sure that all the #directives with start and end tags are
1553 implemented in such a way that they won't cause 'maximum recursion' limit
1554 errors if their content block is long. Simple regexes didn't cut it in these
1555 cases. (TR)
1556
1557 - #macro
1558 - multiline comments
1559 - #data
1560 - #block
1561 - #raw
1562 - the parsing of the core tags (the state-dependent ones) after they have been
1563 translated to the internal delimiters
1564
1565 - made a Template.shutdown() method for cleaning up reference cycles before a
1566 template object is deleted. (TR)
1567 - made the parsing and processing of #macros() more robust (TR)
1568 - implemented the file update checking mechanism (TR)
1569 NOTE, the syntax for the #include is now::
1570
1571 #include <ARGS> file = <EXPR>
1572 ... uses the value of EXPR as the path of the file to include.
1573
1574 #include <ARGS> <EXPR>
1575 ... includes the value of the EXPR
1576
1577 where <ARGS> is 'raw' or 'direct'
1578
1579 0.9.7 (July 13, 2001)
1580
1581 - reimplemented the parsing of \$placeholders using the Python tokenize module (TR)
1582
1583 - now translates into Python code instead of going through NameMapper for
1584 each request
1585 - supports arg lists and nested placeholders
1586 - maintained support for autocalling of functions and methods,
1587 will do this serially for \$func.otherFunc, etc.
1588
1589 - reimplemented the #include and #raw directives using nested templates for
1590 parsed includes and string attributes of 'Template' to store raw text
1591 The support for file update monitoring of includes is still not implemented (TR)
1592 - moved some stuff from __init__.py into CHANGES and TODO (TR)
1593 - added a new command 'sdist_docs' to setup.py which rebuilds the docs
1594 when making a source distribution (TR)
1595 - changed the name of the ./Cheetah dir to ./src (TR)
1596 - fixed a bug in one of the code filters that was preventing commas from
1597 being used between \$placeholders (TR)
1598 - generalized the line ending regex for single-line comments (TR)
1599 - corrected the spelling of 'Delimiters' throughout Cheetah (TR)
1600 - made insertLines in Utilities.py more robust (Chuck)
1601 - added key argument to raising some NotFound exceptions in NameMapper (Chuck)
1602 - fixed strange bug involving missing templateObj parameter
1603 in PlaceholderProcessor.py(Chuck)
1604 - expanded on the docs (Mike)
1605
1606 0.9.6 (June 12, 2001)
1607
1608 - fixed a bug in NameMapper that was preventing 'obj.__class__.__name__' from mapping (TR)
1609
1610 0.9.5 (June 10, 2001)
1611
1612 - implemented the #cache directive - see the mailing list (TR)
1613 - reworked the handling of cached \$placeholders and set \$var to mean NO_CACHE,
1614 \$\*var to mean STATIC_CACHE, and \$\*15\*var to mean TIMED_REFRESH_CACHE (TR)
1615 - renamed Template._getValueForName as Template.mapName (TR)
1616
1617 0.9.4 (June 9, 2001)
1618
1619 - created a SettingsManager base class to handle settings for the Template class (TR)
1620 - moved the HTML docs icons into the same dir as the HTML (TR)
1621
1622 0.9.3
1623
1624 - updated the User's Guide Makefile. Builds HTML, PDF, and PS in the ./docs dir now. (TR)
1625 - changed the refs to 'Tavis Rudd' in the docs to 'The Cheetah Development Team' (TR)
1626 - added a few bits to the docs (TR)
1627 - did some internal renaming so 'nameMapperTags' are referred as 'placeholderTags' (TR)
1628 - added the #slurp directive (TR)
1629
1630 0.9.2
1631
1632 - got the PSP plugin working again. It still need test cases. (TR)
1633
1634 0.9.1
1635
1636 - Changed the name of the package to 'Cheetah' from TemplateServer (TR)
1637 - Changed the name of the Server module and its TemplateServer class to 'Template' (TR)
1638 - Changed the name of the 'TScompile' script to 'cheetah-compile' (TR)
1639 - updated the docs (TR)
1640
1641 0.9.0
1642
1643 - changed the names and behaviour of the #parse and #include directives (TR)
1644 see the docs for more. (TR)
1645 - changed #verbatim to #raw (TR)
1646 - fixed a bug in Tests.py that caused an error on the first run. (TR)
1647 - more docs (TR + MO)
1648 - ! all tests pass with Python 2.1 and 2.0 (TR)
1649
1650 0.8.4
1651
1652 - changed the #directive end tags to #end if instead of #/if and #end (TR)
1653 macro instead of #/macro (TR)
1654 - more work on the User's Guide (TR)
1655 - fixed a bug in TScompile (TR)
1656
1657 0.8.3
1658
1659 - fixed a problem with the regexs that caused \$vars and #directives at the (TR)
1660 very beginning of the template string not to match in Python 2.0 (TR)
1661 - removed some Test cases that made invalid assumptions about the order (TR)
1662 of items in dictionaries. (TR)
1663
1664 0.8.2
1665
1666 - finished half of the User's Guide (TR)
1667 - fixed several small bugs (TR)
1668 - added the #comment directive and removed the old <# multiline comment tag #> (TR)
1669 - changed the explicit directive closure to /# from ;# (TR)
1670
1671 0.7.6
1672
1673 - several small bug fixes (TR)
1674 - reimplemented the #block directive to avoid maximum recursion depth errors (TR)
1675 with large blocks. (TR)
1676 - created many new test cases in the regression testing suite (TR)
1677 - added an example site to the examples/ directory (TR)
1678 - started the User's Guide (TR)
1679
1680 0.7.5
1681
1682 - implemented the command-line compiler (TR)
1683
1684 0.7.3-4
1685
1686 - implemented the regression testing suite (TR)
1687 - fixed a number of small bugs (TR)
1688
1689 0.7.2
1690
1691 - implemented the #longMacro directive (TR)
1692
1693
1694 KEY TO INITIALS USED ABOVE::
1695
1696 TR - Tavis Rudd
1697 MO - Mike Orr
1698 JJ - Shannon 'jj' Behrens
1699 IB - Ian Bicking
1700 CE - Chuck Esterbrook
1701 MH - Mike Halle