Пример #1
0
 def __init__(self, mdict=None):
     from arjuna import log_debug
     log_debug("Input Meta Dict for Meta creation: {}".format(
         repr_dict(mdict)))
     temp_dict = not mdict and CIStringDict() or CIStringDict(mdict)
     self.__mdict = CIStringDict()
     self.__process_type(temp_dict)
     self.__process_relations(temp_dict)
     self.__process_filters(temp_dict)
     self.__process_settings(temp_dict)
     self.__mdict.update({
         k: v
         for k, v in temp_dict.items()
         if k.lower() not in {"type", "relations", "settings", "filters"}
     })
     log_debug("Meta dictionary is: {}".format(repr_dict(self.__mdict)))
Пример #2
0
 def __init__(self, mdict=None):
     from arjuna import log_debug
     temp_dict = not mdict and CIStringDict() or CIStringDict(mdict)
     self.__mdict = CIStringDict()
     self.__process_type(temp_dict)
     self.__process_relations(temp_dict)
     self.__process_filters(temp_dict)
     self.__process_settings(temp_dict)
     log_debug("Meta dictionary is: {}".format(repr_dict(self.__mdict)))
Пример #3
0
 def __str__(self):
     return repr_dict(self.__settings)
Пример #4
0
 def __str__(self):
     return repr_dict(self.__mdict)
Пример #5
0
 def __str__(self):
     return repr_dict(vars(self), replace_value_enum=True)
Пример #6
0
 def __str__(self):
     return repr_dict({
         "locators": [str(l) for l in self.__locators],
         "meta": str(self.__meta)
     })