From 195adf8d11d09938f578b78dba94d19d7d296325 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Wed, 21 Jan 2015 15:59:28 +0100 Subject: [PATCH] [gen] ToolMixin::getHomePage: removed unneeded calls to m_goto. --- gen/mixins/ToolMixin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/mixins/ToolMixin.py b/gen/mixins/ToolMixin.py index c254b16..f9475d4 100644 --- a/gen/mixins/ToolMixin.py +++ b/gen/mixins/ToolMixin.py @@ -69,14 +69,14 @@ class ToolMixin(BaseMixin): except AttributeError: pass if not url: - # Bring Managers to the config, lead others to pxHome. + # Bring Managers to the config, lead others to pxHome user = self.getUser() if not user: raise Exception(USER_NOT_FOUND % self.identifyUser()[0]) if user.has_role('Manager'): - url = self.goto(self.absolute_url()) + url = self.absolute_url() else: - url = self.goto('%s/home' % self.absolute_url()) + url = '%s/home' % self.absolute_url() return url def getHomeObject(self, inPopup=False):