From ac282ee21905fa7c219bdc7928092e1abcaf5b73 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Wed, 4 Jul 2012 19:02:52 +0200 Subject: [PATCH] lang: fix nested template. closes #513 --- kivy/lang.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivy/lang.py b/kivy/lang.py index b2321c7e5..c3ebfc7d6 100644 --- a/kivy/lang.py +++ b/kivy/lang.py @@ -1231,6 +1231,8 @@ class BuilderBase(object): ctx = {} idmap = copy(global_idmap) idmap.update({'root': rctx['ids']['root']}) + if 'ctx' in rctx['ids']: + idmap.update({'ctx': rctx['ids']['ctx']}) try: for prule in crule.properties.itervalues(): value = prule.co_value