matej_suchanek updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
Especially for categories but also for other namespaces it is possible to name pages which looks like a Namespace e.g. "Kategory:Wikipedia:Hilfe".

```lang=python
site = pywikibot.Site()
...
pywikibot.Category(site, "Wikipedia:Hilfe", ns=14)
```


fails with an exception error

pywikibot.Page(site, "Wikipedia:Hilfe", ns=14) gives
`Page("Wikipedia:Hilfe") instead of the category page as expected.`

There are several scripts which fix that point by adding a "category:" in front of a page title which should be obsolete.

See https://gerrit.wikimedia.org/r/#/c/132781/ for example

--------------------------
**Version**: core-(2.0)
**Severity**: normal

TASK DETAIL
https://phabricator.wikimedia.org/T67262

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: zhuyifei1999, matej_suchanek, Framawiki, Dalba, Aklapper, StudiesWorld, Xqt, jayvdb, pywikibot-bugs-list, Lordiis, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, Magul, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Avicennasis, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to