use StrippingFieldRenderer for LabelProfile.printer_spec and .formatter_spec
This commit is contained in:
parent
589c3e6ca6
commit
a53f4477e4
|
@ -33,8 +33,9 @@ import formalchemy
|
||||||
from webhelpers.html import HTML
|
from webhelpers.html import HTML
|
||||||
|
|
||||||
from edbob.pyramid import Session
|
from edbob.pyramid import Session
|
||||||
from edbob.pyramid.grids.search import BooleanSearchFilter
|
|
||||||
from edbob.pyramid.views import SearchableAlchemyGridView, CrudView
|
from edbob.pyramid.views import SearchableAlchemyGridView, CrudView
|
||||||
|
from edbob.pyramid.grids.search import BooleanSearchFilter
|
||||||
|
from edbob.pyramid.forms import StrippingFieldRenderer
|
||||||
|
|
||||||
import rattail
|
import rattail
|
||||||
|
|
||||||
|
@ -101,6 +102,8 @@ class ProfileCrud(CrudView):
|
||||||
return super(FormatFieldRenderer, self).render(**kwargs)
|
return super(FormatFieldRenderer, self).render(**kwargs)
|
||||||
|
|
||||||
fs = self.make_fieldset(model)
|
fs = self.make_fieldset(model)
|
||||||
|
fs.printer_spec.set(renderer=StrippingFieldRenderer)
|
||||||
|
fs.formatter_spec.set(renderer=StrippingFieldRenderer)
|
||||||
fs.format.set(renderer=FormatFieldRenderer)
|
fs.format.set(renderer=FormatFieldRenderer)
|
||||||
fs.configure(
|
fs.configure(
|
||||||
include=[
|
include=[
|
||||||
|
|
Loading…
Reference in a new issue