Comment 1 for bug 2458

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 2458] Cant mark 2414 dupe of 1975

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)

Diogo Matsubara via Malone wrote:
> Public bug reported:
> https://launchpad.net/malone/bugs/2458
>
> Affects: upstream launchpad
> Severity: Normal
> Priority: Medium
> Status: New
>
> Description:
> Im trying to mark #2414 a dupe of #1975 at:
>
> https://launchpad.net/malone/bugs/2414/+duplicate
>
> When i entered the 1975 and click in Change, i get an error: Constraint not
> satisfied.
>

The validator needs to raise a
canonical.launchpad.validators.LaunchpadValidationError instead of just
returning False.

See canonical/launchpad/validators/name.py for an example of the new way of
writing field validators.

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/