Bugs item #1965842, was opened at 2008-05-17 09:34 Message generated for change (Comment added) made by wikipedian You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965842...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open
Resolution: Wont Fix
Priority: 5 Private: No Submitted By: Melancholie (melancholie) Assigned to: Nobody/Anonymous (nobody) Summary: Modern skin not usable
Initial Comment: The MediaWiki skin 'modern' does not have that much HTML cruft around the actual content. Thus there would be a little bit less bot traffic with this skin.
But I cannot use that skin with pyWikipedia! Error message:
Traceback (most recent call last): File "interwiki.py", line 1731, in ? bot.run() File "interwiki.py", line 1482, in run self.queryStep() File "interwiki.py", line 1461, in queryStep subj.finish(self) File "interwiki.py", line 1042, in finish if self.replaceLinks(page, new, bot): File "interwiki.py", line 1200, in replaceLinks status, reason, data = page.put(newtext, comment = wikipedia.translate(page.site().lang, msg)[0] + mods) File "wikipedia.py", line 1222, in put sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = False) File "wikipedia.py", line 1114, in _getActionUser if not self.site().isAllowed(action, sysop): File "wikipedia.py", line 4013, in isAllowed return right in self._rights[index] TypeError: iterable argument required
----------------------------------------------------------------------
Comment By: Daniel Herding (wikipedian)
Date: 2008-05-22 17:41
Message: Logged In: YES user_id=880694 Originator: NO
"Modern" misses several tags that PyWikipediaBot relies on. For example, the tag <div id="bodyContent"> (e.g. on Whatlinkshere) is important, but only MonoBook has it.
Of course we could search for other tags that are available in more skins, but I think it's not worth it, as you seem to be wrong about your assumption that the "Modern" skin had less HTML than "MonoBook". HTML pages seem to have about the same sizes with both skins.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie) Date: 2008-05-19 03:28
Message: Logged In: YES user_id=2089773 Originator: YES
BTW: See also https://bugzilla.wikimedia.org/show_bug.cgi?id=3651
That skin assumedly would not work either.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie) Date: 2008-05-17 09:38
Message: Logged In: YES user_id=2089773 Originator: YES
After ~manipulating~ line 4013, the following message is shown:
ERROR: Unexpected response from wiki server. 200 (OK) [...edit view...]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1965842...