Mercurial > libervia-backend
comparison src/memory/memory.py @ 778:bfafed251b40
memory: fixed wrong information in the docstrings for security_limit
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 04 Jan 2014 21:12:49 +0100 |
parents | 5642939d254e |
children | a978c703bf57 |
comparison
equal
deleted
inserted
replaced
777:5642939d254e | 778:bfafed251b40 |
---|---|
296 return None | 296 return None |
297 | 297 |
298 def updateParams(self, xml, security_limit=NO_SECURITY_LIMIT, app=''): | 298 def updateParams(self, xml, security_limit=NO_SECURITY_LIMIT, app=''): |
299 """import xml in parameters, do nothing if the param already exist | 299 """import xml in parameters, do nothing if the param already exist |
300 If security_limit is specified and greater than -1, the parameters | 300 If security_limit is specified and greater than -1, the parameters |
301 that have a security level lower than security_limit are skipped. | 301 that have a security level greater than security_limit are skipped. |
302 @param xml: parameters in xml form | 302 @param xml: parameters in xml form |
303 @param security_limit: -1 means no security then the higher the most secure | 303 @param security_limit: -1 means no security, 0 is the maximum security then the higher the less secure |
304 @param app: name of the frontend registering the parameters or empty value | 304 @param app: name of the frontend registering the parameters or empty value |
305 """ | 305 """ |
306 src_parent = minidom.parseString(xml.encode('utf-8')).documentElement | 306 src_parent = minidom.parseString(xml.encode('utf-8')).documentElement |
307 | 307 |
308 def pre_process_app_node(src_parent, security_limit, app): | 308 def pre_process_app_node(src_parent, security_limit, app): |
350 import_node(self.dom.documentElement, src_parent) | 350 import_node(self.dom.documentElement, src_parent) |
351 | 351 |
352 def paramsRegisterApp(self, xml, security_limit, app): | 352 def paramsRegisterApp(self, xml, security_limit, app): |
353 """Register frontend's specific parameters | 353 """Register frontend's specific parameters |
354 If security_limit is specified and greater than -1, the parameters | 354 If security_limit is specified and greater than -1, the parameters |
355 that have a security level lower than security_limit are skipped. | 355 that have a security level greater than security_limit are skipped. |
356 @param xml: XML definition of the parameters to be added | 356 @param xml: XML definition of the parameters to be added |
357 @param security_limit: -1 means no security then the higher the most secure | 357 @param security_limit: -1 means no security, 0 is the maximum security then the higher the less secure |
358 @param app: name of the frontend registering the parameters | 358 @param app: name of the frontend registering the parameters |
359 """ | 359 """ |
360 if not app: | 360 if not app: |
361 warning(_("Trying to register frontends parameters with no specified app: aborted")) | 361 warning(_("Trying to register frontends parameters with no specified app: aborted")) |
362 return | 362 return |