summaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authortavis_rudd <tavis_rudd>2002-05-01 07:48:34 +0000
committertavis_rudd <tavis_rudd>2002-05-01 07:48:34 +0000
commit6f5a89f58d76f3fee6ac5b445ed4ed5e757e0762 (patch)
treea3e96eb2dccc227129ce167109ce66f962346fd5 /TODO
parent6581e8f765b75984514edee3a9f9d458a9498350 (diff)
downloadpython-cheetah-6f5a89f58d76f3fee6ac5b445ed4ed5e757e0762.tar.gz
*** empty log message ***
Diffstat (limited to 'TODO')
-rw-r--r--TODO31
1 files changed, 28 insertions, 3 deletions
diff --git a/TODO b/TODO
index 7dcb6ea..7ccf03f 100644
--- a/TODO
+++ b/TODO
@@ -24,9 +24,34 @@ Implementation
- implement some better error handling for misformed #for, #if, #try directives,
etc. At the moment these errors are not caught until Python executes the
code.
- Also, catch '#end directive' without '#directive'. For instance,
- '#end cache' without '#cache' causes a cryptic compile error:
- AttributeError: AutoMethodCompiler instance has no attribute '_cacheID'
+
+- create better error message for bad code such as:
+ ##cache
+ This is a cached region. $voom
+ #end cache
+
+- fix bug in Parser.getDefArgList() that is mucking up lists where the comma has
+ been forgotten:
+
+ > #cache timer='.5m' id='cache1'
+ > This is a cached region. $voom
+ > #end cache
+ >
+ > the error is:
+ >
+ > "/local/opt/Python/lib/python2.2/site-packages/Webware/Cheetah/Compiler.py",
+ > line 102, in genCacheInfoFromArgList
+ > val = self.genTimeInterval(val)
+ > File
+ > "/local/opt/Python/lib/python2.2/site-packages/Webware/Cheetah/Compiler.py",
+ > line 75, in genTimeInterval
+ > interval = float(timeString)*60
+ > ValueError: invalid literal for float(): .5m' id'cache1
+ >
+ >
+ > Running under pdb shows that Parser.getDefArgList() returned:
+ > "30m' id'cache1" .
+
- finish the #cache directive's varyBy keyword (tied to Tavis' proposed caching
framework for Webware)