events updated
This commit is contained in:
@@ -214,6 +214,10 @@ class CategoryCluster:
|
||||
self.INCLUDE_IN_SCHEMA = include_in_schema
|
||||
self.IS_CLIENT = is_client
|
||||
|
||||
@property
|
||||
def is_clickable(self):
|
||||
return bool(self.SUBCATEGORY)
|
||||
|
||||
@property
|
||||
def is_client(self):
|
||||
return self.IS_CLIENT
|
||||
|
||||
@@ -82,7 +82,8 @@ class PrepareEvents(DecoratorModule):
|
||||
cluster = cluster_control.category_cluster
|
||||
### Create Redis Parameters
|
||||
# [SAVE]REDIS => MENU_FIRST_LAYER = [ClusterToMethod, ...]
|
||||
self.valid_redis_items.MENU_FIRST_LAYER_VALUE.add(cluster.name)
|
||||
if cluster.is_client:
|
||||
self.valid_redis_items.MENU_FIRST_LAYER_VALUE.add(cluster.name)
|
||||
# [SAVE]REDIS => CLUSTER_INDEX = {ClusterToMethod: [MethodEvent, ...], "MethodEvent": "ClusterToMethod"}
|
||||
self.valid_redis_items.CLUSTER_INDEX_VALUE.update(
|
||||
cluster.get_redis_cluster_index_value()
|
||||
|
||||
Reference in New Issue
Block a user