|
The API is pretty darn simple. Right now, it looks like this: import osaf.views.main. def installParcel(parcel, oldVersion=None) ResourceLoader.LoadIntoParcel(parcel, "menus.xml") since the parcel is more or less just a small soup in the larger soup of the repository, all the items get loaded relative to the parcel. The "id" attribute is hooked up to the 'name' in the parcel. So you could say MenuItem.update(parcel, 'FileMenu', foo=bar) to update the FileMenu item that was loaded via XML. Alec Brendan O'Connor wrote: I'd be interested in seeing what the loading interface looks like from inside python installParcel(), since this xml is just a helper thing and presumably you're supposed to hook up blocks from inside there to other things defined in python.On Tue, 2005-08-09 at 17:21 -0700, Alec Flett wrote:Here's a very quick overview of my XmlForCpia proposal. I have already implemented the parser that does all of these things, as well as a tool that dumps the current block structure from a currently-running chandler into XmlForCpia format (in fact that's where the same code comes from) http://wiki.osafoundation.org/bin/view/Journal/XmlForCpia I'll be on IRC tomorrow for folks who want to discuss it. Alec _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev
