[Checkins] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/clauses.py Replicate in end-handler.
Malthe Borch
mborch at gmail.com
Sun Nov 16 18:59:38 EST 2008
Log message for revision 93026:
Replicate in end-handler.
Changed:
U Sandbox/malthe/chameleon.core/src/chameleon/core/clauses.py
-=-
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/clauses.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/clauses.py 2008-11-16 23:38:06 UTC (rev 93025)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/clauses.py 2008-11-16 23:59:38 UTC (rev 93026)
@@ -409,7 +409,10 @@
if self.clauses:
if not self.finalize:
temp = stream.restore()
- stream.write("if %s:" % temp)
+ if self.invert:
+ stream.write("if not (%s):" % temp)
+ else:
+ stream.write("if %s:" % temp)
stream.indent()
for clause in reversed(self.clauses):
clause.end(stream)
More information about the Checkins
mailing list