From f1ce4b834a9b7ff968b981193ac20468474d12a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 21 Sep 2016 13:54:52 -0500 Subject: [PATCH] Enabled view profile option in the menu for items in people buffers --- src/controller/buffers.py | 3 ++- src/wxUI/menus.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index 72b2077..fb6a45e 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -232,7 +232,7 @@ class baseBuffer(object): def open_person_profile(self, *args, **kwargs): selected = self.get_post() print selected.keys() - keys = ["from_id", "source_id"] + keys = ["from_id", "source_id", "id"] for i in keys: if selected.has_key(i): pub.sendMessage("user-profile", person=selected[i]) @@ -650,6 +650,7 @@ class peopleBuffer(feedBuffer): m = menus.peopleMenu() widgetUtils.connect_event(m, widgetUtils.MENU, self.new_chat, menuitem=m.message) widgetUtils.connect_event(m, widgetUtils.MENU, self.open_timeline, menuitem=m.timeline) + widgetUtils.connect_event(m, widgetUtils.MENU, self.open_person_profile, menuitem=m.view_profile) return m def open_post(self, *args, **kwargs): pass diff --git a/src/wxUI/menus.py b/src/wxUI/menus.py index 5505c06..11edf09 100644 --- a/src/wxUI/menus.py +++ b/src/wxUI/menus.py @@ -47,7 +47,6 @@ class peopleMenu(wx.Menu): self.AppendItem(self.message) self.timeline = wx.MenuItem(self, wx.NewId(), _(u"Open timeline")) self.AppendItem(self.timeline) - self.view_profile.Enable(False) class commentMenu(wx.Menu): def __init__(self, *args, **kwargs):