>
> {{ = XML('<img src="%s">' % 'https://some_url/image01.jpg') ) }}
>

The above code is fine, except there is an extra ")" at the end. Another 
option is to use the IMG helper:

{{=IMG(_src='https://some_url/image01.jpg')}}

https://money.yandex.ru/i/shop/mosenergosbut.gif
>

If you are wondering why the above image in particular doesn't show up when 
you attempt to display it with an img tag, they are probably using some 
mechanism to prevent 
hotlinking<http://simple.wikipedia.org/wiki/Hotlinking>(e.g., they check the 
HTTP_REFERER header and return a 302 not found error 
when external sites attempt to load the image). If you want to display the 
image (and doing so is not prohibited by copyright), you will have to 
download the image and serve it yourself.

Anthony 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.

Reply via email to