Re: [Wikitech-l] POST api requests not working in python

2010-06-21 Thread Jim Tittsler
On 2010-06-22 08:03, Eric Sun wrote: > I'm trying to run action=query in Python with a POST request, but for some > reason it only works with a GET. [...] > This doesn't work (POST): req = urllib2.Request('http://en.wikipedia.org/w/api.php', > 'action=query&titles=The_Matrix&export&format=txt'

Re: [Wikitech-l] accessibility problems with vector

2010-06-21 Thread Aryeh Gregor
On Mon, Jun 21, 2010 at 5:57 AM, Tisza Gergo wrote: > Infoboxes would do fine, navboxes not so much. Consider something like [1], > how > would that work with fixed widths? > > If I remember correctly, there was an effort a while ago to make navbox markup > less ugly (make it use a single table a

Re: [Wikitech-l] accessibility problems with vector

2010-06-21 Thread Tisza Gergo
Marco Schuster harddisk.is-a-geek.org> writes: > But why is IE8 falling back to compat-mode at Wikimedia sites? Microsoft has a blacklist for sites they deem incompatible with IE8, and Wikimedia sites are on that list (see [1]). No idea why, Wikipedia looks pretty much the same in IE7 and (non-

[Wikitech-l] POST api requests not working in python

2010-06-21 Thread Eric Sun
Hi, I'm trying to run action=query in Python with a POST request, but for some reason it only works with a GET. This works fine (GET): >>> req = urllib2.Request(' http://en.wikipedia.org/w/api.php?action=query&titles=The_Matrix&export&format=txt ') >>> f = urllib2.urlopen(req, None, 300) >>> prin

Re: [Wikitech-l] accessibility problems with tables/infoboxes

2010-06-21 Thread Neil Kandalgaonkar
On 06/21/2010 08:34 AM, Daniel Kinzler wrote: > The original comment was actually about the box structure on the main page. > Which is a presentational table. Infoboxes are, arguabley, "real" tables. > Though > often it's a real table wrapped in a presentational table, wich is pretty bad. Agreed.

Re: [Wikitech-l] accessibility problems with tables/infoboxes

2010-06-21 Thread Daniel Kinzler
Neil Kandalgaonkar schrieb: > On 6/20/10 10:42 AM, Aryeh Gregor wrote: >> I'm pretty sure that infoboxes can be done just fine with divs. > > But wait -- an infobox is not a presentational table. Insofar as it > presents a key-value structure, it's also semantically a table. So in > this context

Re: [Wikitech-l] table-* CSS attributes

2010-06-21 Thread Neil Kandalgaonkar
On 6/21/10 2:57 AM, Tisza Gergo wrote: > Aryeh Gregor gmail.com> writes: > >> You can't get the exact >> auto-width algorithm for the cells, but in typical infoboxes it will >> be fine if you just set it to 50% or something. As I mentioned in another post, this is probably a case where you actu

Re: [Wikitech-l] accessibility problems with tables/infoboxes (was: vector)

2010-06-21 Thread Neil Kandalgaonkar
On 6/20/10 10:42 AM, Aryeh Gregor wrote: > I'm pretty sure that infoboxes can be done just fine with divs. But wait -- an infobox is not a presentational table. Insofar as it presents a key-value structure, it's also semantically a table. So in this context, tags are just fine, and it's up to s

Re: [Wikitech-l] accessibility problems with vector

2010-06-21 Thread Tisza Gergo
Aryeh Gregor gmail.com> writes: > I'm pretty sure that infoboxes can be done just fine with divs. Not > exactly as they are now, but well enough. You can't get the exact > auto-width algorithm for the cells, but in typical infoboxes it will > be fine if you just set it to 50% or something. And