From 2e1bdb949129e2da2a3c9a58ed658ce34cbb9dba Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Fri, 15 Aug 2014 11:43:46 +0200 Subject: [PATCH] [gen] Bugfixes. --- fields/__init__.py | 4 ++-- fields/string.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fields/__init__.py b/fields/__init__.py index 431d89b..077839f 100644 --- a/fields/__init__.py +++ b/fields/__init__.py @@ -90,8 +90,8 @@ class Field: context['obj'] = ('tied' in ctx) and ctx['tied'] or ctx['obj'] context['zobj'] = context['obj'].o # Copy some keys from the context of the currently executed PX. - for k in ('tool', 'ztool', 'req', '_', 'q', 'url', 'dright', 'dleft', \ - 'inPopup'): + for k in ('tool', 'ztool', 'req', '_', 'q', 'url', 'dir', 'dright', + 'dleft', 'inPopup'): if k in context: continue context[k] = ctx[k] return self.pxRender(context).encode('utf-8') diff --git a/fields/string.py b/fields/string.py index f7d599b..f2e78ff 100644 --- a/fields/string.py +++ b/fields/string.py @@ -129,9 +129,11 @@ class String(Field): pxMultilingual = Px(''' - +
:field.pxLanguage -
:field.subPx[layoutType][fmt]