application

class ApproveUser(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.AdminHandler

post(dataset, email)[source]
class Collection(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get(dataset, ds_version=None)[source]
class CountryList(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

country_list
get()[source]
class DatasetFiles(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.AuthorizedHandler

get(dataset, ds_version=None)[source]
class DatasetUsersCurrent(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.AdminHandler

get(dataset)[source]
class DatasetUsersPending(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.AdminHandler

get(dataset)[source]

Bases: handlers.AuthorizedHandler

post(dataset, ds_version=None)[source]
class GetDataset(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get(dataset, version=None)[source]
class GetSchema(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

Returns the schema.org, and bioschemas.org, annotation for a given url.

This function behaves quite differently from the rest of the application as the structured data testing tool had trouble catching the schema inject when it went through AngularJS. The solution for now has been to make this very general function that “re-parses” the ‘url’ request parameter to figure out what information to return.

get()[source]
class GetUser(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get()[source]
class ListDatasetVersions(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get(dataset)[source]
class ListDatasets(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get()[source]
class LogEvent(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.SafeHandler

post(dataset, event, target)[source]
class QuitHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.UnsafeHandler

get()[source]
class RequestAccess(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.SafeHandler

post(dataset)[source]
class RevokeUser(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.AdminHandler

post(dataset, email)[source]
class SFTPAccess(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.SafeHandler

Creates, or re-enables, sFTP users in the database.

generate_password(size=12)[source]

Generates a password of length ‘size’, comprised of random lowercase and uppercase letters, and numbers.

get()[source]

Returns sFTP credentials for the current user.

post()[source]

Handles generation of new credentials. This function either creates a new set of sftp credentials for a user, or updates the old ones with a new password and expiry date.

Bases: handlers.UnsafeHandler

get(dataset)[source]
class UserDatasetAccess(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs)[source]

Bases: handlers.SafeHandler

get()[source]
build_dataset_structure(dataset_version, user=None, dataset=None)[source]
format_bytes(nbytes)[source]