lp:~zyga/checkbox/better-plugins

Created by Zygmunt Krynicki and last modified
Get this branch:
bzr branch lp:~zyga/checkbox/better-plugins
Only Zygmunt Krynicki can upload to this branch. If you are Zygmunt Krynicki please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Zygmunt Krynicki
Project:
Checkbox
Status:
Merged

Recent revisions

2583. By Zygmunt Krynicki

plainbox:secure:plugins: unify fake_open() functions

Signed-off-by: Zygmunt Krynicki <email address hidden>

2582. By Zygmunt Krynicki

plainbox:secure:plugins: support multiple extensions

This patch adds support for multiple file extensions in
FsPlugInCollection. By passing any sequence-like object instead of a
plain string any of the extensions contained therein are accepted.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2581. By Zygmunt Krynicki

plainbox:secure:plugins: handle OSError in FSPlugInCollection

This patch makes FSPlugInCollection handle both OSError and IOError
since IOError can happen in read (this was already handled) but OSError
can happen on open().

Signed-off-by: Zygmunt Krynicki <email address hidden>

2580. By Zygmunt Krynicki

plainbox:secure:plugins: add a way to pass extra arguments to wrappers

This patch makes it possible to pass additional arguments to
each instantiated wrapper object. This can be especially useful when
using custom wrappers that may need extra arguments to be properly
constructed.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2579. By Zygmunt Krynicki

plainbox:secure:plugins: add IPlugInCollection.get_all_plugin_objects()

This patch adds a new utility method to IPlugInCollection, that returns
a list of all the objects exposed by all of the loaded plugin objects.
This is basically the list of things other pieces of code needs to work
with so having it via one method should simplify other parts of the app.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2578. By Zygmunt Krynicki

plainbox:secure:plugins: add a way to track problems in plugin collection

This patch adds a new instance argument, _problem_list, which collects
all exceptions raised when trying to discover and load plugins.

Signed-off-by: Zygmunt Krynicki <email address hidden>

2577. By Zygmunt Krynicki

plainbox:secure:plugins: add docstrings for PlugInCollectionBase

Signed-off-by: Zygmunt Krynicki <email address hidden>

2576. By Zygmunt Krynicki

plainbox:secure:plugins: add docstrings for PlugIn

Signed-off-by: Zygmunt Krynicki <email address hidden>

2575. By Zygmunt Krynicki

plainbox:secure:plugins: add docstrings for PkgResourcesPlugInCollectionTests

Signed-off-by: Zygmunt Krynicki <email address hidden>

2574. By Zygmunt Krynicki

plainbox:secure:plugins: add tests for PlugInCollectionBase

This patch also removes a duplicate, older test for
PlugInCollectionBase.fake_plugins() that was added to another class.

Signed-off-by: Zygmunt Krynicki <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:checkbox
This branch contains Public information 
Everyone can see this information.

Subscribers