[pywikibot] Re: How to add a category to a page

2024-01-15 Thread Bináris
Thank you! :-) ezt írta (időpont: 2024. jan. 15., H, 9:23): > textlib.replaceCategoryLinks() with add_only=True should do the job. > > Best > > xqt > > > Von meinem iPhone gesendet > > Am 04.01.2024 um 13:49 schrieb John : > >  > I use a combination of getCategoryLinks() and then

[Pywikipedia-bugs] [Maniphest] [Commented On] T325420: Add Page.add_category() method

2024-01-15 Thread Enag2000
Enag2000 added a comment. If we are doing this then maybe we should add a remove category function too? TASK DETAIL https://phabricator.wikimedia.org/T325420 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Enag2000 Cc: binbot, Enag2000,

[Pywikipedia-bugs] [Maniphest] [Updated] T355072: Ignore .swp files

2024-01-15 Thread Maintenance_bot
Maintenance_bot removed a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji, Maintenance_bot Cc: Aklapper, Huji, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011,

[Pywikipedia-bugs] [Maniphest] [Commented On] T355072: Ignore .swp files

2024-01-15 Thread gerritbot
gerritbot added a comment. Change 990716 **merged** by jenkins-bot: [pywikibot/core@master] Ignore .swp files created by vim https://gerrit.wikimedia.org/r/990716 TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES

[Pywikibot-commits] [Gerrit] ...core[master]: Ignore .swp files created by vim

2024-01-15 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/990716 ) Change subject: Ignore .swp files created by vim .. Ignore .swp files created by vim Bug: T355072 Change-Id:

[Pywikipedia-bugs] [Maniphest] [Closed] T355072: Ignore .swp files

2024-01-15 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji, Xqt Cc: Aklapper, Huji, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione,

[Pywikipedia-bugs] [Maniphest] [Updated] T301282: isBlocked cannot detect range blocks

2024-01-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T301282 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji, gerritbot Cc: Aklapper, pywikibot-bugs-list, Xqt, Huji, mevo, Isabelladantes1983, Themindcoder,

[Pywikipedia-bugs] [Maniphest] [Commented On] T301282: isBlocked cannot detect range blocks

2024-01-15 Thread gerritbot
gerritbot added a comment. Change 990725 had a related patch set uploaded (by Huji; author: Huji): [pywikibot/core@master] Detect range blocks with Page.is_blocked() https://gerrit.wikimedia.org/r/990725 TASK DETAIL https://phabricator.wikimedia.org/T301282 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T301282: isBlocked cannot detect range blocks

2024-01-15 Thread Huji
Huji added a comment. Since other code (such as this in patrol.py ) relies on `isAnonymous()` to indicate if the user is an anonymous *user* (as opposed to CIDR), we cannot extend

[Pywikipedia-bugs] [Maniphest] [Claimed] T309898: Fix "Fetching a token via "action=login" is deprecated" when authenticating via bot passwords

2024-01-15 Thread Huji
Huji claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T309898 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: bd808, Stang, Xqt, Aklapper, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder, Adamm71, Jersione,

[Pywikipedia-bugs] [Maniphest] [Updated] T309898: Fix "Fetching a token via "action=login" is deprecated" when authenticating via bot passwords

2024-01-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T309898 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: bd808, Stang, Xqt, Aklapper, pywikibot-bugs-list, mevo, Isabelladantes1983,

[Pywikipedia-bugs] [Maniphest] [Commented On] T309898: Fix "Fetching a token via "action=login" is deprecated" when authenticating via bot passwords

2024-01-15 Thread gerritbot
gerritbot added a comment. Change 990720 had a related patch set uploaded (by Huji; author: Huji): [pywikibot/core@master] Pass login token when using action=login https://gerrit.wikimedia.org/r/990720 TASK DETAIL https://phabricator.wikimedia.org/T309898 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T355072: Ignore .swp files

2024-01-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji, gerritbot Cc: Aklapper, Huji, pywikibot-bugs-list, mevo, Isabelladantes1983, Themindcoder,

[Pywikipedia-bugs] [Maniphest] [Commented On] T355072: Ignore .swp files

2024-01-15 Thread gerritbot
gerritbot added a comment. Change 990716 had a related patch set uploaded (by Huji; author: Huji): [pywikibot/core@master] Ignore .swp files created by vim https://gerrit.wikimedia.org/r/990716 TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Claimed] T355072: Ignore .swp files

2024-01-15 Thread Huji
Huji claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T355072 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Huji Cc: Aklapper, Huji, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck,

[Pywikipedia-bugs] [Maniphest] [Created] T355072: Ignore .swp files

2024-01-15 Thread Huji
Huji created this task. Huji added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Add a filter to `.gitignore` for #pywikibot

[Pywikibot-commits] [Gerrit] ...i18n[master]: Localisation updates from https://translatewiki.net.

2024-01-15 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/990652 ) Change subject: Localisation updates from https://translatewiki.net. .. Localisation updates from https://translatewiki.net.

[pywikibot] Re: How to add a category to a page

2024-01-15 Thread info
textlib.replaceCategoryLinks() with add_only=True should do the job.BestxqtVon meinem iPhone gesendetAm 04.01.2024 um 13:49 schrieb John :I use a combination of getCategoryLinks() and then replaceCategoryLinks() it updates them in place, or adds them where needed.On Thu, Jan 4, 2024 at 2:58 AM

[Pywikipedia-bugs] [Maniphest] [Updated] T355002: Deprecate BasePage.change_category() method and add a textlib.change_category() function

2024-01-15 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T355002 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: Aklapper, pywikibot-bugs-list, binbot, Enag2000, Mpaa, Xqt, mevo, Isabelladantes1983,

[Pywikipedia-bugs] [Maniphest] [Commented On] T355002: Deprecate BasePage.change_category() method and add a textlib.change_category() function

2024-01-15 Thread gerritbot
gerritbot added a comment. Change 990589 had a related patch set uploaded (by Xqt; author: Xqt): [pywikibot/core@master] [IMPR] add textlib.change_categories() function https://gerrit.wikimedia.org/r/990589 TASK DETAIL https://phabricator.wikimedia.org/T355002 EMAIL PREFERENCES