def DEFINITION(cls): """ This is a static definition of all the default values of flags. This is used to construct the UserKV. """ DEFINITION = {} channels = expander.channel_map.values() for channel in channels: DEFINITION[cls.make_channel_action_key(channel, "ALL")] = hbool(True) for action in channel.all_handled_actions(): DEFINITION[cls.make_channel_action_key(channel, action)] = hbool(True) return DEFINITION
def create_hash(self): return RedisCachedHash('redis_object_key', { 'ifoo': hint(100), 'sbar': hstr("default"), 'bbaz': hbool(), 'fqux': hfloat(), })
def create_hash(self): return RedisCachedHash( 'redis_object_key', { 'ifoo': hint(100), 'sbar': hstr("default"), 'bbaz': hbool(), 'fqux': hfloat(), })