comparison browser_side/menu.py @ 215:e830a0c60d32

server side: added the security_limit to setParam - in addition to the check which is done by the core, libervia checks if the param to be modified was really part of the XML that has been returned by getParams with security_limit = 0.
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 02:07:07 +0200
parents 3092f6b1710c
children 4e6467efd6bf
comparison
equal deleted inserted replaced
214:7b26be266ab1 215:e830a0c60d32
324 324
325 #Settings menu 325 #Settings menu
326 326
327 def onParameters(self): 327 def onParameters(self):
328 def gotParams(xmlui): 328 def gotParams(xmlui):
329 # TODO: don't display the dialog if xmlui contains no param node
329 body = XMLUI(self.host, xmlui) 330 body = XMLUI(self.host, xmlui)
330 _dialog = dialog.GenericDialog("Parameters", body, options=['NO_CLOSE']) 331 _dialog = dialog.GenericDialog("Parameters", body, options=['NO_CLOSE'])
331 body.setCloseCb(_dialog.close) 332 body.setCloseCb(_dialog.close)
332 _dialog.setSize('80%', '80%') 333 _dialog.setSize('80%', '80%')
333 _dialog.show() 334 _dialog.show()