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
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
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)
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())
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())
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)