Esempio n. 1
0
 def __create_logpath_group(statements=None, flags=None):
     logpath = LogPath()
     if statements:
         logpath.add_groups(statements)
     if flags:
         logpath.add_flags(cast_to_list(flags))
     return logpath
Esempio n. 2
0
 def __create_logpath_group(statements=None, flags=None):
     logpath = LogPath()
     if statements:
         logpath.add_groups(statements)
     if flags:
         logpath.add_flags(cast_to_list(flags))
     return logpath
Esempio n. 3
0
 def __create_logpath_with_conversion(self, items, flags):
     return self.__create_logpath_group(
         map(self.create_statement_group_if_needed, cast_to_list(items)),
         flags)
Esempio n. 4
0
 def __init__(self, statements):
     super(StatementGroup, self).__init__(cast_to_list(statements))
     self.__group_type = self.__calculate_group_type(cast_to_list(statements))
     self.__group_id = "%s_%s" % (self.__group_type, get_unique_id())
Esempio n. 5
0
 def __init__(self, statements):
     super(StatementGroup, self).__init__(cast_to_list(statements))
     self.__group_type = self.__calculate_group_type(cast_to_list(statements))
     self.__group_id = "%s_%s" % (self.__group_type, get_unique_id())
Esempio n. 6
0
 def __create_logpath_with_conversion(self, items, flags):
     return self.__create_logpath_group(
         map(self.create_statement_group_if_needed, cast_to_list(items)),
         flags)