Trees | Index | Help |
---|
Package XSLForms :: Package Resources :: Module Login :: Class LoginResource |
|
CommonResource
--+ |XSLFormsResource
--+ | LoginResource
A login screen resource which should be modified or subclassed to define the following attributes: * resource_dir * template_resources - including a "login" entry for the login screen and a "success" entry for a screen indicating a successful login (used when redirects are not in use) * document_resources - including a "translations" entry The latter attribute is optional. The login template must define a "login" action, and provide a document structure where the login credentials can be found through this class's 'path_to_login_element' attribute (which can be overridden or modified). Such a structure would be as follows for the default configuration: <login username="..." password="..."/> The success template must provide a document structure where the location of the application can be found through this class's 'path_to_success_element' attribute (which can be overridden or modified). Such a structure would be as follows for the default configuration: <success location="..."/>
Method Summary | |
---|---|
Initialise the resource with an 'authenticator'. | |
Respond to a request having the given transaction 'trans' and the given 'form' information. | |
Inherited from XSLFormsResource | |
Workaround stray zero value characters from Konqueror in XMLHttpRequest communications. | |
Return the in-page resource being referred to in the given transaction 'trans'. | |
Get the result of applying a transformation using stylesheets with the given 'stylesheet_filenames', the 'document' upon which the result will be based, the optional parameters as defined in the 'stylesheet_parameters' dictionary, the optional parameters as defined in the 'stylesheet_parameters' dictionary and the optional 'references' to external documents. | |
Prepare the output stylesheets for the given 'fragment_identifier', indicating which templates and stylesheets are to be employed in the production of output from the resource. | |
Prepare an initialiser/input transformation using the given 'input_identifier'. | |
Prepare the output stylesheets using the given 'output_identifier' to indicate which templates and stylesheets are to be employed in the production of output from the resource. | |
Prepare the stylesheet parameters from the given request 'parameters'. | |
Prepare a transformation using the given 'transform_identifier'. | |
Respond to the request described by the given transaction 'trans'. | |
Send the output from the resource to the user employing the transaction 'trans', stylesheets having the given 'stylesheet_filenames', the 'document' upon which the output will be based, the optional parameters as defined in the 'stylesheet_parameters' dictionary, the optional expressions are defined in the 'stylesheet_expressions' dictionary, and the optional 'references' to external documents. | |
Inherited from CommonResource | |
Prepare a document using the given 'document_identifier'. |
Class Variable Summary | |
---|---|
str |
path_to_login_element = '/login'
|
str |
path_to_success_element = '/success'
|
Inherited from XSLFormsResource | |
dict |
in_page_resources = {}
|
dict |
init_resources = {}
|
dict |
template_resources = {}
|
dict |
transform_resources = {}
|
Inherited from CommonResource | |
dict |
document_resources = {}
|
NoneType |
resource_dir = None |
Method Details |
---|
__init__(self,
authenticator,
use_redirect=1)
|
respond_to_form(self, trans, form)Respond to a request having the given transaction 'trans' and the given 'form' information. |
Class Variable Details |
---|
path_to_login_element
|
path_to_success_element
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Sep 18 23:43:25 2007 | http://epydoc.sf.net |