예제 #1
0
	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",
		)
예제 #2
0
	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.")