From: Rob Crittenden Date: Wed, 29 Apr 2015 18:13:25 +0000 (-0400) Subject: Fix lint issues with loginstack changes X-Git-Tag: v1.0.0~32 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=f54958e7101614a64d2dceb18b46d68a88130506 Fix lint issues with loginstack changes Signed-off-by: Rob Crittenden Reviewed-by: Simo Sorce --- diff --git a/ipsilon/admin/loginstack.py b/ipsilon/admin/loginstack.py index 1faa089..5fdda96 100644 --- a/ipsilon/admin/loginstack.py +++ b/ipsilon/admin/loginstack.py @@ -33,15 +33,6 @@ class LoginStack(AdminPlugins): self.children.remove(self.__dict__[name]) del self.__dict__[name] - def get_children_urls(self): - urls = dict() - for item in self.children: - name = getattr(item, 'name', None) - if name: - urls['%s_url' % name] = cherrypy.url('/%s/%s' % (self.mount, - name)) - return urls - def root_with_msg(self, message=None, message_type=None, changed=None): # Force the url to be that of the Login Stack kwargs = {'title': self.title, @@ -51,6 +42,7 @@ class LoginStack(AdminPlugins): 'newurl': self.url, 'sections': list()} for child in self.children: + # pylint: disable=protected-access plugins = child._site[child.facility] if changed is None: