Hi,

Last week I spent some time trying to port the del.icio.us parcel to the new schema API as a way of getting a feel for the new API. I though people might be interested in my experience.

I needed to do three sets of things in order to do the port:

1. I moved all the attribute definitions for Note from parcel.xml into Notes.py and was able to comment out the entire Kind definition in the parcel.xml file.

2. After that, I inserted a call to the schema module's kindInfo method to set the display name for the Note kind.

3. I also needed to import the Note class from the __init__.py for the osaf.contentmodel package.

Moving Note over was pretty simple and all of the unit tests passed just fine. Note doesn't have any bi-directional references in it (neither does del.icio.us), so I'm probably going to also try to port the Flickr parcel so that I can see how that comes over.

I've attached a patch with my changes if you are interested in seeing the details.

Ted

Attachment: notes-schema-patch
Description: Binary data



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

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

Reply via email to