Fix signature for MasterView.get_index_url()

per new `mobile` kwarg
This commit is contained in:
Lance Edgar 2017-04-04 17:43:33 -05:00
parent 1a9a2b2d67
commit 754c086053
2 changed files with 5 additions and 5 deletions

View file

@ -747,7 +747,7 @@ class MasterView(View):
"""
return getattr(cls, 'permission_prefix', cls.get_route_prefix())
def get_index_url(self, mobile=False):
def get_index_url(self, mobile=False, **kwargs):
"""
Returns the master view's index URL.
"""

View file

@ -146,7 +146,7 @@ class MessagesView(MasterView):
return "Sent Messages"
return "Message Inbox"
def get_index_url(self):
def get_index_url(self, **kwargs):
# not really used, but necessary to make certain other code happy
return self.request.route_url('messages.inbox')
@ -440,7 +440,7 @@ class InboxView(MessagesView):
grid_key = 'messages.inbox'
index_title = "Message Inbox"
def get_index_url(self):
def get_index_url(self, **kwargs):
return self.request.route_url('messages.inbox')
def query(self, session):
@ -456,7 +456,7 @@ class ArchiveView(MessagesView):
grid_key = 'messages.archive'
index_title = "Message Archive"
def get_index_url(self):
def get_index_url(self, **kwargs):
return self.request.route_url('messages.archive')
def query(self, session):
@ -473,7 +473,7 @@ class SentView(MessagesView):
checkboxes = False
index_title = "Sent Messages"
def get_index_url(self):
def get_index_url(self, **kwargs):
return self.request.route_url('messages.sent')
def query(self, session):