Dominicbm created this task.
Dominicbm added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
When a `#` character is present when setting the title of a Page object, the
resultant Page's title mysteriously loses the space character that was
preceding the `#`. This caused me to upload files to incorrect titles. I
tested this for Page and File objects. See test code:
title =
'Front_Cover_Album_#3_-_DPLA_-_e0ff466e4c02b7ee526863936a6f1512_(page_2).jpg'
site = pywikibot.Site()
testpage = pywikibot.Page(site, title='Front_Cover_Album
#3_-_DPLA_-_e0ff466e4c02b7ee526863936a6f1512_(page_2).jpg')
testfile = pywikibot.Page(site, title='Front_Cover_Album
#3_-_DPLA_-_e0ff466e4c02b7ee526863936a6f1512_(page_2).jpg')
print('Title: ' + title)
print('Test Page: ' + testpage.title())
print('Test File: ' + testfile.title())
Output:
Title:
Front_Cover_Album_#3_-_DPLA_-_e0ff466e4c02b7ee526863936a6f1512_(page_2).jpg
Test Page: Front Cover Album#3 - DPLA - e0ff466e4c02b7ee526863936a6f1512
(page 2).jpg
Test File: Front Cover Album#3 - DPLA - e0ff466e4c02b7ee526863936a6f1512
(page 2).jpg
TASK DETAIL
https://phabricator.wikimedia.org/T345786
WORKBOARD
https://phabricator.wikimedia.org/project/board/87/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Dominicbm
Cc: Aklapper, pywikibot-bugs-list, Dominicbm, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]