[Adium-devl] [Adium-svn] rev 22094 - in trunk: Frameworks/Adium Framework/Source Resources

Peter Hosey boredzo at gmail.com
Wed Jan 2 07:26:31 UTC 2008


On Jan 01, 2008, at 23:19:37, Evan Schoenberg wrote:
> Two AIAccount objects with the same UID and service could exist …

Is there a good reason to allow this in the first place?

>> I do notice that in r22005, “account "foo at bar.com"” returns an  
>> account rather than raising an error, which is certainly a bug.  
>> But that's different: the service is missing from the reference,  
>> which should be an error whenever the account specifier is ambiguous
>
> I don't understand what you're pointing out here.

Create two accounts with the same UID, foo at bar.com. Then try this  
script:

	tell app "Adium" to account "foo at bar.com"

Surprise: It returns an account. Of course, it's not guaranteed to be  
one account or the other, since you weren't specific enough.

What it *should* do (and doesn't, as of this old rev) is raise an error.

The same could be said of “account "foo at bar.com" of service  
"Jabber"” for multiple Jabber accounts with that UID, if we want to  
continue allowing that sort of tomfoolery.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080101/af0c6b54/attachment.sig>


More information about the devel mailing list