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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to