|
ok, I've just converted the bulk of mainview over to python, minus any
of the summary views. This was a pretty huge change but I don't expect any enormous problems as I did much of the conversion with a script, and I've tested every single menu item and toolbar item to ensure that the behavior was the same as the current behavior. However, if there are problems they will probably show up in the form of: - missing events or event names - events not dispatching correctly - event parameters not correct. The net result was 1287 fewer lines of parcel.xml, and about 900 new lines of python to declare the same blocks. - around 220 items converted in total. Bryan will be happy to know that all localized block attributes are using _(u'....') as well. As long as you use the block template mechanism as demonstrated, all blocks now have their repository name (i.e. 'itsName') identical to 'blockName', and all blocks that refer to events automatically publish the event name using eventsForNamedLookup. If you're curious what this looks like, please check out http://svn.osafoundation.org/chandler/trunk/chandler/parcels/osaf/views/main/mainblocks.py The next step will be converting the summary views. Alec Alec Flett wrote: I'm in the process of converting much of osaf/view/main/parcel.xml over to python. You may have seen the first few stages of the work in the last day or two.. |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "Dev" mailing list http://lists.osafoundation.org/mailman/listinfo/dev
