Closed Bug 403953 Opened 17 years ago Closed 17 years ago

Enable the Address Book property dialogs to be address book type specific without nasty hacks.

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch The fix (obsolete) — Splinter Review
Currently if you're not an LDAP directory, then you have to use the standard "rename only" dialog for your address book properties (or do some really horrible overloading).

The patch I'm attaching provides a read only attribute in nsIAbDirectory (propertiesChromeURI) that returns the URI for the purpose of displaying the dialog. This should help future dev.

I was going to do this attribute/function so that it would display the dialog in the c++. Then I found out that to do it would require many more lines than doing it in the js - so I opted for the simpler solution.

I'm not fussed about the new directory functions at the moment, we'd have to have a way of getting the properties from the factory, probably via nsIAddressBook, and we're not really set up for that at the moment. Additionally, its a lot easier to provide an overlay which calls the required new function than it is for the edit/properties functions.

Patch does the required changes for TB & SM.
Attachment #288882 - Flags: superreview?(bienvenu)
Attachment #288882 - Flags: review?(neil)
Comment on attachment 288882 [details] [diff] [review]
The fix

this looks OK to me, as long as Neil likes it :-)
Attachment #288882 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 288882 [details] [diff] [review]
The fix

You never actually override the property for LDAP address books so they can't be edited from the main addressbook window with this patch...
Attachment #288882 - Flags: review?(neil) → review-
(In reply to comment #2)
> (From update of attachment 288882 [details] [diff] [review])
> You never actually override the property for LDAP address books so they can't
> be edited from the main addressbook window with this patch...

Well I do in my local build ;-) Sorry, obviously missed that file from the patch. I'll attach a new one later.
Attached patch The fix v2 (obsolete) — Splinter Review
Corrected patch with the LDAP override this time...
Attachment #288882 - Attachment is obsolete: true
Attachment #288992 - Flags: superreview+
Attachment #288992 - Flags: review?(neil)
Attached patch The fix v3Splinter Review
Lets see if I can get it right this time...
Attachment #288992 - Attachment is obsolete: true
Attachment #288994 - Flags: superreview+
Attachment #288994 - Flags: review?(neil)
Attachment #288992 - Flags: review?(neil)
Attachment #288994 - Flags: review?(neil) → review+
Patch checked in. Fixed.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Mark, FWIW it looks like you transposed the bug numbers in the checkin description
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: