Thanks to Massimo and Bruno for this. It is very nice to be able to
choose the style of the table. A couple of suggestions. It would be
good if the 'vars' are passed with the 'view', 'edit' etc and then
passed back again, so the order and keywords are persistent. It would
also be useful if the 'page number' were included in the vars so that
one also returned to the same page. At some stage control over
colwidths would be nice.

Is there an easy way to overide the view function?

Thanks
Peter



On Aug 24, 2:02 pm, Johann Spies <[email protected]> wrote:
> > TypeError: <lambda>() takes exactly 1 argument (2 given)
>
> I still get this error with the following model (all 'represent'  lines
> commented out):
>
>  db.define_table('akb_articles',
>                 Field('title'),
>                 Field('primaryauthor'),
>                 Field('authors', 'text'),
>                 Field('rp_author', length=64,
>                        requires =
> IS_EMPTY_OR(IS_IN_DB(db,'akb_reprint.uuid', '%(rp_author)s'))),
>                 Field('journal',
>                       requires = IS_IN_DB(db,'akb_journal.uuid',
> '%(title)s')),
>                 Field('bib_id'),
>                 Field('bib_pages'),
>                 Field('doctype'),
>                 Field('language'),
>                 Field('abstract', 'text'),
>                 Field('bib_vol'),
>                 Field('bib_date'),
>                 Field('url'),
>                 Field('pubyear', compute= lambda x: x['bib_date'][-4:]),
>                 Field('ut', # isi-unieke rekordnommer
>
> requires=IS_EMPTY_OR(IS_NOT_IN_DB(db,'akb_articles.ut'))),
>                 Field('scopus_id',
> requires=IS_EMPTY_OR(IS_NOT_IN_DB(db,'akb_articles.scopus_id'))),
>                 Field('sabinet_id',
> requires=IS_EMPTY_OR(IS_NOT_IN_DB(db,'akb_articles.sabinet_id'))),
>                 Field('isap_id',
> requires=IS_EMPTY_OR(IS_NOT_IN_DB(db,'akb_articles.isap_id'))),
>                 Field('category', 'list:string', IS_EMPTY_OR(
>                     IS_IN_DB(db,'akb_categories.uuid',
>                              '%(category)s',
>                              multiple=True))),
>                 Field('heading', 'list:string',  IS_EMPTY_OR(
>                     IS_IN_DB(db,'akb_headings.uuid', '%(headings)s',
>                              multiple=True))),
>                 Field('art_eq',compute= lambda x: art_ekw(x)),
>                 akb_signature,
>                 #format = '%(title)s'
>                )
>
> There is no 'lambda' in akb_signature.
>
> Regards
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a

Reply via email to