remove browsableitem

it was only used by the choose service page, and then only in kludgy
ways (eg: creating a list containing one item called "add service"),
so lets rip it out and make this page bespoke. Especially now that it's
changed so much.
This commit is contained in:
Leo Hemsted
2018-03-08 14:15:01 +00:00
parent c651ca3f36
commit 1cd8000236
5 changed files with 28 additions and 85 deletions

View File

@@ -33,32 +33,6 @@ FAILURE_STATUSES = ['failed', 'temporary-failure', 'permanent-failure', 'technic
REQUESTED_STATUSES = SENDING_STATUSES + DELIVERED_STATUSES + FAILURE_STATUSES
class BrowsableItem:
"""
Maps for the template browse-list.
"""
def __init__(self, item, *args, **kwargs):
print(self, item)
self._item = item
@property
def title(self):
pass
@property
def link(self):
pass
@property
def hint(self):
pass
@property
def destructive(self):
pass
def user_has_permissions(*permissions, **permission_kwargs):
def wrap(func):
@wraps(func)