Nemo_bis created this task.
Nemo_bis added a subscriber: Nemo_bis.
Nemo_bis added a project: Pywikibot-Wikidata.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
When I do something like
```
item = ItemPage(self.repo, '-1')
item.editLabels({uselang: title})
item.addClaim(claim, bot=True)
```
(just assume the variables are defined, see https://gerrit.wikimedia.org/r/#/c/166629/14 for context), I get:
```
site.py", line 5629, in addClaim
if claims in item and claim.getID() in item.claims:
NameError: global name 'claims' is not defined
<type 'exceptions.NameError'>
```
Shouldn't that if check for existence of "item.claims"?
TASK DETAIL
https://phabricator.wikimedia.org/T94848
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Nemo_bis
Cc: pywikipedia-bugs, Nemo_bis, Aklapper
jayvdb created this task.
jayvdb added subscribers: jayvdb, Xqt, XZise, Ladsgroup.
jayvdb added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
https://gerrit.wikimedia.org/r/#/c/199579/ (Use site.lang instead of site.code) was a breaking change, not backwards compatible.
It allowed scripts to fallback to English undesirably, such as when their code was wikidata or commons. e.g. T94680
It also caused site specific logic to not be used. e.g. category.py has a special configuration for test.wikipedia, which now isnt used. (see cfd_templates)
More examples can be found in `git grep "'commons':"`
TASK DETAIL
https://phabricator.wikimedia.org/T95063
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Ladsgroup, XZise, Xqt, jayvdb, Aklapper, pywikipedia-bugs
Ricordisamoa created this task.
Ricordisamoa added subscribers: Aklapper, pywikipedia-bugs, Ricordisamoa.
Ricordisamoa added a project: Pywikibot-General.
Ricordisamoa changed Security from none to none.
TASK DESCRIPTION
Instead of filling it manually, as it is now.
TASK DETAIL
https://phabricator.wikimedia.org/T78393
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ricordisamoa
Cc: Aklapper, Ricordisamoa, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
There are several scripts which run on wikis where they are not configured to run. The configuration for these scripts needs to be overhauled.
TASK DETAIL
https://phabricator.wikimedia.org/T94679
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, jayvdb, Aklapper
jayvdb added a subscriber: XZise.
jayvdb added a comment.
As @xzise has suggested on the changeset, API action 'import' should be added as a new method in APISite.
TASK DETAIL
https://phabricator.wikimedia.org/T66877
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: XZise, gerritbot, droid, jayvdb, valhallasw, pywikipedia-bugs