| Dalba added a comment. |
The problem is that in the current implementation the startsort passed to site.categorymembers should be a string like &Xb'~\x03\x04&'M!~\x03&'\x01~\x01\x0e obtained from the API or database. This is only valid as a cmstartsortkey, but not cmstartsortkeyprefix or cmstarthexsortkey. Therefore I think it would not be backward compatible to just pass the current sorkey to cmstartsortkeyprefix.
As a test case consider the following:
import pywikibot as b s = b.Site('fa', 'wikipedia') c = b.Category(s, 'رده:رنگ') a = c.articles(startsort="&Xb'~\x03\x04&'M!~\x03&'\x01~\x01\x0e") p = next(a) assert p.title() == 'چرخه رنگ\u200cها'
Any change should be able to pass the above test to be backward compatible.
TASK DETAIL
EMAIL PREFERENCES
To: Xqt, Dalba
Cc: Dalba, gerritbot, Aklapper, Andre_Engels, StudiesWorld, Xqt, jayvdb, XZise, Multichill, Ricordisamoa, pywikibot-bugs-list, Mpaa, Lewizho99, Mdupont, JJMC89, Maathavan, Anshoe
Cc: Dalba, gerritbot, Aklapper, Andre_Engels, StudiesWorld, Xqt, jayvdb, XZise, Multichill, Ricordisamoa, pywikibot-bugs-list, Mpaa, Lewizho99, Mdupont, JJMC89, Maathavan, Anshoe
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
