Page MenuHomePhabricator

Changing qualifier value is blocked on NotImplementedError
Open, Needs TriagePublic

Description

This is the piece of code in question:

pywikibot/site.py
def changeClaimTarget(self, claim, snaktype='value', bot=True, summary=None):
  if claim.isReference or claim.isQualifier:
    raise NotImplementedError

This safeguard prevents invalid wbsetclaimvalue call. However, qualifiers should use wbsetqualifier and references should use wbsetreference.

These API modules require information that the current Pywikibot implementation cannot provide at the moment.