https://bugzilla.wikimedia.org/show_bug.cgi?id=55086
Maarten Dammers <maarten(a)mdammers.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
CC| |maarten(a)mdammers.nl
Resolution|--- |FIXED
--- Comment #1 from Maarten Dammers <maarten(a)mdammers.nl> ---
Looks like this was implemented some time ago, but bug not closed. Relevant
snipped:
if not commonsPage.exists():
logpages = commonsSite.logpages(mode='delete',
title=commonsPage.title())
try:
logitem = logpages.next()
(logpage, loguser, logtimestamp, logcomment) = logitem
# Some logic to extract the target page.
regex = u'moved to
\[\[\:?Category:(?P<newcat1>[^\|\}]+)(\|[^\}]+)?\]\]|Robot: Changing
Category:(.+) to Category:(?P<newcat2>.+)'
m = re.search(regex, logcomment, flags=re.I)
if m:
if m.group('newcat1'):
return self.checkCommonscatLink(m.group('newcat1'))
elif m.group('newcat2'):
return self.checkCommonscatLink(m.group('newcat2'))
else:
pywikibot.output(
u'getCommonscat: Deleted by %s. Couldn\'t find move
target in \" %s \"'
% (loguser, logcomment))
return u''
except StopIteration:
if pywikibot.verbose:
pywikibot.output(
u"getCommonscat: The category doesnt exist and
nothing found in the deletion log.")
return u''
--
You are receiving this mail because:
You are the assignee for the bug.