From: Mark Hymers Date: Sat, 23 May 2009 23:04:01 +0000 (+0100) Subject: add get_split_maintainer method X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4258a4e33218d4b6c271bd19b0a0723dba1fbed5;p=dak add get_split_maintainer method Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index b3811a1a..113c38aa 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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 '''''' % (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') ################################################################################