Tweak base BatchRowCrud
view class, for fieldset customization.
This commit is contained in:
parent
6ac13286cb
commit
e01e323d3e
|
@ -1020,6 +1020,22 @@ class BatchRowCrud(BaseCrud):
|
||||||
"""
|
"""
|
||||||
return self.batch_class.__name__
|
return self.batch_class.__name__
|
||||||
|
|
||||||
|
def fieldset(self, row):
|
||||||
|
"""
|
||||||
|
Creates the fieldset for the view. Derived classes should *not*
|
||||||
|
override this, but :meth:`configure_fieldset()` instead.
|
||||||
|
"""
|
||||||
|
fs = self.make_fieldset(row)
|
||||||
|
self.configure_fieldset(fs)
|
||||||
|
return fs
|
||||||
|
|
||||||
|
def configure_fieldset(self, fieldset):
|
||||||
|
"""
|
||||||
|
Derived classes can override this. Customizes a fieldset which has
|
||||||
|
already been created with defaults by the base class.
|
||||||
|
"""
|
||||||
|
fieldset.configure()
|
||||||
|
|
||||||
def template_kwargs(self, form):
|
def template_kwargs(self, form):
|
||||||
"""
|
"""
|
||||||
Add batch row instance etc. to template context.
|
Add batch row instance etc. to template context.
|
||||||
|
|
Loading…
Reference in a new issue