[Pywikipedia-bugs] [Maniphest] [Created] T328885: clean_sandbox: Create an -oldid: option

2023-02-05 Thread MarcoAurelio
MarcoAurelio created this task. MarcoAurelio added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION For {src PWBC:scripts/clean_sandbox.py} would it be possible to add a `-oldid:N` flag where `N` would be the

[Pywikipedia-bugs] [Maniphest] [Commented On] T284577: Cannot login to private wiki using BotPassword

2023-02-05 Thread Nirvanchik
Nirvanchik added a comment. I found a hotfix that helped me to log in: class TokenWallet(Container): def __getitem__(self, key: str) -> str: """Get token value for the given key.""" if self.site.user() is None and key != 'login':

[Pywikipedia-bugs] [Maniphest] [Commented On] T284577: Cannot login to private wiki using BotPassword

2023-02-05 Thread Nirvanchik
Nirvanchik added a comment. So it crashes while getting new token: ERROR: File "c:\work\wiki\bot\Python\git\core\pywikibot\site\_apisite.py", line 409, in login if login_manager.login(retry=True, autocreate=autocreate): ERROR: File

[Pywikipedia-bugs] [Maniphest] [Commented On] T284577: Cannot login to private wiki using BotPassword

2023-02-05 Thread Nirvanchik
Nirvanchik added a comment. In my case it tries to login without token (may be it relies that cookies may be available?) and fails. ERRORReceived incorrect login token. Forcing re-login. After that, it is making again query siteinfo URI:

[Pywikipedia-bugs] [Maniphest] [Commented On] T284577: Cannot login to private wiki using BotPassword

2023-02-05 Thread Nirvanchik
Nirvanchik added a comment. Wow. The problem I was writing about is handled already with using try-except. # May occur if you are not logged in (no API read permissions). except APIError: pass So I have another problem actually. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T284577: Cannot login to private wiki using BotPassword

2023-02-05 Thread Nirvanchik
Nirvanchik added a comment. This is where pywikibot is making request. Traceback (most recent call last): File "c:\work\wiki\bot\Python\git\core\pwb.py", line 39, in sys.exit(main()) File "c:\work\wiki\bot\Python\git\core\pwb.py", line 35, in main

[Pywikipedia-bugs] [Maniphest] [Commented On] T305302: Provide tests for Lexeme classes

2023-02-05 Thread matej_suchanek
matej_suchanek added a comment. Yes, or `wikibase_edit_tests.py`, if you plan testing write actions. TASK DETAIL https://phabricator.wikimedia.org/T305302 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: Ayush_Anand3310,

[Pywikipedia-bugs] [Maniphest] [Closed] T327607: pywikibot item.editEntity() duplicates added statement

2023-02-05 Thread RPI2026F1
RPI2026F1 closed this task as "Resolved". RPI2026F1 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb,

[Pywikipedia-bugs] [Maniphest] [Unblock] T325864: pywikibot.WbTime.fromTimestamp discards timezone information

2023-02-05 Thread RPI2026F1
RPI2026F1 closed subtask T325868: pywikibot.WbTime.toTimestamp discards timezone information as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper,

[Pywikipedia-bugs] [Maniphest] [Closed] T325868: pywikibot.WbTime.toTimestamp discards timezone information

2023-02-05 Thread RPI2026F1
RPI2026F1 closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Updated] T325868: pywikibot.WbTime.toTimestamp discards timezone information

2023-02-05 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1, Maintenance_bot Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,

[Pywikipedia-bugs] [Maniphest] [Updated] T327607: pywikibot item.editEntity() duplicates added statement

2023-02-05 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Maintenance_bot Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,

[Pywikipedia-bugs] [Maniphest] [Commented On] T325868: pywikibot.WbTime.toTimestamp discards timezone information

2023-02-05 Thread gerritbot
gerritbot added a comment. Change 871019 **merged** by jenkins-bot: [pywikibot/core@master] [Bugfix] Add timezone_aware to toTimestamp() https://gerrit.wikimedia.org/r/871019 TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T327607: pywikibot item.editEntity() duplicates added statement

2023-02-05 Thread gerritbot
gerritbot added a comment. Change 883275 **merged** by jenkins-bot: [pywikibot/core@master] [Bugfix] Copy snak IDs/hashes when using editEntity https://gerrit.wikimedia.org/r/883275 TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES