Work around formalchemy config bug, caused by edbob.

This commit is contained in:
Lance Edgar 2015-11-04 22:30:30 -06:00
parent be2a1ba862
commit 8928d03cef

View file

@ -132,6 +132,9 @@ def make_pyramid_config(settings):
formalchemy.config.engine = TemplateEngine()
formalchemy.FieldSet.default_renderers[sa.Boolean] = renderers.YesNoFieldRenderer
formalchemy.FieldSet.default_renderers[sa.Date] = renderers.DateFieldRenderer
# TODO: Maybe implement our own some day, but for now we must include this
# DateTime fix to work around a bug in edbob code.
formalchemy.FieldSet.default_renderers[sa.DateTime] = formalchemy.DateTimeFieldRenderer
formalchemy.FieldSet.default_renderers[GPCType] = renderers.GPCFieldRenderer
return config