Hi Jorge,

You can achieve this without changing FastDataGrid and satisfying "Law
of Demeter" along the way by adding a property that will delegate to
its attribute's property, e.g.:

class Analise:
def _get_descricao(self):
  return self.segmento.descricao
 descricao = property(fget=_get_descricao) # not needed with SQLObject

grid_analises = datawidgets.FastDataGrid(
    fields = [
    (lazy_gettext('Segmento'), 'descricao'), 
...])

HTH,
Max.

Reply via email to