Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 def categories(self, value):
     self._categories_set = set(ltools.split_on_comma(value))
Exemple #4
0
 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))
Exemple #5
0
 def categories(self, value):
     self._categories_set = set(ltools.split_on_comma(value))
Exemple #6
0
 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))