[web2py] Re: display logo pic in header top

2013-04-18 Thread Niphlod
if you're using the scaffolding app then set response.logo accordingly by default is response.logo = A(B('web',SPAN(2),'py'),XML('trade;nbsp;'), _class=brand,_href=http://www.web2py.com/;) replace, e.g., the B() element with an IMG() one and you're good to go. On

[web2py] Re: display logo pic in header top

2013-04-18 Thread 黄祥
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),