[Checkins] SVN: Sandbox/malthe/chameleon.core/ Fixed issue with the translation domain variable (internal).
Malthe Borch
mborch at gmail.com
Sun Nov 16 06:36:40 EST 2008
Log message for revision 93003:
Fixed issue with the translation domain variable (internal).
Changed:
U Sandbox/malthe/chameleon.core/CHANGES.txt
U Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-16 11:35:19 UTC (rev 93002)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt 2008-11-16 11:36:40 UTC (rev 93003)
@@ -4,6 +4,10 @@
HEAD
~~~~
+- Added translation language to main scope and make sure redefining it
+ inside a closure does not cause issues with nested scope
+ locals. [malthe]
+
1.0b8 (released 16/11/2008)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-16 11:35:19 UTC (rev 93002)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py 2008-11-16 11:36:40 UTC (rev 93003)
@@ -332,9 +332,10 @@
subclauses = []
subclauses.append(
- clauses.Method(callback, (
- remote_scope,), types.value(
- '%s.getvalue()' % self.symbols.out)))
+ clauses.Method(
+ callback, (
+ remote_scope, "%s=%s" % (self.symbols.domain, self.symbols.domain)),
+ types.value('%s.getvalue()' % self.symbols.out)))
subclauses.append(
clauses.UpdateScope(self.symbols.scope, remote_scope))
subclauses.append(clauses.Assign(
@@ -642,6 +643,7 @@
(stream.symbols.out,
stream.symbols.write,
stream.symbols.scope,
+ stream.symbols.domain,
stream.symbols.language) + \
tuple(parameters)))
More information about the Checkins
mailing list