Page MenuHomePhabricator
Paste P9155

logs5
ActivePublic

Authored by revi on Sep 24 2019, 3:17 AM.
{redacted}-MacBook-Pro:pywikibot-prod {redacted}$ git pull "https://gerrit.wikimedia.org/r/pywikibot/core" refs/changes/24/538724/2
From https://gerrit.wikimedia.org/r/pywikibot/core
* branch refs/changes/24/538724/2 -> FETCH_HEAD
Updating 3df33cb7..d2ef2f2e
Fast-forward
pywikibot/page.py | 2 +-
pywikibot/site.py | 3 ++-
tests/site_tests.py | 28 ++++++++++++++--------------
3 files changed, 17 insertions(+), 16 deletions(-)
{redacted}-MacBook-Pro:pywikibot-prod {redacted}$ code pywikibot/page.py
{redacted}-MacBook-Pro:pywikibot-prod {redacted}$ git diff
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 0f625570..9a2fb49d 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -1919,6 +1919,9 @@ class BasePage(UnicodeMixin, ComparableMixin):
reason = pywikibot.input('Please enter a reason for the deletion:')
# If user has 'delete' right, delete the page
+ from pprint import pprint
+ pprint(self.site.userinfo)
+
if u'delete' in self.site.userinfo['rights']:
answer = 'y'
if prompt and not hasattr(self.site, '_noDeletePrompt'):
{redacted}-MacBook-Pro:pywikibot-prod {redacted}$ python3 pwb.py delete -lang:ko -family:wikinews -user:"-revi" -file:../list.txt -summary:"[[Special:Permalink/24353#저작권 무단 침해 사용자 제재 요청|위키뉴스:관리자 요청]]"
>>> 인도전문가의 인도사업비결 <<<
{'anon': '',
'groups': ['*'],
'id': 0,
'name': '{redacted IP}',
'rights': ['createaccount',
'read',
'edit',
'createpage',
'createtalk',
'writeapi',
'viewmywatchlist',
'editmywatchlist',
'viewmyprivateinfo',
'editmyprivateinfo',
'editmyoptions',
'urlshortener-create-url',
'centralauth-merge',
'abusefilter-view',
'abusefilter-log',
'vipsscaler-test']}
Can't delete [[ko:인도전문가의 인도사업비결]]; do you want to mark it for deletion
instead? ([y]es, [N]o, [a]ll): ^C
User quit DeletionRobot bot run...
0 pages read
0 pages written
0 pages skipped
Execution time: 31 seconds
Script terminated successfully.
{redacted}-MacBook-Pro:pywikibot-prod {redacted}$