User talk:Dispenser/AltEdit

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

How to skip to next article in AltEdit[edit]

Hi, Dispenser. I was checking out AltEdit and wanted to skip past Saturn V but I did not see a way to skip to the next WikiProject Space article needing AltEdit help.

Please advise. Cheers! {{u|Checkingfax}} {Talk} 07:48, 26 February 2016 (UTC)[reply]

Ok, I've hack in a skip button at the top. I'd like to add other things (Show only map/portraits/screenshots), but the Grants team want to see more engagement (like 20-50 people making 10-50 edits daily) before they commit any resources. — Dispenser 15:34, 26 February 2016 (UTC)[reply]

Bug in altedit.py[edit]

I clicked on "Former countries" and got this exception dump:

Traceback (most recent call last):
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 454, in <module>
    main()
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 232, in main
    print '<script>location.assign(%s);</script>' % wikipedia.jsescape('?page=%s&banner=%s&client=topic:%s' % tuple(wikipedia.urllib.quote(x) for x in cursor.fetchall()[0]))
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 232, in <genexpr>
    print '<script>location.assign(%s);</script>' % wikipedia.jsescape('?page=%s&banner=%s&client=topic:%s' % tuple(wikipedia.urllib.quote(x) for x in cursor.fetchall()[0]))
  File "/usr/lib/python2.7/urllib.py", line 1288, in quote
    return ''.join(map(quoter, s))
KeyError: u'\xf6'

Thanks for looking into that. — Preceding unsigned comment added by TheBlueWizard (talkcontribs) 19:01, 27 February 2016 (UTC)[reply]

Another bug in altedit.py[edit]

I clicked on "Turkey" and got this exception dump:

Traceback (most recent call last):
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 454, in <module>
    main()
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 329, in main
    width + 2, img_name, match.group('alt'), thumbUrlDb(cursor, img_name, width),
  File "/home/dispenser/public_html/cgi-bin/altedit.py", line 160, in thumbUrlDb
    if width / img_width * img_height > height:
ZeroDivisionError: long division or modulo by zero

Again, thanks for looking at that. --TheBlueWizard (talk) 19:20, 27 February 2016 (UTC)[reply]