Package XSLForms :: Package Resources :: Module PyQtWebResources :: Class XSLFormsResource
[show private | hide private]
[frames | no frames]

Class XSLFormsResource

CommonResource --+    
                 |    
PyQtCommonResource --+
                     |
CommonResource --+   |
                 |   |
  XSLFormsResource --+
                     |
                    XSLFormsResource


An XSLForms resource supporting PyQt-compatible Web applications for use
with WebStack.

Method Summary
  __init__(self, design_identifier)
  child(self, name)
  form_init(self)
Initialise a newly-created form.
  form_populate(self)
Populate the values in a form.
  form_refresh(self)
Refresh the form.
  get_document(self, document_identifier)
Return a DOM-style document retrieved using the given 'document_identifier'.
  prepare_output(self, design_identifier)
Prepare the output stylesheets using the given 'design_identifier' to indicate which templates and stylesheets are to be employed in the production of output from the resource.
  prepare_widget(self, design_identifier, widget_identifier, parent)
  request_refresh(self, *args, **kw)
Request a refresh of the form.
  respond_to_form(self, trans, form)
Respond to the request described by the given transaction 'trans', using the given 'form' object to conveniently retrieve field (request parameter) information and structured form information (as DOM-style XML documents).
  sender(self)
    Inherited from XSLFormsResource
  clean_parameters(self, parameters)
Workaround stray zero value characters from Konqueror in XMLHttpRequest communications.
  get_in_page_resource(self, trans)
Return the in-page resource being referred to in the given transaction 'trans'.
  get_result(self, stylesheet_filenames, document, stylesheet_parameters, stylesheet_expressions, references)
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_fragment(self, fragment_identifier)
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_initialiser(self, input_identifier, init_enumerations)
Prepare an initialiser/input transformation using the given 'input_identifier'.
  prepare_parameters(self, parameters)
Prepare the stylesheet parameters from the given request 'parameters'.
  prepare_transform(self, transform_identifier)
Prepare a transformation using the given 'transform_identifier'.
  respond(self, trans)
Respond to the request described by the given transaction 'trans'.
  send_output(self, trans, stylesheet_filenames, document, stylesheet_parameters, stylesheet_expressions, references)
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 PyQtCommonResource
  get_elements(self, document_identifier)
  populate_list(self, field, elements)
Populate the given 'field' using a list of DOM 'elements'.
  prepare_design(self, design_identifier)
  reset_collection(self, field)
Empty the given collection 'field'.
    Inherited from CommonResource
  prepare_document(self, document_identifier)
Prepare a document using the given 'document_identifier'.

Class Variable Summary
dict widget_resources = {}
    Inherited from XSLFormsResource
str encoding = 'utf-8'
dict in_page_resources = {}
dict init_resources = {}
str path_encoding = 'utf-8'
dict template_resources = {}
dict transform_resources = {}
    Inherited from PyQtCommonResource
dict design_resources = {}
    Inherited from CommonResource
dict document_resources = {}
NoneType resource_dir = None                                                                  

Method Details

form_init(self)

Initialise a newly-created form.

form_populate(self)

Populate the values in a form.

form_refresh(self)

Refresh the form.

get_document(self, document_identifier)

Return a DOM-style document retrieved using the given
'document_identifier'.

Each implementation is free to choose its own DOM library.
Overrides:
XSLForms.Resources.PyQtCommon.PyQtCommonResource.get_document (inherited documentation)

prepare_output(self, design_identifier)

Prepare the output stylesheets using the given 'design_identifier' to
indicate which templates and stylesheets are to be employed in the
production of output from the resource.

The 'design_identifier' is used as a key to the 'design_resources' and
'template_resources' dictionary attributes.

Return the full path to the output stylesheet for use with 'send_output'
or 'get_result'.
Overrides:
XSLForms.Resources.WebResources.XSLFormsResource.prepare_output

request_refresh(self, *args, **kw)

Request a refresh of the form.

respond_to_form(self, trans, form)

Respond to the request described by the given transaction 'trans', using
the given 'form' object to conveniently retrieve field (request
parameter) information and structured form information (as DOM-style XML
documents).
Overrides:
XSLForms.Resources.WebResources.XSLFormsResource.respond_to_form

Class Variable Details

widget_resources

Type:
dict
Value:
{}                                                                     

Generated by Epydoc 2.1 on Wed Jan 10 23:02:11 2007 http://epydoc.sf.net