[Pywikipedia-bugs] [Maniphest] [Updated] T291757: pagefromfile.py script: Problem of "-force" argument and user_confirm()

2021-09-25 Thread gerritbot
gerritbot added a project: Patch-For-Review.

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

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

To: JJMC89, gerritbot
Cc: JJMC89, Aklapper, pywikibot-bugs-list, Vladis13, Suran38, Biggs657, 
Lalamarie69, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, 
Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, 
CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, 
Jayprakash12345, Tbscho, MayS, Lewizho99, Mdupont, Maathavan, Dvorapa, 
Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T291757: pagefromfile.py script: Problem of "-force" argument and user_confirm()

2021-09-25 Thread gerritbot
gerritbot added a comment.


  Change 723712 had a related patch set uploaded (by JJMC89; author: JJMC89):
  
  [pywikibot/core@master] [fix] pagefromfile: restore always=True as default
  
  https://gerrit.wikimedia.org/r/723712

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

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

To: JJMC89, gerritbot
Cc: JJMC89, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Jayprakash12345, Tbscho, 
MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, 
Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Started] T291757: pagefromfile.py script: Problem of "-force" argument and user_confirm()

2021-09-25 Thread JJMC89
JJMC89 claimed this task.
JJMC89 added projects: Pywikibot-Scripts, Regression.
JJMC89 triaged this task as "Medium" priority.
JJMC89 changed the task status from "Open" to "In Progress".
JJMC89 added a comment.


  This is a regression from rPWBCdf8c2716039d: [IMPR] Update bots to use 
update_options 
.

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

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

To: JJMC89
Cc: JJMC89, Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Jayprakash12345, Tbscho, 
MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, 
Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Created] T291757: pagefromfile.py script: Problem of "-force" argument and user_confirm()

2021-09-25 Thread Vladis13
Vladis13 created this task.
Vladis13 added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **What happens?**:
  My bot using the `pagefromfile.py` script has stopped working. The script 
asks for manual confirmation of page rewriting, which cannot be done because it 
works autonomously.
  
  Here's a command and a confirmation request. I hid a redundant ones with 
ellipsis, added the "-simulate" option.
  
pwb.py pagefromfile -file:wikisections.txt -begin:{{-start-}} 
-end:{{-end-}} -notitle "-summary:обновление списка" -family:wikipedia -lang:ru 
-user:TextworkerBot -force -simulate

Reading '.../wikisections.txt'...
Page ... already exists, ***overwriting!
Edit summary: ...
Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit): 
  
  **What should have happened instead?**:
  Previously, I just used the `-force` option.
  As far as I studied the code, confirmation requests are creating in 
`user_confirm()` at bot.py:1328. This is disabled only if the `-always` option 
is present.
  But pagefromfile.py does not handle the `-always` option in any way, so 
bot.py doesn't receive it. And it is not mentioned in the script help.
  
  So, the bot cannot work autonomously.
  
  **Software version (if not a Wikimedia wiki), browser information, 
screenshots, other information, etc**:
  Pwb 6.6.1

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

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

To: Vladis13
Cc: Aklapper, pywikibot-bugs-list, Vladis13, Jyoo1011, JohnsonLee01, SHEKH, 
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, 
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T291684: pywikibot move page doesn't mark in a bot flag

2021-09-25 Thread Shalomori123
Shalomori123 added a comment.


  My first point was solved, but the second didn't yet.

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

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

To: Shalomori123
Cc: Xqt, Legoktm, pywikibot-bugs-list, Aklapper, Shalomori123, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T291684: pywikibot move page doesn't mark in a bot flag

2021-09-25 Thread Shalomori123
Shalomori123 added a comment.


  Thank you @Legoktm

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

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

To: Shalomori123
Cc: Xqt, Legoktm, pywikibot-bugs-list, Aklapper, Shalomori123, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T286403: Consistently supply type hints

2021-09-25 Thread gerritbot
gerritbot added a comment.


  Change 714210 **merged** by jenkins-bot:
  
  [pywikibot/core@master] [IMPR] pagegenerators.py type hints
  
  https://gerrit.wikimedia.org/r/714210

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

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

To: atagar, gerritbot
Cc: Aklapper, pywikibot-bugs-list, atagar, Suran38, Biggs657, Lalamarie69, 
Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, 
Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, 
Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, 
Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T286403: Consistently supply type hints

2021-09-25 Thread gerritbot
gerritbot added a comment.


  Change 714210 **restored** by Xqt:
  
  [pywikibot/core@master] [IMPR] pagegenerators.py type hints
  
  https://gerrit.wikimedia.org/r/714210

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

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

To: atagar, gerritbot
Cc: Aklapper, pywikibot-bugs-list, atagar, Suran38, Biggs657, Lalamarie69, 
Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, 
Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, 
Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, 
Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org