summaryrefslogtreecommitdiff
path: root/talinterpreter.py
diff options
context:
space:
mode:
authorGodefroid Chapelle <gotcha@bubblenet.be>2003-08-15 14:02:45 +0000
committerGodefroid Chapelle <gotcha@bubblenet.be>2003-08-15 14:02:45 +0000
commit993c2171c1f8e0d4d657249b347e5c589f35fc8a (patch)
treefb3049da69e58a1fa37867c9e95d874e2a3961cd /talinterpreter.py
parent4db66296aa2fb4ace332451eea9430713dd8c910 (diff)
downloadzope-tal-993c2171c1f8e0d4d657249b347e5c589f35fc8a.tar.gz
some reformatting to ease comparisons between 2.x and 3
Diffstat (limited to 'talinterpreter.py')
-rw-r--r--talinterpreter.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/talinterpreter.py b/talinterpreter.py
index 276a74a..f79141e 100644
--- a/talinterpreter.py
+++ b/talinterpreter.py
@@ -325,16 +325,16 @@ class TALInterpreter:
value = None
else:
ok = 0
- else:
- if expr is not None:
- evalue = self.engine.evaluateText(item[3])
- if evalue is self.Default:
- if action == 'insert': # Cancelled insert
- ok = 0
- else:
- if evalue is None:
- ok = 0
- value = evalue
+ elif expr is not None:
+ evalue = self.engine.evaluateText(item[3])
+ if evalue is self.Default:
+ if action == 'insert': # Cancelled insert
+ ok = 0
+ else:
+ if evalue is None:
+ ok = 0
+ value = evalue
+
if ok:
if xlat:
translated = self.translate(msgid or value, value, {})
@@ -344,7 +344,6 @@ class TALInterpreter:
value = name
value = "%s=%s" % (name, quote(value))
return ok, name, value
-
bytecode_handlers["<attrAction>"] = attrAction
def no_tag(self, start, program):