Merge lp://staging/~james-w/pkgme/allowable-backends into lp://staging/pkgme
Proposed by
James Westby
Status: | Merged |
---|---|
Merged at revision: | 84 |
Proposed branch: | lp://staging/~james-w/pkgme/allowable-backends |
Merge into: | lp://staging/pkgme |
Diff against target: |
234 lines (+111/-21) 4 files modified
pkgme/__init__.py (+2/-2) pkgme/backend.py (+31/-10) pkgme/tests/test_backend.py (+46/-0) pkgme/tests/test_write_packaging.py (+32/-9) |
To merge this branch: | bzr merge lp://staging/~james-w/pkgme/allowable-backends |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange | Needs Fixing | ||
Review via email:
|
Description of the change
Hi,
This allows API users to specify a list of backend names that are
allowed to be loaded.
This will allow us to prevent the python backend from running on the
server.
I went with whitelist rather than blacklist as I thought it would make
deployment easier later.
Thanks,
James
To post a comment you must log in.
Hello!
Thanks for this patch. It looks pretty good, except that the exception will probably always have a list of the same backends twice when there are a whitelist of allowed backends. Each backend in the whitelist will be attempted, right? So showing both tried & whitelisted means that there'll be a duplicate list.
Other than that, looks good.
jml