Re: [pygtk] GtkHTML 0.1 question, bug?!?!



There is a function urllib.basejoin(base, url) that will convert a base
URL and a possibly relative url and give you an absolute one.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Mon, 10 Apr 2000, Hassan Aurag wrote:

> 
>  Hi,
> 
>  I am using gnome-python the latest. Gtkhmtl works fine until you load 
> urls.
> 
>  I am not sure how the python bindings use gtkhtml or python urllib 
> stuff, but all relative urls are scrapped somehow. Which means that it 
> will look for <img src="gifs/whatever.png"> locally instead of 
> relatively to the base url I gave it.
> 
>  I have used the gtkhtml_demo.py stuff as basic ingredient. For python 
> illiterates
> 
>  you usually use something like urllib.urlopen(url) which returns the 
> whole page as raw data that you then feed to gtkhtml using its write 
> method.
> 
>  And this where I don't know how things go, but relative urls don't 
> work, and believe me when I say all out there are usually relative 
> stuff.
> 
>    
> 
> 
> 
> -
> To unsubscribe: echo "unsubscribe" | mail pygtk-request@daa.com.au
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]