From e523edce30fa3167bcde22d7217e814665f3976b Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Fri, 3 Jun 2005 14:18:06 +0000 Subject: [PATCH] * src/EditSource.py (ReposRefListView): Display repository type as text svn: r4773 --- ChangeLog | 1 + src/EditSource.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a3d16897..405332463 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2005-06-03 Martin Hawlisch * 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 * src/DisplayModels.py: Handle EventRefs properly diff --git a/src/EditSource.py b/src/EditSource.py index 83926e736..15e6eebb4 100644 --- a/src/EditSource.py +++ b/src/EditSource.py @@ -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)