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]