Mercurial > libervia-backend
changeset 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 |
files | src/bridge/bridge_constructor/bridge_template.ini src/memory/memory.py |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini Fri Dec 27 13:28:26 2013 +0100 +++ b/src/bridge/bridge_constructor/bridge_template.ini Sat Jan 04 21:12:49 2014 +0100 @@ -1,7 +1,7 @@ [DEFAULT] doc_profile=profile: Name of the profile. doc_profile_key=profile_key: Profile key which can be either a magic (eg: @DEFAULT@) or the name of an existing profile. -doc_security_limit=security_limit: -1 means no security then the higher the most secure +doc_security_limit=security_limit: -1 means no security, 0 is the maximum security then the higher the less secure ;signals
--- a/src/memory/memory.py Fri Dec 27 13:28:26 2013 +0100 +++ b/src/memory/memory.py Sat Jan 04 21:12:49 2014 +0100 @@ -298,9 +298,9 @@ def updateParams(self, xml, security_limit=NO_SECURITY_LIMIT, app=''): """import xml in parameters, do nothing if the param already exist If security_limit is specified and greater than -1, the parameters - that have a security level lower than security_limit are skipped. + that have a security level greater than security_limit are skipped. @param xml: parameters in xml form - @param security_limit: -1 means no security then the higher the most secure + @param security_limit: -1 means no security, 0 is the maximum security then the higher the less secure @param app: name of the frontend registering the parameters or empty value """ src_parent = minidom.parseString(xml.encode('utf-8')).documentElement @@ -352,9 +352,9 @@ def paramsRegisterApp(self, xml, security_limit, app): """Register frontend's specific parameters If security_limit is specified and greater than -1, the parameters - that have a security level lower than security_limit are skipped. + that have a security level greater than security_limit are skipped. @param xml: XML definition of the parameters to be added - @param security_limit: -1 means no security then the higher the most secure + @param security_limit: -1 means no security, 0 is the maximum security then the higher the less secure @param app: name of the frontend registering the parameters """ if not app: