def add(self, *dic):
        '''add a config to StartCalendarInterval.

        Args:
            *dic (dict): dictionary with format {'Day': 12, 'Hour': 34} Avaliable keys are Month, Day, Weekday, Hour, Minute. *Note the uppercase.* You can use gen(), genMix() to generate complex config dictionary.
        '''
        dicList = list(flatten(dic))
        # for every dict in the list passed in
        for d in dicList:
            # make a dict single (list of pairs)
            di = []
            for k in d:
                # checkKey(k, self.keyWord)
                di.append(Pair(k, IntegerSingle(d[k])))
            dictSingle = DictSingle(di)
            # append dict single to array single's value
            self._add([dictSingle], self.l)
def add ( self , * dic ) : dicList = list ( flatten ( dic ) ) for d in dicList : di = [ ] for k in d : di . append ( Pair ( k , IntegerSingle ( d [ k ] ) ) ) dictSingle = DictSingle ( di ) self . _add ( [ dictSingle ] , self . l )
add a config to StartCalendarInterval.

        Args:
            *dic (dict): dictionary with format {'Day': 12, 'Hour': 34} Avaliable keys are Month, Day, Weekday, Hour, Minute. *Note the uppercase.* You can use gen(), genMix() to generate complex config dictionary.