⚓ T201969 pwb.py catall script adds an extra ':'


Article Images

pwb.py catall script adds an extra ':'

Steps to reproduce:

python pwb.py login
python pwb.py catall
make a category or add an existing category to page

Result:

[[Category::Recipes]] instead of [[Category:Recipes]]. The former does not create a valid category link, just adds the text at the bottom of the page. The latter does.

Suggested solution:

Change the following in catall.py on line 78

cattitle = "%s:%s" % (site.namespaces.CATEGORY, p)

to

cattitle = "%s%s" % (site.namespaces.CATEGORY, p)

Event Timeline

Framawiki renamed this task from pwb.py catall script adds an extra ':', so categories aren't actually made. to pwb.py catall script adds an extra ':'.Aug 15 2018, 4:41 PM

Xqt triaged this task as High priority.Aug 15 2018, 8:36 PM

Xqt closed this task as Resolved.Aug 18 2018, 11:03 AM

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits