[pywikibot] Line breaking the cite templates

2023-02-26 Thread Bináris
Do we have a script or fix for breaking the cite templates like this? https://hu.wikipedia.org/w/index.php?title=Cseh_K%C3%A1lm%C3%A1n=prev=25862570 -- Bináris ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at

[Pywikipedia-bugs] [Maniphest] [Updated] T328814: Login retrieves token from incorrect location

2023-02-26 Thread MarcoAurelio
MarcoAurelio added a comment. @Xqt : Tested your code via pwb.py shell, with the following result: P44758. TASK DETAIL https://phabricator.wikimedia.org/T328814 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: MarcoAurelio Cc: MarcoAurelio, Xqt,

[Pywikipedia-bugs] [Maniphest] [Commented On] T328814: Login retrieves token from incorrect location

2023-02-26 Thread MarcoAurelio
MarcoAurelio added a comment. In T328814#8647066 , @Xqt wrote: > Hi you both, > > can somone test login without the login script as follows > > import pywikibot > from pywikibot import config > config.debug_log =

[Pywikipedia-bugs] [Maniphest] [Commented On] T328814: Login retrieves token from incorrect location

2023-02-26 Thread MarcoAurelio
MarcoAurelio added a comment. Hello @Xqt: In my case, it's a WMF private wiki which may make things easier. Right now it's using `MediaWiki 1.40.0-wmf.24`. PWB version data: $ python pwb.py version -v Pywikibot: [https] r-pywikibot-core.git (d703ece, g17791, 2023/02/23,

[Pywikipedia-bugs] [Maniphest] [Commented On] T328814: Login retrieves token from incorrect location

2023-02-26 Thread Xqt
Xqt added a comment. Hi you both, can somone test login without the login script as follows import pywikibot from pywikibot import config config.debug_log = [''] site = pywikibot.Site() site.login() # or site.login(user=) TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Triaged] T328814: Login retrieves token from incorrect location

2023-02-26 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T328814 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: MarcoAurelio, Xqt, Aklapper, chiefgeek157, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,

[Pywikipedia-bugs] [Maniphest] [Commented On] T328814: Login retrieves token from incorrect location

2023-02-26 Thread Xqt
Xqt added a comment. @chiefgeek157: What is your Pywikibot version? Can you please run `pwb version`. TASK DETAIL https://phabricator.wikimedia.org/T328814 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: MarcoAurelio, Xqt, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Updated] T330021: cosmetic_changes.py: Exiting due to uncaught exception

2023-02-26 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T330021 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: Aklapper, alaa, Meno25, pywikibot-bugs-list, Themindcoder, Adamm71, Jersione,

[Pywikipedia-bugs] [Maniphest] [Commented On] T330021: cosmetic_changes.py: Exiting due to uncaught exception

2023-02-26 Thread gerritbot
gerritbot added a comment. Change 892044 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek): [pywikibot/core@master] [FIX] Avoid error when replacement includes backslash https://gerrit.wikimedia.org/r/892044 TASK DETAIL

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread Roy Smith
Hmmm. I was reading through that code earlier today, and I assumed I was just in the wrong place. I got as far as: >exec(compile(f.read(), _filename, 'exec'), _exec_globals) and paused. I had been wondering about how user-config.py was getting imported, since that's not a valid module

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread info
Hi Roy,this is a global option which is handled by config.py directly by reading from sys.argv but does not remove it from that list.To remove it you can use the pwb.py wrapper like pwb

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread Roy Smith
I'm not using the bot.py driver, just calling pywikibot.Site() directly. How do I make it read an alternate config file in that situation? > On Feb 26, 2023, at 4:48 AM, i...@gno.de wrote: > > Hi, > > renaming the password cookie file is not a good idea after Pywikibot 8.0.0 > was released

[Pywikipedia-bugs] [Maniphest] [Commented On] T191901: archivebot should allow to specify a wiki-wide set of default values for the marker template

2023-02-26 Thread Xqt
Xqt added a comment. I think the script should be changes to derive from a ConfigParserbot first. It is much more easy to read settings from a file or a wikipage then. TASK DETAIL https://phabricator.wikimedia.org/T191901 EMAIL PREFERENCES

[pywikibot] Re: Checkuser

2023-02-26 Thread info
Hi,neither checkuser nor checkuserlog of checkuser extension is well documented and there are no generators implemented yet. You have to setup your own generator e.g. useing api.ListGenerator [2] e.g.  gen = api.ListGenerator(listaction='checkuserlog', total=25, site=pywikibot.Site(),

[Pywikibot-commits] [Gerrit] ...core[master]: [doc] Additional documentation about stopme()

2023-02-26 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/892038 ) Change subject: [doc] Additional documentation about stopme() .. [doc] Additional documentation about stopme() Change-Id:

[Pywikipedia-bugs] [Maniphest] [Updated] T317121: Add support for azwikimedia to Pywikibot

2023-02-26 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T317121 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zabe, Maintenance_bot Cc: Zabe, MarcoAurelio, Meno25, Aklapper, Maintenance_bot,

[pywikibot] Re: Multiple users in user-config.py?

2023-02-26 Thread info
Hi,renaming the password cookie file is not a good idea after Pywikibot 8.0.0 was released because each account has its own file. [1]You may have different user config files which can be used with global -config option e.g. -config:mybot_config. [2]This new global option was introduced with

[Pywikipedia-bugs] [Maniphest] [Commented On] T317121: Add support for azwikimedia to Pywikibot

2023-02-26 Thread gerritbot
gerritbot added a comment. Change 891668 **merged** by jenkins-bot: [pywikibot/core@master] Add support for azwikimedia https://gerrit.wikimedia.org/r/891668 TASK DETAIL https://phabricator.wikimedia.org/T317121 EMAIL PREFERENCES

[Pywikibot-commits] [Gerrit] ...core[master]: Add support for azwikimedia

2023-02-26 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/891668 ) Change subject: Add support for azwikimedia .. Add support for azwikimedia Bug: T317121 Change-Id:

[Pywikipedia-bugs] [Maniphest] [Closed] T317121: Add support for azwikimedia to Pywikibot

2023-02-26 Thread Xqt
Xqt assigned this task to Zabe. Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T317121 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Zabe, Xqt Cc: Zabe, MarcoAurelio, Meno25, Aklapper, Maintenance_bot,

[Pywikibot-commits] [Gerrit] ...core[master]: [tests] Fix doctest

2023-02-26 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/892035 ) Change subject: [tests] Fix doctest .. [tests] Fix doctest Change-Id: I89e28e04c209462c3024d43963be7aab4cfd880b --- M