Hello,

I have this code in a select function that work in command line to display
or not a computed field, so I can't figure out why it's not working in
app...


The computed field in red should not appear in grid view...

CONTROLLER :
elif auth.has_membership(auth.id_group('admin')):
fieldsBlackList=[db[request.args(0)].seizure.name,
    db[request.args(0)].seizure_date.name,
    db[request.args(0)].last_action_by.name,
    db[request.args(0)].sdate.name,
    db[request.args(0)].merged_for_validation.name] # Ex.:
db[request.args(0)].id.name
field2Show=[ request.args(0)+'.%s'%f for f \
    in db[request.args(0)].fields if f not in fieldsBlackList ]
rows=db().select(*field2Show)
table=SQLTABLE(rows,headers=headersRepresent,_class='sortable',
    truncate=None)

Any idea?


Richard

Reply via email to