jenkins-bot has submitted this change and it was merged.
Change subject: (bug 62732) enable unique sysop names on all wikis with '*' language ......................................................................
(bug 62732) enable unique sysop names on all wikis with '*' language
This is similar with a common username for all sites of a family using usernames['familyname']['*'], now for sysop account using sysopnames['familyname']['*']
Change-Id: I1f65db94dd98b98946656632224fc135c3f75c21 --- M pywikibot/__init__.py M pywikibot/config2.py 2 files changed, 9 insertions(+), 0 deletions(-)
Approvals: Ricordisamoa: Looks good to me, but someone else must approve Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py index b9edb35..b2c76f3 100644 --- a/pywikibot/__init__.py +++ b/pywikibot/__init__.py @@ -397,6 +397,11 @@ sysop = config.sysopnames[fam][code] except KeyError: sysop = None + if sysop is None: + try: + user = config.sysopnames[fam]['*'] + except KeyError: + sysop = None if interface is None: interface = config.site_interface try: diff --git a/pywikibot/config2.py b/pywikibot/config2.py index bf6c63f..3f6342c 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -49,6 +49,10 @@ # # sysopnames['wikipedia']['de'] = 'myGermanUsername' # sysopnames['wiktionary']['en'] = 'myEnglishUsername' +# +# If you have a unique syop account for all languages of a family, +# you can use '*' +# sysopnames['myownwiki']['*'] = 'mySingleUsername' usernames = {} sysopnames = {} disambiguation_comment = {}