diff --git a/tailbone/app.py b/tailbone/app.py index 352b67f6..437d9808 100644 --- a/tailbone/app.py +++ b/tailbone/app.py @@ -122,9 +122,6 @@ def make_pyramid_config(settings, configure_csrf=True): """ Make a Pyramid config object from the given settings. """ - from tailbone.forms.alchemy import TemplateEngine - from tailbone.forms import renderers - config = settings.pop('pyramid_config', None) if config: config.set_root_factory(Root) @@ -158,14 +155,6 @@ def make_pyramid_config(settings, configure_csrf=True): for key, label in perms: config.add_tailbone_permission(groupkey, key, label) - # Configure FormAlchemy. - fa.config.engine = TemplateEngine() - fa.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer - fa.FieldSet.default_renderers[sa.Date] = renderers.DateFieldRenderer - fa.FieldSet.default_renderers[sa.DateTime] = renderers.DateTimeFieldRenderer - fa.FieldSet.default_renderers[sa.Time] = renderers.TimeFieldRenderer - fa.FieldSet.default_renderers[GPCType] = renderers.GPCFieldRenderer - return config