Merge lp:~mago-contributors/mago/mago-1.0-baobabfix into lp:~mago-contributors/mago/mago-1.0

Proposed by Patrick Wright
Status: Merged
Merge reported by: Jean-Baptiste Lallement
Merged at revision: not available
Proposed branch: lp:~mago-contributors/mago/mago-1.0-baobabfix
Merge into: lp:~mago-contributors/mago/mago-1.0
Diff against target: 26 lines (+7/-9)
1 file modified
mago/application/baobab.py (+7/-9)
To merge this branch: bzr merge lp:~mago-contributors/mago/mago-1.0-baobabfix
Reviewer Review Type Date Requested Status
Mago Contributors Pending
Review via email: mp+56966@code.launchpad.net

Description of the change

fix for baobab change views method

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mago/application/baobab.py'
2--- mago/application/baobab.py 2011-03-21 17:36:16 +0000
3+++ mago/application/baobab.py 2011-04-08 14:56:32 +0000
4@@ -118,15 +118,13 @@
5
6 def baobab_change_views(self):
7 baobab = ooldtp.context(self.name)
8- baobab.remap()
9-
10- #Change the graph view.
11- comboView = baobab.getchild(self.CBO_VIEWAS)
12-
13- for item in comboView.getallitem():
14- ldtp.wait(2)
15- comboView.selectitem(item)
16-
17+
18+ #Change the graph view.
19+ if baobab.guiexist('cboViewasRingsChart'):
20+ baobab.comboselect('cboViewasRingsChart', 'mnuViewasTreemapChart')
21+ else:
22+ baobab.comboselect('cboViewasTreemapChart', 'mnuViewasRingsChart')
23+
24 #Collapse and expand the tree
25 baobab.getchild(self.MNU_EXPANDALL).selectmenuitem()
26 ldtp.wait(2)

Subscribers

People subscribed via source and target branches

to status/vote changes: