comparison sat/core/sat_main.py @ 2879:5ba98fd6c9a4

core: minor style improvments
author Goffi <goffi@goffi.org>
date Wed, 27 Mar 2019 21:15:25 +0100
parents c161a294fffd
children b06cb71079fa
comparison
equal deleted inserted replaced
2878:a02ad4bc0a6d 2879:5ba98fd6c9a4
1300 extra = {} # TODO: manage extra data like icon 1300 extra = {} # TODO: manage extra data like icon
1301 ret.append((menu_id, type_, path, path_i18n, extra)) 1301 ret.append((menu_id, type_, path, path_i18n, extra))
1302 1302
1303 return ret 1303 return ret
1304 1304
1305 def _launchMenu( 1305 def _launchMenu(self, menu_type, path, data=None, security_limit=C.NO_SECURITY_LIMIT,
1306 self, 1306 profile_key=C.PROF_KEY_NONE):
1307 menu_type,
1308 path,
1309 data=None,
1310 security_limit=C.NO_SECURITY_LIMIT,
1311 profile_key=C.PROF_KEY_NONE,
1312 ):
1313 client = self.getClient(profile_key) 1307 client = self.getClient(profile_key)
1314 return self.launchMenu(client, menu_type, path, data, security_limit) 1308 return self.launchMenu(client, menu_type, path, data, security_limit)
1315 1309
1316 def launchMenu( 1310 def launchMenu(self, client, menu_type, path, data=None,
1317 self, client, menu_type, path, data=None, security_limit=C.NO_SECURITY_LIMIT 1311 security_limit=C.NO_SECURITY_LIMIT):
1318 ):
1319 """launch action a menu action 1312 """launch action a menu action
1320 1313
1321 @param menu_type(unicode): type of menu to launch 1314 @param menu_type(unicode): type of menu to launch
1322 @param path(iterable[unicode]): canonical path of the menu 1315 @param path(iterable[unicode]): canonical path of the menu
1323 @params data(dict): menu data 1316 @params data(dict): menu data