rql_download.twistedserver.server.CubicWebSFTPRealm

class rql_download.twistedserver.server.CubicWebSFTPRealm(cw_instance_names, cw_repositories, conf)[source]

A Realm corresponds to an application domain and is in charge of avatars, which are network-accessible business logic objects.

To connect this to an authentication database, a top-level object called a Portal stores a realm, and a number of credential checkers.

Methods

__init__(cw_instance_names, cw_repositories, ...) Initilaize the ‘CubicWebSFTPRealm’ class.
requestAvatar(identity, mind, *interfaces) This method will typically be called from ‘Portal.login’.
__module__ = 'rql_download.twistedserver.server'
requestAvatar(identity, mind, *interfaces)[source]

This method will typically be called from ‘Portal.login’.

The ‘identity’ is the one returned by a CredentialChecker.

Parameters:

identity, mind, interfaces: objects (mandatory) :

see ‘twisted.cred.portal.IRealm.requestAvatar’.

Returns:

out: tuple :

a 3-uplet of the form (interface, avatarAspect, logout).