* src/EditSource.py (ReposRefListView): Display repository type as text
svn: r4773
This commit is contained in:
parent
6af02b72af
commit
118e7dd628
@ -1,6 +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
|
||||
* src/EditSource.py (ReposRefListView): Display repository type as text
|
||||
|
||||
2005-06-02 Don Allingham <don@gramps-project.org>
|
||||
* src/DisplayModels.py: Handle EventRefs properly
|
||||
|
@ -140,7 +140,12 @@ class ReposRefListView:
|
||||
o = model.get_value(iter, 0)
|
||||
repos_hdl = o.get_reference_handle()
|
||||
repos = self._db.get_repository_from_handle(repos_hdl)
|
||||
cell.set_property('text', repos.get_type())
|
||||
rtype = repos.get_type()
|
||||
if rtype[0] == RelLib.Event.CUSTOM or rtype[0] not in Utils.repository_types:
|
||||
name = rtype[1]
|
||||
else:
|
||||
name = Utils.repository_types[rtype[0]]
|
||||
cell.set_property('text', name)
|
||||
|
||||
def object_note(self, column, cell, model, iter, user_data=None):
|
||||
o = model.get_value(iter, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user