Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tavis_rudd committed May 18, 2005
1 parent ba72401 commit f670ad2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
27 changes: 0 additions & 27 deletions BUGS
Expand Up @@ -5,33 +5,6 @@ See the file CHANGES for a list of bugs that have been resolved.
Developers: if a bug was significant and affected a released version of
Cheetah, be sure to note its fix in the CHANGES file!


Clash between searchList and locally assigned variables
=======================================================
@@TR 2004-12-30: I'm about to checkin some changes that will fix this.

On Saturday 31 January 2004 05:29, <psyche@mensa.org.pl> wrote:
from Cheetah.Template import Template as tmpl
print tmpl( \
'''
#if False
#for $a in [1]:
#end for
#end if

$a
''', searchList=[{'a': 3}])

throws exception:

Traceback (most recent call last):
File "P:\python\cheetah\bug.py", line 16, in ?
print t
File "<string>", line 36, in respond
UnboundLocalError: local variable 'a' referenced before assignment

...it shouldn't, right?

Compiler forgets commas
=======================
@@TR: This is not a bug. Python and Cheetah's syntax requires commas.
Expand Down
7 changes: 0 additions & 7 deletions TODO
Expand Up @@ -10,13 +10,6 @@ Cheetah TODO list

Requirements for 1.0
=========================================================================
- Remove the use of temp files with dynamically compiled templates.
When compiling a template on the fly, Cheetah writes mymodule.py and then
imports it; however, it imports /tmp/mymodule.py instead if it exists. This is
wrong and a potential security hole. Anyway, it's possible to create a module
entirely in memory (see 'new' module) without writing a temporary file, and
that makes more sense.

- "cheetah test" problem: subcommands fail mysteriously on Windows. Rewrite
to avoid using subcommands. Instead, set sys.argv and call the appropriate
main() for each test.
Expand Down

0 comments on commit f670ad2

Please sign in to comment.