before the db.read add

db.ref_eregistry.report_name.readable=True

On Oct 8, 2:55 pm, Richard Vézina <[email protected]> wrote:
> Hello,
>
> How can I make a computed field appear in a crude.read?
>
> For example :
>
> db.ref_eregistry.report_name.compute=lambda r:
> r['report_date'].strftime("%Y%m%d")+r['report_author']+r['report_num']
>
> But if I do
>
> crud.read(db.ref_eregistry,1)
>
> I will have all the other field except the compute field.
>
> Thanks
>
> Richard

Reply via email to