From 19de23927e0a4e28f93024d9a8bf55caa86eb8f6 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 27 Sep 2017 16:46:09 +0200 Subject: [PATCH] overriding deform templates, missing config --- ordr2/schemas/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ordr2/schemas/__init__.py b/ordr2/schemas/__init__.py index fd7c18e..4e6a6c1 100644 --- a/ordr2/schemas/__init__.py +++ b/ordr2/schemas/__init__.py @@ -6,11 +6,16 @@ from .helpers import ( deferred_csrf_validator ) +from deform.renderer import configure_zpt_renderer + +# Make Deform widgets aware of our widget template paths +configure_zpt_renderer(['ordr2:templates/deform']) # Base Schema class CSRFSchema(colander.Schema): ''' base class for schemas with csrf validation ''' + csrf_token = colander.SchemaNode( colander.String(), default=deferred_csrf_default,