-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

what about splitting it into a general 'getUrl' for any kind of URL
and then specialize it into the 'getUrl' of the site object??? That
would satisfy both of our wishes...?! ;))) (a good compromise - what
do you think?)

Greetings

On 29.01.2012 21:29, Merlijn van Deen wrote:
> On 29 January 2012 21:09, <[email protected] <mailto:[email protected]>>
> wrote:
> 
> ...but the idea is you could read any web page via 
> wikipedia.site.getUrl(path, no_hostname = True)
> 
> no_hostname must be assigned to True for doing this.
> 
> 
> Hm, it seems I have misread the code. Indeed, cookies are not
> written of no_hostname=True.
> 
> However, my point remains: this is not something Site.getUrl
> /should/ do, as it is not related to the Site object /at all/. As
> far as I am concerned, this parameter should be *removed* rather
> than *encouraged* - general http functions should be in a *general*
> module, /not/ in the site object.
> 
> Of course, this refactoring has already been done correctly in the 
> rewrite...
> 
> Best, Merlijn
> 
> 
> _______________________________________________ Pywikipedia-l
> mailing list [email protected] 
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8lsBkACgkQAXWvBxzBrDDBggCfe2ZR7XZcqT/Cwkp4stlKS67H
IocAmwSY2mIZlxBbhp4aUEnmuZ5CgKW9
=rRg+
-----END PGP SIGNATURE-----

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to