Re: [web2py] Name error, but only if I run it in view..

2010-11-24 Thread Ole Martin Maeland
Hi, That will not work. I just read the output from dict - companies - that is a query on db.newcomp. So only keys in dict will be the database names - id, uuid, address. It works for id and uuid, but not for name and address. state that it is not defined, but it's in the db, it's in the db

[web2py] Name error, but only if I run it in view..

2010-11-19 Thread Ole Martin Maeland
Hi, If anyone have a answer - pls. reply: *My model:* db.define_table('newcomp', Field('uuid', length=64, default=uuid.uuid1()), Field('name'), Field('address')) db.newcomp.uuid.writable=False when I run this directly from the controller, or in db admin tool is works fine. When I

Re: [web2py] Name error, but only if I run it in view..

2010-11-19 Thread Kenneth Lundström
{{for company in companies:}} tr td{{=uuid}}/td td{{=address}}/td /tr {{pass}} Shouldn´t this be like td{{=company.uuid}}/td td{{=company.address}}/td or maybe td{{=companies[company].uuid}}/td td{{=campanies[company].address}}/td Kenneth