Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 634:ca2cae6b2c6d
core: security attribute added to the parameters
- getParams, getParamsUI and getParamsForCategory have a security_limit parameter to filter
- parameters with security = 0 can be retrieved/modified from Libervia
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 05 Sep 2013 20:28:44 +0200 |
parents | 6a29a4d574bd |
children | 3b02554d4c8b |
comparison
equal
deleted
inserted
replaced
633:6a29a4d574bd | 634:ca2cae6b2c6d |
---|---|
505 def onParam(self, menu): | 505 def onParam(self, menu): |
506 def success(params): | 506 def success(params): |
507 self.addWindow(XMLUI(self,xml_data=params)) | 507 self.addWindow(XMLUI(self,xml_data=params)) |
508 def failure(error): | 508 def failure(error): |
509 self.showPopUp(sat_widgets.Alert(_("Error"), _("Can't get parameters"), ok_cb=self.removePopUp)) | 509 self.showPopUp(sat_widgets.Alert(_("Error"), _("Can't get parameters"), ok_cb=self.removePopUp)) |
510 self.bridge.getParamsUI(self.profile, callback=success, errback=failure) | 510 security_limit = -1 |
511 self.bridge.getParamsUI(security_limit, self.profile, callback=success, errback=failure) | |
511 | 512 |
512 | 513 |
513 def onExitRequest(self, menu): | 514 def onExitRequest(self, menu): |
514 QuickApp.onExit(self) | 515 QuickApp.onExit(self) |
515 raise urwid.ExitMainLoop() | 516 raise urwid.ExitMainLoop() |