[pywikibot] Re: Multiple users in user-config.py?

2023-02-23 Thread Bináris
Roy Smith  ezt írta (időpont: 2023. febr. 24., P, 0:42):

> My bot needs to be able to run as either of two different accounts
> depending on the task.  DYKToolsBot for most things, DYKToolsAdminBot for
> specific tasks that need admin rights.  How do I do this?
>

I just got up to quickly wirite somewhere that we need separate
user-fixes.pys per user, best defined in config.py, and this mail waited me
here. :-)
So we should have per user configs.

An ugly workaround by that time what I did with logins: a Windows batch.
ren other.lwp temp.lwp
ren pywikibot.lwp other.lwp
ren temp.lwp pywikibot.lwp

If you start your scripts froma  batch (or Linux script), this is no extra
pain with user-config.py.
___
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/34WRSZ4QTOB4ORFPNHINUJHJQQ5DQOKI/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org


[pywikibot] Multiple users in user-config.py?

2023-02-23 Thread Roy Smith
My bot needs to be able to run as either of two different accounts depending on 
the task.  DYKToolsBot for most things, DYKToolsAdminBot for specific tasks 
that need admin rights.  How do I do this?

I'm not using the pwb.py driver layer; I've got my own top-level driver code 
and just import pywikibot as a library.

I thinking maybe I want to use PYWIKIBOT_NO_USER_CONFIG=2 and ignore the 
user-config.py stuff completely, but it's not clear how I pass the config into 
the library.  Family and mylang are easy; I just pass those directly to 
pywikibot.Site().  But It's not clear what to do with username and the OAuth 
credentials that are currently in authenticate[].  Do I just create a 
login.OauthLoginManager and call login() on that?
___
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/U3CRCYJPKRDFJJWXHQ7J6Z62AUVOUV4B/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Updated] T317121: Add support for azwikimedia to Pywikibot

2023-02-23 Thread gerritbot
gerritbot added a project: Patch-For-Review.

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

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

To: gerritbot
Cc: MarcoAurelio, Meno25, Aklapper, Maintenance_bot, pywikibot-bugs-list, 
Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, 
PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, 
Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, 
CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, 
MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, 
Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T317121: Add support for azwikimedia to Pywikibot

2023-02-23 Thread gerritbot
gerritbot added a comment.


  Change 891668 had a related patch set uploaded (by Zabe; author: Zabe):
  
  [pywikibot/core@master] Add support for azwikimedia
  
  https://gerrit.wikimedia.org/r/891668

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

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

To: gerritbot
Cc: MarcoAurelio, Meno25, Aklapper, Maintenance_bot, pywikibot-bugs-list, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T119226: Very small (or very large) quantity values (represented in scientific notation) result in error in add/update via pywikibot/wikidata API

2023-02-23 Thread I_is_chan
I_is_chan added a comment.


  In T119226#2412237 , 
@Tobias1984 wrote:
  
  > Here is some information of the range of values the API accepts: 
https://www.wikidata.org/wiki/Help:Statements#Quantitative_values
  >
  > We probably need more testing so things like 1e-123 arrive as:
  >
  > 
0.001
  >
  > and 1.0e-123 arrives as:
  >
  > 
0.0010
  >
  > Those are some rather important edge cases. The API works more like a 
metrologist or engineering software where trailing zeros are preserved. But I 
am also not an expert in this topic.
  
  I feel like you would want to preserve sig figs although that could probably 
be replaced with lower/upper bound which would be more incompliance with other 
values.

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

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

To: I_is_chan
Cc: I_is_chan, Addshore, matej_suchanek, Xqt, Liuxinyu970226, DD063520, 
thiemowmde, Tobias1984, Aklapper, StudiesWorld, pywikibot-bugs-list, 
ArthurPSmith, Astuthiodit_1, karapayneWMDE, Invadibot, PotsdamLamb, Jyoo1011, 
maantietaja, JohnsonLee01, SHEKH, Dijkstra, ItamarWMDE, Khutuck, Akuckartz, 
Zkhalido, Viztor, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, 
Tbscho, MayS, LawExplorer, Framawiki, Mdupont, JJMC89, Dvorapa, _jensen, 
rosalieper, Altostratus, Avicennasis, Scott_WUaS, mys_721tx, Wikidata-bugs, 
aude, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[Pywikipedia-bugs] [Maniphest] [Commented On] T328769: Enhance Pywikibot.Page with is_person method

2023-02-23 Thread Ayush_Anand3310
Ayush_Anand3310 added a comment.


  @binbot I will!

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

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

To: Ayush_Anand3310
Cc: Ayush_Anand3310, Xqt, Aklapper, pywikibot-bugs-list, binbot, Themindcoder, 
Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, 
Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, 
Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, 
Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, 
Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, 
Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
___
pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org
To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org


[pywikibot] Re: Checkuser

2023-02-23 Thread Bináris
Roy Smith  ezt írta (időpont: 2023. febr. 23., Cs, 20:09):

> It's based on mwclient instead of pywikibot, but I do have some code that
> uses the checkuserlog API.
>

Thank you! I don't know mwclient and hate dealing with login, but I will
have a look.
___
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/4DBAKSFGO4BLNSV5PKB2766VMP6FK2YH/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org


[pywikibot] Re: Checkuser

2023-02-23 Thread Roy Smith
It's based on mwclient instead of pywikibot, but I do have some code that uses 
the checkuserlog API.

https://github.com/roysmith/spi-tools/blob/2080f436d6aeb7d49346241c3dfa356d479b2d19/wiki_interface/wiki.py#L389
 


The hardest part was convincing the WMF folks to approve an OAuth consumer with 
CU rights.  Apparently I was the first person to ever ask for that, and nobody 
knew if they were allowed to approve it or not!





> On Feb 23, 2023, at 1:54 PM, Bináris  wrote:
> 
> Folks, do we have anything to use CU/Investigate by bot?
> 
> -- 
> Bináris
> ___
> pywikibot mailing list -- pywikibot@lists.wikimedia.org
> Public archives at 
> https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/5JDS74VISDF4L62QEFPPWNRL4FCHVH3P/
> To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org

___
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/IB76EI65GRZNACAX2EA5PY3Y3YEBOLL3/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org


[pywikibot] Checkuser

2023-02-23 Thread Bináris
Folks, do we have anything to use CU/Investigate by bot?

-- 
Bináris
___
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/5JDS74VISDF4L62QEFPPWNRL4FCHVH3P/
To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org


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

2023-02-23 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/891525 )

Change subject: Localisation updates from https://translatewiki.net.
..

Localisation updates from https://translatewiki.net.

Change-Id: I1612a58c1014645814f252ed34b15089e21cfc18
---
M revertbot/eu.json
1 file changed, 12 insertions(+), 2 deletions(-)

Approvals:
  L10n-bot: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/revertbot/eu.json b/revertbot/eu.json
index b6d8fa2..fab78a2 100644
--- a/revertbot/eu.json
+++ b/revertbot/eu.json
@@ -1,8 +1,9 @@
 {
"@metadata": {
"authors": [
-   "EukeneFL"
+   "EukeneFL",
+   "Xabier Armendaritz"
]
},
-   "revertbot-revert": "Bot: Buelta emandako berrikusketa %(revid)s 
%(author)s-(e)k eginda %(timestamp)s-(e)n"
+   "revertbot-revert": "Bot: %(revid)s bertsiora lehengoratua. Egilea: 
%(author)s. Data: %(timestamp)s."
 }

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/891525
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: I1612a58c1014645814f252ed34b15089e21cfc18
Gerrit-Change-Number: 891525
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot 
Gerrit-Reviewer: L10n-bot 
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
___
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org