예제 #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
예제 #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
예제 #3
0
파일: articles.py 프로젝트: Naam/lpbm
 def categories(self, value):
     self._categories_set = set(ltools.split_on_comma(value))
예제 #4
0
파일: articles.py 프로젝트: Naam/lpbm
 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))
예제 #5
0
파일: articles.py 프로젝트: Naam/lpbm
 def categories(self, value):
     self._categories_set = set(ltools.split_on_comma(value))
예제 #6
0
파일: articles.py 프로젝트: Naam/lpbm
 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))