Browse Source

Fix faulty default in serv_config.py

pull/68/head
Nicolas Bessi 10 years ago
parent
commit
690ae1e338
  1. 4
      server_environment/serv_config.py

4
server_environment/serv_config.py

@ -53,8 +53,10 @@ if not os.path.exists(ck_path):
) )
def setboolean(obj, attr, _bool=_boolean_states):
def setboolean(obj, attr, _bool=None):
"""Replace the attribute with a boolean.""" """Replace the attribute with a boolean."""
if _bool is None:
_bool = dict(_boolean_states) # we copy original dict
res = _bool[getattr(obj, attr).lower()] res = _bool[getattr(obj, attr).lower()]
setattr(obj, attr, res) setattr(obj, attr, res)
return res return res

Loading…
Cancel
Save