Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of DummyTemplate


Ignore:
Timestamp:
07/04/06 12:12:17 (11 years ago)
Author:
sean@…
Comment:

added a comment

Legend:

Unmodified
Added
Removed
Modified
  • DummyTemplate

    v1 v2  
    3131please note that the template_locals function maybe filter out whatever you like all that needs to be done is add more lines to that if. 
    3232 
    33 peace  
     33peace 
     34 
     35---- 
     36 
     37Just a small note. You shouldn't do identity tests on strings, its only the fact that small strings are (by convention) cached, that allows an `is` test to succeed in this case. So `and not name is "std"` should be `and name != "std"`. (any literal string over a certain number of characters will generate a new object every time, with my version of python 2.4.1 its 9 characters) 
     38 
     39-- Sean Jamieson