* src/DisplayModels.py (RepositoryModel): Display repository type as text
* src/RelLib.py (Repository): Serialize type as tuple not unicode svn: r4767
This commit is contained in:
parent
aa942771ea
commit
6af02b72af
@ -1,3 +1,7 @@
|
||||
2005-06-03 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||
* src/DisplayModels.py (RepositoryModel): Display repository type as text
|
||||
* src/RelLib.py (Repository): Serialize type as tuple not unicode
|
||||
|
||||
2005-06-02 Don Allingham <don@gramps-project.org>
|
||||
* src/DisplayModels.py: Handle EventRefs properly
|
||||
* src/FamilyView.py: handle relationship types
|
||||
|
@ -43,6 +43,8 @@ import gtk
|
||||
#-------------------------------------------------------------------------
|
||||
import NameDisplay
|
||||
import DateHandler
|
||||
import RelLib
|
||||
import Utils
|
||||
|
||||
_GENDER = [ _(u'female'), _(u'male'), _(u'unknown') ]
|
||||
|
||||
@ -541,7 +543,12 @@ class RepositoryModel(BaseModel):
|
||||
return unicode(data[1])
|
||||
|
||||
def column_type(self,data):
|
||||
return unicode(data[2])
|
||||
rtype = data[2]
|
||||
if rtype[0] == RelLib.Event.CUSTOM or rtype[0] not in Utils.repository_types:
|
||||
name = rtype[1]
|
||||
else:
|
||||
name = Utils.repository_types[rtype[0]]
|
||||
return unicode(name)
|
||||
|
||||
def column_name(self,data):
|
||||
return unicode(data[3])
|
||||
@ -597,4 +604,3 @@ class RepositoryModel(BaseModel):
|
||||
|
||||
def column_home_url(self,data):
|
||||
return unicode(data[7])
|
||||
|
||||
|
@ -4410,13 +4410,13 @@ class Repository(PrimaryObject,NoteBase):
|
||||
self.type = (Repository.LIBRARY,"")
|
||||
self.name = ""
|
||||
self.address = Location()
|
||||
self.email = ""
|
||||
self.search_url = ""
|
||||
self.home_url = ""
|
||||
self.email = ""
|
||||
self.search_url = ""
|
||||
self.home_url = ""
|
||||
self.note = Note()
|
||||
|
||||
def serialize(self):
|
||||
return (self.handle, self.gramps_id, unicode(self.type),
|
||||
return (self.handle, self.gramps_id, self.type,
|
||||
unicode(self.name), self.address,
|
||||
unicode(self.email),
|
||||
unicode(self.search_url), unicode(self.home_url),
|
||||
|
Loading…
Reference in New Issue
Block a user