Page MenuHomePhabricator

Find a better way to name and promote site page generators
Open, Needs TriagePublic

Description

The pagegenerators are currently in the following state:

pagegenerators.SomePageGenerator() - general generator
pagegenerators.SomeFilterPageGenerator() - general filter
Site.somepages - site generator

The problem is that site page generators are hard to find, hard to distinguish from other site methods and attributes. I don't know if it would be better to rename them in some way or move them into a separate file (as @Xqt already proposed on Gerrit) or maybe something else?

Another thing to consider are page page generators (like Category.articles).

Event Timeline

(as @Xqt already proposed on Gerrit)

I proposed something? Don't remember this case - give me a hint ;)

You proposed to split site.py into a folder in https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/480503/. It can be a possible solution

You proposed to split site.py into a folder in https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/480503/. It can be a possible solution

Yes indeed