Xqt changed the task status from "In Progress" to "Open".
Xqt added a comment.


  @Ivan-r: Your family file is incorrect and causes this issue.
  
  **I.**
  Please replace
  
    crossnamespace: family.CrossnamespaceType = collections.defaultdict(dict)
  
  by
  
    crossnamespace = collections.defaultdict(dict)
  
  (removing type hints)
  
  **II.**
  Please replace this line
  
    shared_image_repository = ('mcw', 'en')
  
  and instead add the proper method
  
    def shared_image_repository(self, code):
        """Return the shared image repository, if any."""
        return ('en', 'mcw')
  
  For example, place it at the bottom of the family file.
  Please ensure that the indentation is correct.
  
  **Reason**
  Some site methods are delegated from the Site object to the Family object. 
This delegation only works for Family methods that have //code// as their first 
parameter. `shared_image_repository()` is one such method. If you overwrite it 
by an attribute instead of defining it as a method, this delegation cannot 
occur, and the corresponding Site method will fail.

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to