[Dev] 1st experiences migrating Note to the schema API
Ted Leung
twl at osafoundation.org
Mon Jun 6 17:21:38 PDT 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notes-schema-patch
Type: application/octet-stream
Size: 2901 bytes
Desc: not available
Url : http://lists.osafoundation.org/pipermail/dev/attachments/20050606/efd6d6a8/notes-schema-patch.obj
-------------- next part --------------
More information about the Dev
mailing list