def is_valid_list(self, lst): lst = ltools.split_on_comma(lst) for id in lst: if not self.is_valid(id): return False return True
def categories(self, value): self._categories_set = set(ltools.split_on_comma(value))
def authors(self, authors): ''' Takes a string of comma-separated authors and adds them to authors of the article. ''' self._authors_set = set(ltools.split_on_comma(authors))