Find support

svn: r1423
This commit is contained in:
Don Allingham
2003-04-04 05:48:25 +00:00
parent 6ee5b68393
commit 165efc5848
23 changed files with 899 additions and 1210 deletions

View File

@ -93,6 +93,19 @@ def clear_timer():
gtk.timeout_remove(_autosave_tim)
_autosave_tim = None
#-------------------------------------------------------------------------
#
# force_unicode
#
#-------------------------------------------------------------------------
_t = type(u'')
def force_unicode(n):
if type(n) != _t:
return (unicode(n).lower(),unicode(n))
else:
return (n.lower(),n)
#-------------------------------------------------------------------------
#
# Clears the modified flag. Should be called after data is saved.
@ -120,7 +133,7 @@ def phonebook_name(person):
if person:
return person.getPrimaryName().getName()
else:
return ""
return u''
def family_name(family):
"""Builds a name for the family from the parents names"""
@ -146,7 +159,7 @@ def normal_name(person):
if person:
return person.getPrimaryName().getRegularName()
else:
return ""
return u''
#-------------------------------------------------------------------------
#