[pywikibot] Private wiki configuration/Get page from id

2023-05-11 Thread mlois_-gr
Hi, I don't think this is a bug, but despite the documentation, I can't find a solution to my problems… = Problem 1 I'm trying to instantiate a `Page` based on its id, but I can't seem to find something that does… The closest to it seems to be "page_from_repository('Q'+pageId)", but I

[pywikibot] test_follow_redirects fails

2023-05-11 Thread Roy Smith
I've checked out /pywikibot/core.git. When I run the tests, I get a number of failures: FAILED tests/http_tests.py::TestHttpStatus::test_follow_redirects - AssertionError: '//en.wikipedia.org/wiki/Main_Page' not found in 'https://en.wikipedia.org/wiki/Main%20Page' FAILED

[pywikibot] Re: Private wiki configuration/Get page from id

2023-05-11 Thread mlois_-gr
when I say page id it is the page id in the database, which can be used directly using curid, e.g : https://en.wikipedia.org/wiki/?curid= ___ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at

[pywikibot] Re: Private wiki configuration/Get page from id

2023-05-11 Thread mlois_-gr
It seems problem2 was just about adding >def isPublic(self): >return False in my family file : https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis#Bot_&_private_wikis Sorry I hadn't found that earlier. Problem 1 remains : >I'm trying to instantiate a `Page`

[pywikibot] Re: Private wiki configuration/Get page from id

2023-05-11 Thread JJMC89
There isn't a way to instantiate `Page` from an id. You need a title. What you are attempting with page_from_repository is for sites with a Wikibase repository and uses the Wikibase QID, not the page id from the database. The closest is site.load_pages_from_pageids

[pywikibot] Re: test_follow_redirects fails

2023-05-11 Thread JJMC89
Issues with tests should be on the pywikibot-tests workboard if they are known. Feel free to file tasks or work on them. I was able to reproduce the make_dist_tests failures but not some of the others. test_follow_redirects has been around

[pywikibot] Re: Private wiki configuration/Get page from id

2023-05-11 Thread Bináris
JJMC89 ezt írta (időpont: 2023. máj. 12., P, 1:12): > There isn't a way to instantiate `Page` from an id. > But perhaps should be. Title is not always good for restoring the same page. Your page id is 1. Sb. renames it – the actual article will have other title with id 1, the redirect page the

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

2023-05-11 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/919044 ) Change subject: Localisation updates from https://translatewiki.net. .. Localisation updates from https://translatewiki.net.