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
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
{{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
3 matches
Mail list logo