Merge lp:~tealeg/landscape-client/remove-local-account-name-widget into lp:~landscape/landscape-client/trunk

Proposed by Geoff Teale
Status: Merged
Approved by: Björn Tillenius
Approved revision: 513
Merged at revision: 514
Proposed branch: lp:~tealeg/landscape-client/remove-local-account-name-widget
Merge into: lp:~landscape/landscape-client/trunk
Diff against target: 185 lines (+13/-59)
3 files modified
landscape/ui/view/configuration.py (+0/-8)
landscape/ui/view/tests/test_configuration.py (+0/-6)
landscape/ui/view/ui/landscape-client-settings.glade (+13/-45)
To merge this branch: bzr merge lp:~tealeg/landscape-client/remove-local-account-name-widget
Reviewer Review Type Date Requested Status
Björn Tillenius (community) Approve
Thomas Herve (community) Approve
Review via email: mp+97361@code.launchpad.net

Description of the change

Fixes bug #954285.

This branch removes the Gtk Entry widget for the local account name and unhooks it from landscape.ui.veif.configuration.ClientSettingsDialog.

To post a comment you must log in.
Revision history for this message
Thomas Herve (therve) wrote :

Looks great, +1!

review: Approve
Revision history for this message
Björn Tillenius (bjornt) wrote :

+1!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'landscape/ui/view/configuration.py'
2--- landscape/ui/view/configuration.py 2012-03-13 12:47:54 +0000
3+++ landscape/ui/view/configuration.py 2012-03-14 10:09:21 +0000
4@@ -54,8 +54,6 @@
5 def _set_local_values_from_controller(self):
6 self.local_landscape_host_entry.set_text(
7 self.controller.local_landscape_host)
8- self.local_account_name_entry.set_text(
9- self.controller.local_account_name)
10 self.local_password_entry.set_text(self.controller.local_password)
11
12 def load_data(self):
13@@ -108,12 +106,6 @@
14 "key-release-event",
15 self.on_key_release_event,
16 "local_landscape_host")
17- self.local_account_name_entry = self._builder.get_object(
18- "local-account-name-entry")
19- self.local_account_name_entry.connect(
20- "key-release-event",
21- self.on_key_release_event,
22- "local_account_name")
23 self.local_password_entry = self._builder.get_object(
24 "local-password-entry")
25 self.local_password_entry.connect(
26
27=== modified file 'landscape/ui/view/tests/test_configuration.py'
28--- landscape/ui/view/tests/test_configuration.py 2012-03-06 17:43:11 +0000
29+++ landscape/ui/view/tests/test_configuration.py 2012-03-14 10:09:21 +0000
30@@ -145,8 +145,6 @@
31 self.assertEqual("foo", dialog.hosted_account_name_entry.get_text())
32 self.assertEqual("bar", dialog.hosted_password_entry.get_text())
33 self.assertEqual("", dialog.local_landscape_host_entry.get_text())
34- self.assertEqual("standalone",
35- dialog.local_account_name_entry.get_text())
36 self.assertEqual("", dialog.local_password_entry.get_text())
37
38 def test_revert(self):
39@@ -163,8 +161,6 @@
40 dialog.local_landscape_host_entry.set_text("more.barn")
41 while Gtk.events_pending():
42 Gtk.main_iteration()
43- self.assertEqual("standalone",
44- dialog.local_account_name_entry.get_text())
45 self.assertEqual("bar", dialog.hosted_password_entry.get_text())
46 self.assertEqual("more.barn",
47 dialog.local_landscape_host_entry.get_text())
48@@ -237,8 +233,6 @@
49 self.assertEqual("", dialog.hosted_password_entry.get_text())
50 self.assertEqual("landscape.localdomain",
51 dialog.local_landscape_host_entry.get_text())
52- self.assertEqual("standalone",
53- dialog.local_account_name_entry.get_text())
54 self.assertEqual("manky", dialog.local_password_entry.get_text())
55
56 if not got_gobject_introspection:
57
58=== modified file 'landscape/ui/view/ui/landscape-client-settings.glade'
59--- landscape/ui/view/ui/landscape-client-settings.glade 2012-03-14 08:52:31 +0000
60+++ landscape/ui/view/ui/landscape-client-settings.glade 2012-03-14 10:09:21 +0000
61@@ -202,7 +202,7 @@
62 <action-widget response="0">ok-button</action-widget>
63 </action-widgets>
64 </object>
65- <object class="GtkWindow" id="window1">
66+ <object class="GtkWindow" id="hosted-window">
67 <property name="can_focus">False</property>
68 <child>
69 <object class="GtkFrame" id="hosted-service-frame">
70@@ -323,7 +323,7 @@
71 </object>
72 </child>
73 </object>
74- <object class="GtkWindow" id="window2">
75+ <object class="GtkWindow" id="local-window">
76 <property name="can_focus">False</property>
77 <child>
78 <object class="GtkFrame" id="local-service-frame">
79@@ -342,20 +342,6 @@
80 <property name="row_spacing">12</property>
81 <property name="column_spacing">12</property>
82 <child>
83- <object class="GtkLabel" id="local-account-name-label">
84- <property name="visible">True</property>
85- <property name="can_focus">False</property>
86- <property name="xalign">1</property>
87- <property name="label" translatable="yes">Account name:</property>
88- </object>
89- <packing>
90- <property name="left_attach">0</property>
91- <property name="top_attach">1</property>
92- <property name="width">1</property>
93- <property name="height">1</property>
94- </packing>
95- </child>
96- <child>
97 <object class="GtkLabel" id="local-password-label">
98 <property name="visible">True</property>
99 <property name="can_focus">False</property>
100@@ -364,7 +350,7 @@
101 </object>
102 <packing>
103 <property name="left_attach">0</property>
104- <property name="top_attach">2</property>
105+ <property name="top_attach">1</property>
106 <property name="width">1</property>
107 <property name="height">1</property>
108 </packing>
109@@ -384,21 +370,6 @@
110 </packing>
111 </child>
112 <child>
113- <object class="GtkEntry" id="local-account-name-entry">
114- <property name="visible">True</property>
115- <property name="can_focus">True</property>
116- <property name="hexpand">True</property>
117- <property name="invisible_char">•</property>
118- <property name="invisible_char_set">True</property>
119- </object>
120- <packing>
121- <property name="left_attach">1</property>
122- <property name="top_attach">1</property>
123- <property name="width">1</property>
124- <property name="height">1</property>
125- </packing>
126- </child>
127- <child>
128 <object class="GtkEntry" id="local-password-entry">
129 <property name="visible">True</property>
130 <property name="can_focus">True</property>
131@@ -410,7 +381,7 @@
132 </object>
133 <packing>
134 <property name="left_attach">1</property>
135- <property name="top_attach">2</property>
136+ <property name="top_attach">1</property>
137 <property name="width">1</property>
138 <property name="height">1</property>
139 </packing>
140@@ -438,7 +409,7 @@
141 </object>
142 </child>
143 </object>
144- <object class="GtkWindow" id="window3">
145+ <object class="GtkWindow" id="no-service-window">
146 <property name="can_focus">False</property>
147 <child>
148 <object class="GtkFrame" id="no-service-frame">
149@@ -495,28 +466,25 @@
150 </object>
151 </child>
152 </object>
153- <object class="GtkSizeGroup" id="entries-sizegroup">
154+ <object class="GtkSizeGroup" id="entries-sizgroup">
155 <widgets>
156- <widget name="use-type-combobox"/>
157+ <widget name="hosted-account-name-entry"/>
158+ <widget name="hosted-password-entry"/>
159 <widget name="local-landscape-host-entry"/>
160- <widget name="local-account-name-entry"/>
161 <widget name="local-password-entry"/>
162- <widget name="hosted-account-name-entry"/>
163- <widget name="hosted-password-entry"/>
164- <widget name="signup-linkbutton"/>
165 <widget name="disabled-label"/>
166+ <widget name="use-type-combobox"/>
167 </widgets>
168 </object>
169 <object class="GtkSizeGroup" id="labels-sizegroup">
170 <widgets>
171- <widget name="use-type-label"/>
172+ <widget name="hosted-account-name-label"/>
173+ <widget name="hosted-password-label"/>
174+ <widget name="no-account-label"/>
175 <widget name="local-landscape-host-label"/>
176- <widget name="local-account-name-label"/>
177 <widget name="local-password-label"/>
178- <widget name="no-account-label"/>
179- <widget name="hosted-password-label"/>
180- <widget name="hosted-account-name-label"/>
181 <widget name="empty-label"/>
182+ <widget name="use-type-label"/>
183 </widgets>
184 </object>
185 </interface>

Subscribers

People subscribed via source and target branches

to all changes: