Re: Prevent duplicate attributes - Mailing list pgadmin-hackers

From Thom Brown
Subject Re: Prevent duplicate attributes
Date
Msg-id CAA-aLv4zdLDW9XCkOsjEbzy8Sw_Zav1caOpRR0K1DNuyC+sxuQ@mail.gmail.com
Whole thread Raw
In response to Re: Prevent duplicate attributes  (Thom Brown <thom@linux.com>)
Responses Re: Prevent duplicate attributes  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-hackers
On 14 July 2011 10:31, Thom Brown <thom@linux.com> wrote:
> On 14 July 2011 10:24, Guillaume Lelarge <guillaume@lelarge.info> wrote:
>> So, you're working on fixing it, right?
>
> Possibly ;)  : http://code.pgadmin.org/trac/ticket/329
>
> I haven't had time to look at fixing various bugs over the last couple
> days but I'll get to them shortly.

Apologies for the delay but I've now had a moment to look at it.  The
attached patch removes the duplicate restriction from OnMemberAdd to
OnChangeMember, and also disabled the Add button by default.  This is
because it's enabled on loading the form which doesn't get disabled
again until you start editing the attribute name field, meaning you
can click Add without having provided any attribute details.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgadmin-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Ticket 298: bug on pg_hba.conf editor
Next
From: Guillaume Lelarge
Date:
Subject: Re: Handling connection loss