Fix signature for MasterView.get_index_url()
per new `mobile` kwarg
This commit is contained in:
parent
1a9a2b2d67
commit
754c086053
|
@ -747,7 +747,7 @@ class MasterView(View):
|
||||||
"""
|
"""
|
||||||
return getattr(cls, 'permission_prefix', cls.get_route_prefix())
|
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.
|
Returns the master view's index URL.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -146,7 +146,7 @@ class MessagesView(MasterView):
|
||||||
return "Sent Messages"
|
return "Sent Messages"
|
||||||
return "Message Inbox"
|
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
|
# not really used, but necessary to make certain other code happy
|
||||||
return self.request.route_url('messages.inbox')
|
return self.request.route_url('messages.inbox')
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ class InboxView(MessagesView):
|
||||||
grid_key = 'messages.inbox'
|
grid_key = 'messages.inbox'
|
||||||
index_title = "Message Inbox"
|
index_title = "Message Inbox"
|
||||||
|
|
||||||
def get_index_url(self):
|
def get_index_url(self, **kwargs):
|
||||||
return self.request.route_url('messages.inbox')
|
return self.request.route_url('messages.inbox')
|
||||||
|
|
||||||
def query(self, session):
|
def query(self, session):
|
||||||
|
@ -456,7 +456,7 @@ class ArchiveView(MessagesView):
|
||||||
grid_key = 'messages.archive'
|
grid_key = 'messages.archive'
|
||||||
index_title = "Message Archive"
|
index_title = "Message Archive"
|
||||||
|
|
||||||
def get_index_url(self):
|
def get_index_url(self, **kwargs):
|
||||||
return self.request.route_url('messages.archive')
|
return self.request.route_url('messages.archive')
|
||||||
|
|
||||||
def query(self, session):
|
def query(self, session):
|
||||||
|
@ -473,7 +473,7 @@ class SentView(MessagesView):
|
||||||
checkboxes = False
|
checkboxes = False
|
||||||
index_title = "Sent Messages"
|
index_title = "Sent Messages"
|
||||||
|
|
||||||
def get_index_url(self):
|
def get_index_url(self, **kwargs):
|
||||||
return self.request.route_url('messages.sent')
|
return self.request.route_url('messages.sent')
|
||||||
|
|
||||||
def query(self, session):
|
def query(self, session):
|
||||||
|
|
Loading…
Reference in a new issue