def __init__ (self): ToolController.__init__ (self, identifier='loadseqs', description="""Perform a bulk upload of biosequences from a single file to the repository. A collection can be formed from the contents.""", title="Load biosequences", )
def render (self, request, *args, **kwargs): if (request.user.is_staff): return ToolController.render (self, request, *args, **kwargs) else: return HttpResponse("Only admins have access to this tool.")