提交 4258a4e3 编写于 作者: M Mark Hymers

add get_split_maintainer method

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 d733acb0
......@@ -44,6 +44,7 @@ from sqlalchemy.orm import sessionmaker, mapper, relation
from sqlalchemy.exc import *
from singleton import Singleton
from textutils import fix_maintainer
################################################################################
......@@ -549,6 +550,12 @@ class Maintainer(object):
def __repr__(self):
return '''<Maintainer '%s' (%s)>''' % (self.name, self.maintainer_id)
def get_split_maintainer(self):
if not hasattr(self, 'name') or self.name is None:
return ('', '', '', '')
return fix_maintainer(self.name.strip())
__all__.append('Maintainer')
################################################################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册