From 4258a4e33218d4b6c271bd19b0a0723dba1fbed5 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 24 May 2009 00:04:01 +0100 Subject: [PATCH] add get_split_maintainer method Signed-off-by: Mark Hymers --- daklib/dbconn.py | 7 +++++++ 1 file changed, 7 insertions(+) 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') ################################################################################ -- 2.39.5