Permalink
Browse files

*** empty log message ***

  • Loading branch information...
1 parent 6581e8f commit 6f5a89f58d76f3fee6ac5b445ed4ed5e757e0762 tavis_rudd committed May 1, 2002
Showing with 28 additions and 3 deletions.
  1. +28 −3 TODO
View
@@ -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)

0 comments on commit 6f5a89f

Please sign in to comment.