Split up security.py into chunks for each application.

Bug #517153 reported by Henning Eggers on 2010-02-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned

Bug Description

The file lib/canonical/launchpad/security.py contains authorization adapters for all parts of Launchpad. It is loaded by this directive in lib/canonical/launchpad/configure.zcml that registers all IAuthorization adapters found in it:

<authorizations module="canonical.launchpad.security" />

Looking at the implementation of the "authorizations" directive in canonical.launchpad.webapp.metazcml.authorizations, there is no reason it could not be called multiple times, like so:

<authorizations module="lp.answers.security" />
<authorizations module="lp.bugs.security" />
<authorizations module="lp.code.security" />
etc.

This would make each chunk much smaller and more managable. AuthorizationBase could remain in its current place to be included by the other security modules.

This is a first simple step towards a simpler security system.

Gary Poster (gary) on 2010-03-03
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers