From a53f4477e459d2a95395776b84377aad629d280b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 28 Nov 2012 09:32:22 -0800 Subject: [PATCH] use StrippingFieldRenderer for LabelProfile.printer_spec and .formatter_spec --- rattail/pyramid/views/labels.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rattail/pyramid/views/labels.py b/rattail/pyramid/views/labels.py index 931cb14e..be2be88a 100644 --- a/rattail/pyramid/views/labels.py +++ b/rattail/pyramid/views/labels.py @@ -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=[