* src/EditSource.py (ReposRefListView): Display repository type as text
svn: r4773
This commit is contained in:
parent
dce8f86240
commit
e523edce30
@ -1,6 +1,7 @@
|
|||||||
2005-06-03 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2005-06-03 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/DisplayModels.py (RepositoryModel): Display repository type as text
|
* src/DisplayModels.py (RepositoryModel): Display repository type as text
|
||||||
* src/RelLib.py (Repository): Serialize type as tuple not unicode
|
* 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>
|
2005-06-02 Don Allingham <don@gramps-project.org>
|
||||||
* src/DisplayModels.py: Handle EventRefs properly
|
* src/DisplayModels.py: Handle EventRefs properly
|
||||||
|
@ -140,7 +140,12 @@ class ReposRefListView:
|
|||||||
o = model.get_value(iter, 0)
|
o = model.get_value(iter, 0)
|
||||||
repos_hdl = o.get_reference_handle()
|
repos_hdl = o.get_reference_handle()
|
||||||
repos = self._db.get_repository_from_handle(repos_hdl)
|
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):
|
def object_note(self, column, cell, model, iter, user_data=None):
|
||||||
o = model.get_value(iter, 0)
|
o = model.get_value(iter, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user