just wanna share what niphlod explained above:
i assume you store the logo in company table with the field trademark to
save your image file
models/menu.py
rows = db(db.company.id == 1).select()
for row in rows:
response.logo = IMG(_src=URL('download', args=row.trademark),
_width="20px", _title=row.name, _class="brand")
it is ok, if you want to use html helper A(), but you must deal with css
(padding, etc).
e.g.
response.logo = A(IMG(_src=URL('download', args=row.trademark),
_width="20px", _title=row.name),
_class="brand",_href=row.website)
hope this can help
best regards
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.