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..

its proving to be an educational, if somewhat torturous experience and I'm trying to do it in stages over the next few days.

But in the meantime, I wanted to ask that before you make any changes to this file, or any other parcel.xml that declares block or event instances, that you see me first...

The one exception to this is the detail view... bryan says he's taking care of most of that.

And John/Ted - I'm trying to leave all of the itemcollection stuff intact for the moment to make merging as simple as possible for you guys. When I'm ready to land I'll get in contact with you and figure out the best strategies to minimize impact on the branch.

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

Reply via email to