[RFC] Automatic Plugin Suggestion
Alexander Belchenko
bialix at ukr.net
Sat Feb 16 09:22:49 GMT 2008
bb:comment
Martin Albisetti пишет:
> Initially I was going to allow/make each plugin offer it's own DB of
> plugins, forcing them to reimplement the code basis for checking the
> availability of a command and handling it correctly. This would
> duplicate too much code and make the "official plugins" DB be
> type-of-installer specific (debs, rpms, etc).
> It seemed like too much of a hassle to maintain for each plugin a DB
> and would make the term "official plugin" be much more blurry since it
> would depend on each installer.
> The actual idea of a plugin being official or not I think is a great
> opportunity to incentive people to keep their code basis as clean and
> bug-less as possible, and adhere to a list of requisites of quality
> standards we would define.
I think that actually each plugin should maintain their own database
in its source codebase, and plugin_db.py in the bzr sources
should be auto-generated from plugins data bases.
> What I'm attaching here is an attempt at the infrastructure to check
> for the availability of a command within a plugin (leaving it hookable
> if someone else wants to override it for some reason), and does not
> know anything about other possible installers since we really don't
> need to know at this point who/how it can installed.
> It also needs some PEP8 love
Indeed.
More information about the bazaar
mailing list