If I use SQLFORM.grid in the code below, I get an error message:
fields = reduce(lambda a,b:a+b,[[field for field in table] for table
in tables])
TypeError: reduce() of empty sequence with no initial value
If I use the 'data = ' lines using SQLFORM.smartgrid there is now problem.
query = db(db.akb_doccenter.id > 0)
columns = [db.akb_doccenter.title, db.akb_doccenter.author,
db.akb_doccenter.publication_date,
db.akb_doccenter.doc_nr, db.akb_doccenter.location,
db.akb_doccenter.id]
data = SQLFORM.grid(query, columns = columns, orderby =
db.akb_doccenter.title | db.akb_doccenter.publication_date,
maxtextlength = 60)
# data = SQLFORM.smartgrid(db.akb_doccenter, orderby =
db.akb_doccenter.title | db.akb_doccenter.publication_date,
# maxtextlength = 60)
Is that a bug in my code or in the trunk?
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