Page MenuHomePhabricator

Page factory
Closed, ResolvedPublic

Description

pywikibot should have an entity factory, which creates a Page of the relevant subclass based on the namespace (at least), which might be hard-coded, or could be dynamic (e.g. ItemPage) or could be defined by the family (e.g. wikisource_families Author: namespaces)

c.f. https://gerrit.wikimedia.org/r/#/c/171780/13..14/pywikibot/data/api.py,unified

Related Objects

StatusSubtypeAssignedTask
OpenNone
ResolvedXqt

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb subscribed.
Restricted Application added subscribers: Aklapper, Unknown Object (MLST). · View Herald TranscriptFeb 5 2015, 11:35 AM
Xqt triaged this task as Low priority.Jun 28 2017, 8:26 AM
Xqt claimed this task.
Xqt subscribed.

I guess this kind of upcast is already implemented