示例#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))