Hii all,
for the past few days I was trying my hands on inheritance and i have done
single Inheritance but in case of multiple inheritance i am facing a
problem here is my code
*Model:*
*# Creating a master table for storing vehicle names.*
db.define_table(tblVehicleName,
I guess you need
db.define_table(tblDriver,
Field(DriverName,'string',label='Driver Name'),
Field('id_tblVehicle', db.tblVehicle,label='Vehicle Name'))
db.tblDriver.id_tblVehicle.requires=IS_IN_DB(db, 'tblVehicle.id', '%(
VehicleName)s')
--
Bruno Rocha
[http://rochacbruno.com.br]
*or you can try:*
db.define_table(tblVehicle,
Field(*VehicleName_id*,db.tblVehicleName,label='Vehicle Name'),
Field(VehicleNo, default=None,label='VehicleNo'),
format=*lambda row: %s % row.**VehicleName_id.VehicleName* )
Thanks for your reply Bruno
but still its not working , it is behaving as it was.
Regards,
Naleen Yadav
GENPRO Technologies Pvt Ltd.
On Fri, Nov 11, 2011 at 11:41 AM, Bruno Rocha rochacbr...@gmail.com wrote:
I guess you need
db.define_table(tblDriver,
4 matches
Mail list logo