Ok,

I spent some time this afternoon playing around with this. Here's a patch that got things working under the alpha4 trunk, and allows it run from a directory outside the main Chandler directory. I make no guarantees that this is all the changes that were needed.

Attachment: contacts-patch
Description: Binary data


I did run into some problems importing my Mac address book (500 cards) but these appear to mostly be problems with vObject. It would be great to get some better error reporting / debugging information when something bad happens in the import process. It does look like the import only populates the name fields and shoves the rest into the RAW field. That field should probably be taller if that's all the UI that we are going to have at the moment.

In alpha4, the addressbook collection includes the triage status column which seems odd.

As Jeffrey said, it's a good start.

What are you planning to do next?

Ted

On Jul 31, 2006, at 5:31 PM, Jeffrey Harris wrote:

Hi Ernesto,

Just to let you know that I am committing some modifications to
contact's code:

- Test menu option now works.
- You should be able to import an entire directory containing vCards.

I just took a quick look at your vCard parcel. It's a good start! Here
are a few notes:

- You mention an egg on the wiki, but I didn't see any links to download
one, so I just did a svn export (I updated the wiki so the directions
use the appropriate URL and export instead of checkout)

- I tried to put the parcel in my PARCELPATH, but the test menu was hard coded to assume I was using $CHANDLERHOME/parcels/ for all parcels. It would be convenient to use __file__ or better, the setuptools equivalent
that works with eggs,
http://peak.telecommunity.com/DevCenter/PythonEggs#accessing- package-resources

- To work with alpha4, you need to update your code to take into account the recent move away from displayName. I tried the code with the alpha3
branch

- wx.HIDE_READONLY has been removed from wx, so you probably want to
take it out of your import code (we recently had to do this for the rest
of Chandler)

- vobject.readComponents will accept a stream, you can just hand it a
file handle

Keep up the good work,
Jeffrey
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to