JJMC89 created this task.
JJMC89 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  Pywikibot cannot delete pages despite the user having sufficient rights after 
ee2d6d664c30 
<https://phabricator.wikimedia.org/rPWBCee2d6d664c300cd967241ed2649d7d695856f811>.
 (I haven't tested other sysop actions.)
  
  Steps to Reproduce:
  
  - Use `Page.delete()` on any page
  
  Actual Results:
  
  - If  `sysopnames` is defined in `user-config.py` then nothing happens.
  - If `sysopnames` is not defined in `user-config.py` then prompted with 
`Can't delete [[*page*]]; do you want to mark it for deletion instead? ([y]es, 
[N]o, [a]ll):`
  
  Expected Results:
  
  - Page is deleted
  
  ----
  
  name=user-config.py
    family = 'wikipedia'
    mylang = 'en'
    
    usernames['wikipedia']['en'] = u'JJMC89'
    sysopnames['wikipedia']['en'] = u'JJMC89' # <-- Adding/removing this 
changes the result.
    authenticate['en.wikipedia.org'] = \
    ('##1##',
     '##2##',
     '##3##',
     '##4##')
  
  
  
  name=groups/rights
    Welcome to the Pywikibot interactive shell!
    >>> pywikibot.Site().userinfo['groups']
    ['abusefilter', 'sysop', '*', 'user', 'autoconfirmed']
    >>> pywikibot.Site().userinfo['rights']
    ['read', 'changetags', 'templateeditor', 'extendedconfirmed', 
'suppressredirect', 'noratelimit', 'deleterevision', 'deletelogentry', 
'delete', 'deletedhistory', 'deletedtext', 'undelete', 'move', 'move-subpages', 
'move-rootuserpages', 'move-categorypages', 'autopatrol', 'editprotected', 
'upload', 'reupload', 'reupload-shared', 'autoconfirmed', 'editsemiprotected', 
'ipblock-exempt', 'markbotedits', 'apihighlimits', 'browsearchive', 'movefile', 
'autoreview', 'movestable', 'tboverride', 'skipcaptcha', 
'abusefilter-log-detail', 'massmessage', 'edit', 'createtalk', 'writeapi', 
'abusefilter-view', 'abusefilter-log', 'reupload-own', 'createpage', 
'minoredit', 'purge', 'applychangetags', 'createpagemainns']
  
  
  
  name=version
    Pywikibot: [https] r-pywikibot-core.git (054565e, g1, 2019/08/26, 19:50:06, 
OUTDATED)
    Release version: 3.1.dev0
    requests version: 2.12.4
      cacerts: /etc/ssl/certs/ca-certificates.crt
        certificate test: ok
    Python: 3.5.3 (default, Sep 27 2018, 17:25:39)
    [GCC 6.3.0 20170516]
    Usernames for family "wikipedia":
            en: JJMC89 (also sysop)

TASK DETAIL
  https://phabricator.wikimedia.org/T231263

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JJMC89
Cc: zhuyifei1999, Dalba, Xqt, Huji, Aklapper, pywikibot-bugs-list, JJMC89, 
Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to