I'm not sure whether I understand you correctly but here's a trick I
use.

class InlineWidget(Widget):
    def __call__(self, obj):
        return self.insert(obj)

book_catalog_form =
DataGrid(template="bookswap.templates.pagedatagrid",
        fields=[
            (_(u'info'),
InlineWidget(template='bookswap.templates.cat_bookinfo')),
            (_(u'location'), 'location'),
            (_(u'price'), 'price'),
            (_(u'added'), book_added_pprinter),
            ('',
InlineWidget(template='bookswap.templates.cat_actions')),
        ])

Templates like .cat_actions has <?python item=widget_value?> on top and
the renders the item as they see fit.

Reply via email to