* src/plugins/rel_de.py: Implement get_parents().

svn: r2844
This commit is contained in:
Alex Roitman
2004-02-15 22:44:50 +00:00
parent fc820799ff
commit f7ea6b50ff
3 changed files with 232 additions and 160 deletions

View File

@@ -32,8 +32,8 @@
#-------------------------------------------------------------------------
import RelLib
import GrampsCfg
import Relationship
from gettext import gettext as _
#-------------------------------------------------------------------------
#
@@ -224,7 +224,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
self.apply_filter(orig_person.get_id(),0,firstList,firstMap)
self.apply_filter(other_person.get_id(),0,secondList,secondMap)
except RuntimeError,msg:
return ("Relationship loop detected",None)
return (_("Relationship loop detected"),None)
for person_id in firstList:
if person_id in secondList:
@@ -281,7 +281,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
#-------------------------------------------------------------------------
#
# Register this function with the Plugins system
# Register this class with the Plugins system
#
#-------------------------------------------------------------------------
from Plugins import register_relcalc