use StrippingFieldRenderer for LabelProfile.printer_spec and .formatter_spec

This commit is contained in:
Lance Edgar 2012-11-28 09:32:22 -08:00
parent 589c3e6ca6
commit a53f4477e4

View file

@ -33,8 +33,9 @@ import formalchemy
from webhelpers.html import HTML
from edbob.pyramid import Session
from edbob.pyramid.grids.search import BooleanSearchFilter
from edbob.pyramid.views import SearchableAlchemyGridView, CrudView
from edbob.pyramid.grids.search import BooleanSearchFilter
from edbob.pyramid.forms import StrippingFieldRenderer
import rattail
@ -101,6 +102,8 @@ class ProfileCrud(CrudView):
return super(FormatFieldRenderer, self).render(**kwargs)
fs = self.make_fieldset(model)
fs.printer_spec.set(renderer=StrippingFieldRenderer)
fs.formatter_spec.set(renderer=StrippingFieldRenderer)
fs.format.set(renderer=FormatFieldRenderer)
fs.configure(
include=[