Dear All ,
i want to get some stuff from the database and add to the menu , like
i have music instruments am trying to get the instruments from the
database and add to the menu , but its not working :
menu.py :
instruments = db().select(db.Instruments.ALL)
myins = []
for ins in instruments:
myins.append((T(Instrument_name), False,
URL('default','Instruments',args=Instrument_name),)
response.menu = [
(T('Home'), False, URL('default','index'), [])
(T('Instruments'), False, URL('default','Instruments'), [
myins
])
]
how can i do this ?
Best Regards