Comment 3 for bug 724740

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 724740] Re: setting a ppa private cannot be done over the API

On Fri, May 27, 2011 at 4:17 AM, Timothy R. Chavez
<email address hidden> wrote:
> I've proposed my implementation for this bug and discussed it with
> bigjools on #launchpad-dev.
>
> The basic strategy is to make the 'private' attribute on IArchivePublic
> read-only and create a mutator for it (e.g. setPrivate) which will
> replace the current validator ( _validate_archive_privacy) and add the
> logic to set 'private' and, if set to True, generate and set the value
> of the 'buildd_secret' attribute if it does not yet exist.

Huh? Just make altering the private attribute run some business logic.
No API changes are needed.