Mercurial > libervia-backend
comparison frontends/src/primitivus/profile_manager.py @ 2146:1bb9bf1b4150
core, frontends: getProfilesList renamed to profilesGetList + behaviour change:
- profilesGetList now handles clients and components boolean arguments, to filter profiles
- jp: added --clients and --components options to profile/list
- profilesGetList now returns sorted profiles
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 19:08:52 +0100 |
parents | 1d3f73e065e1 |
children | 978011533892 |
comparison
equal
deleted
inserted
replaced
2145:33c8c4973743 | 2146:1bb9bf1b4150 |
---|---|
35 #login & password box must be created before list because of onProfileChange | 35 #login & password box must be created before list because of onProfileChange |
36 self.login_wid = sat_widgets.AdvancedEdit(_('Login:'), align='center') | 36 self.login_wid = sat_widgets.AdvancedEdit(_('Login:'), align='center') |
37 self.pass_wid = sat_widgets.Password(_('Password:'), align='center') | 37 self.pass_wid = sat_widgets.Password(_('Password:'), align='center') |
38 | 38 |
39 style = ['no_first_select'] | 39 style = ['no_first_select'] |
40 profiles = host.bridge.getProfilesList() | 40 profiles = host.bridge.profilesListGet() |
41 profiles.sort() | 41 profiles.sort() |
42 self.list_profile = sat_widgets.List(profiles, style=style, align='center', on_change=self.onProfileChange) | 42 self.list_profile = sat_widgets.List(profiles, style=style, align='center', on_change=self.onProfileChange) |
43 | 43 |
44 #new & delete buttons | 44 #new & delete buttons |
45 buttons = [urwid.Button(_("New"), self.onNewProfile), | 45 buttons = [urwid.Button(_("New"), self.onNewProfile), |