Commit de082d9c authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho Committed by blissadm_ID31@bibhelm

settings: make 'a in hash_setting' syntax work

parent f493a7e1
......@@ -549,6 +549,14 @@ class HashSetting(object):
value = self._write_type_conversion(value)
cnx.hset(self._name,key,value)
def __contains__(self,key):
try:
self[key]
return True
except KeyError:
return False
class HashSettingProp(object):
def __init__(self,name,connection = None,
read_type_conversion = auto_conversion,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment