On 5月13日, 下午2時44分, dakila <
dak...@gmail.com> wrote:
> Hello,
>
> in the create controller, I just changed the
> value = provider.select(tableName=self.tablename,values=kw)
> to
> value = getTableValue(model=User)
>
> It seems getTableValue will work for tables with many to many relation
> to other table (ie tg_group).
> makeTable returns a datagrid widget that also requires the other
> 'mapped' properties. However provider.select will only return rows
> containing only the columns in the table. Therefor calls by the
> datagrid to that column (in this case tg_groups) produces the
> NoSuchColumnError: "Could not locate column in row for column
> 'tg_groups'".
>
> I am not sure if this can be considered a crud bug, since the produced
> controller already contains the import statement for getTableValue. If
> it is a bug I can create a ticket in trac.
>
> Dax