[Pywikipedia-bugs] [Maniphest] [Commented On] T324401: Allow Pywikibot to stack edits to items

2022-12-05 Thread matej_suchanek
matej_suchanek added a comment.


  > Plus it requires knowledge of how the editEntity dictionary needs to be 
structured, which isn't readily available for non-trivial examples.
  
  It does not, I'm not building any dictionary in my example. You first stack 
the changes by setting/appending data to the entity, then you call `editEntity` 
//without// the data argument.
  
  I can think of one improvement, we could enhance the `ClaimCollection` 
(`item.claims`) with a method like `item.claims.put_claim(claim)` that would 
inline that chain of calls.

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

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

To: matej_suchanek
Cc: matej_suchanek, Xqt, Aklapper, Multichill, RPI2026F1, pywikibot-bugs-list, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Ricordisamoa, 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] T324401: Allow Pywikibot to stack edits to items

2022-12-05 Thread RPI2026F1
RPI2026F1 added a comment.


  I understand it's possible to manually do it this way, but it would be much 
easier if pywikibot could do it internally. It is much easier to pass in a 
claim with qualifiers and references added than to manually deal with all of 
this yourself. Plus it requires knowledge of how the editEntity dictionary 
needs to be structured, which isn't readily available for non-trivial examples. 
The entire point of having objects is that instead of needing to go down 
low-level like this, we can use the higher-level helper methods.

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

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

To: RPI2026F1
Cc: matej_suchanek, Xqt, Aklapper, Multichill, RPI2026F1, pywikibot-bugs-list, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Ricordisamoa, 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] T323802: Reintroduce standard colors in new theme

2022-12-05 Thread KBach
KBach added a comment.


  I updated the patch to lower the total number of colors we are using, 
favoring the legacy palette over the creative one where they conflicted.
  
  The current code in the patch also allows us to quickly test how the site 
would look if we replaced legacy+creative with the colors from the visual style 
guide. To do that replace code lines 229-256 with:
  
color_primary_blue = '#2a4b8d'
color_blue_background_light = '#2a4b8d1B'
color_blue_background_dark = '#2a4b8d22'
color_blue_foreground_dark = '#94D5FF'
color_primary_red = '#b32424'
color_red_background_light = '#b3242411'
color_red_background_dark = '#b3242414'
color_red_foreground_dark = '#fee7e6'
color_primary_green = '#14866d'
color_green_background_light = '#14866d12'
color_green_background_dark = '#14866d33'
color_yellow = '#ffcc33'
color_yellow_background = '#ffcc3322'
color_brightblue = '#3366cc'
color_brightblue_background = '#3366cc22'
color_purple = '#5748B5'
color_purple_background = '#5748B52A'

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

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

To: KBach
Cc: srishakatux, whym, pywikibot-bugs-list, Aklapper, binbot, Dvorapa, KBach, 
Xqt, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, Maberdour, 
PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, 
Beast1978, Un1tY, Khutuck, Zkhalido, Demian, Hook696, Pavithraes, Kent7301, 
Urstrulykkr, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, 
Cpaulf30, Af420, Bsandipan, Jayprakash12345, Tbscho, MayS, Lewizho99, Mdupont, 
JJMC89, Maathavan, Altostratus, Neuronton, Avicennasis, mys_721tx, Gryllida, 
jayvdb, Masti, Alchimista, Rfarrand, bd808, jeremyb
___
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] T324434: fixing_redirects.py: ERROR: '� ' contains illegal char ' �' (InvalidTitleError)

2022-12-05 Thread Meno25
Meno25 added a comment.


  In T324434#8442769 , @Xqt 
wrote:
  
  > @Meno25: I am working on it and found a solution. Could you check the diff 
result, I am not able to read it:
  >
  >   D:\pwb\GIT\core>pwb.py fixing_redirects -ignoremoves -page:"دنكن هالداين" 
-simulate -lang:ar
  >   Retrieving 1 pages from wikipedia:ar.
  >   
  >   >>> دنكن هالداين <<<
  >   @@ -3 +3 @@
  >   - '''فريدريك دنكن مايكل هالداين''' {{إنج|Frederick Duncan Michael 
Haldane}} (و. [[1951]] – [[تقويم ميلادي|م]]) هو عالم فيزياء بريطاني ولد في يوم 
[[14 سبتمبر]] [[1951]] في مدينة [[لندن]] عاصمة [[المملكة المتحدة]]، درس 
الفيزياء في [[جامعة برنستون]] في [[الولايات المتحدة]] ونال [[جائزة نوبل في 
الفيزياء]] في سنة 2016 وذلك نتاج اكتشافاتهم النظرية في مجال التعدي أو الانتقال 
الطوري الطوبولوجي مع كل من [[ديفيد ثاوليس]] و[[مايكل 
كوسترليتز]].[http://wwwphy.princeton.edu/~haldane/index.html F. Duncan M. 
Haldane] 
{{Webarchive|url=https://web.archive.org/web/20170915221707/http://wwwphy.princeton.edu/~haldane/index.html
 |date=15 سبتمبر 2017}}
  >   + '''فريدريك دنكن مايكل هالداين''' {{إنج|Frederick Duncan Michael 
Haldane}} (و. [[1951]] – [[تقويم ميلادي|م]]) هو عالم فيزياء بريطاني ولد في يوم 
[[14 سبتمبر]] [[1951]] في مدينة [[لندن]] عاصمة [[المملكة المتحدة]]، درس 
الفيزياء في [[جامعة برينستون|جامعة برنستون]] في [[الولايات المتحدة]] ونال 
[[جائزة نوبل في الفيزياء]] في سنة 2016 وذلك نتاج اكتشافاتهم النظرية في مجال 
التعدي أو الانتقال الطوري الطوبولوجي مع كل من [[ديفيد ثاوليس]] و[[مايكل 
كوسترليتز]].[http://wwwphy.princeton.edu/~haldane/index.html F. Duncan M. 
Haldane] 
{{Webarchive|url=https://web.archive.org/web/20170915221707/http://wwwphy.princeton.edu/~haldane/index.html
 |date=15 سبتمبر 2017}}
  >   
  >   Edit summary: بوت: إصلاح التحويلات
  >   Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit):
  
  @Xqt Diff result is correct. Thank you for your work, Xqt.

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

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

To: Xqt, Meno25
Cc: Xqt, Aklapper, alaa, Meno25, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, 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


[Pywikipedia-bugs] [Maniphest] [Started] T324434: fixing_redirects.py: ERROR: '� ' contains illegal char ' �' (InvalidTitleError)

2022-12-05 Thread Xqt
Xqt triaged this task as "Medium" priority.
Xqt claimed this task.
Xqt changed the task status from "Open" to "In Progress".
Xqt added a comment.


  @Meno25: I am working on it and found a solution. Could you check the diff 
result, I am not able to read it:
  
D:\pwb\GIT\core>pwb.py fixing_redirects -ignoremoves -page:"دنكن هالداين" 
-simulate -lang:ar
Retrieving 1 pages from wikipedia:ar.

>>> دنكن هالداين <<<
@@ -3 +3 @@
- '''فريدريك دنكن مايكل هالداين''' {{إنج|Frederick Duncan Michael Haldane}} 
(و. [[1951]] – [[تقويم ميلادي|م]]) هو عالم فيزياء بريطاني ولد في يوم [[14 
سبتمبر]] [[1951]] في مدينة [[لندن]] عاصمة [[المملكة المتحدة]]، درس الفيزياء في 
[[جامعة برنستون]] في [[الولايات المتحدة]] ونال [[جائزة نوبل في الفيزياء]] في 
سنة 2016 وذلك نتاج اكتشافاتهم النظرية في مجال التعدي أو الانتقال الطوري 
الطوبولوجي مع كل من [[ديفيد ثاوليس]] و[[مايكل 
كوسترليتز]].[http://wwwphy.princeton.edu/~haldane/index.html F. Duncan M. 
Haldane] 
{{Webarchive|url=https://web.archive.org/web/20170915221707/http://wwwphy.princeton.edu/~haldane/index.html
 |date=15 سبتمبر 2017}}
+ '''فريدريك دنكن مايكل هالداين''' {{إنج|Frederick Duncan Michael Haldane}} 
(و. [[1951]] – [[تقويم ميلادي|م]]) هو عالم فيزياء بريطاني ولد في يوم [[14 
سبتمبر]] [[1951]] في مدينة [[لندن]] عاصمة [[المملكة المتحدة]]، درس الفيزياء في 
[[جامعة برينستون|جامعة برنستون]] في [[الولايات المتحدة]] ونال [[جائزة نوبل في 
الفيزياء]] في سنة 2016 وذلك نتاج اكتشافاتهم النظرية في مجال التعدي أو الانتقال 
الطوري الطوبولوجي مع كل من [[ديفيد ثاوليس]] و[[مايكل 
كوسترليتز]].[http://wwwphy.princeton.edu/~haldane/index.html F. Duncan M. 
Haldane] 
{{Webarchive|url=https://web.archive.org/web/20170915221707/http://wwwphy.princeton.edu/~haldane/index.html
 |date=15 سبتمبر 2017}}

Edit summary: بوت: إصلاح التحويلات
Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit):

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

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

To: Xqt
Cc: Xqt, Aklapper, alaa, Meno25, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, 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


[Pywikipedia-bugs] [Maniphest] [Commented On] T324434: fixing_redirects.py: ERROR: '� ' contains illegal char ' �' (InvalidTitleError)

2022-12-05 Thread Xqt
Xqt added a comment.


  @Meno25: What is your default site were you are running that script?

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

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

To: Xqt
Cc: Xqt, Aklapper, alaa, Meno25, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, 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