Package s3 :: Module s3forms :: Class S3SQLDummyField
[frames] | no frames]

Class S3SQLDummyField

source code

      object --+    
               |    
S3SQLFormElement --+
                   |
                  S3SQLDummyField

A Dummy Field

A simple DIV which can then be acted upon with JavaScript

Instance Methods
 
resolve(self, resource)
Method to resolve this form element against the calling resource.
source code
 
__call__(self, field, value, **attributes)
Widget renderer for the input field.
source code

Inherited from S3SQLFormElement: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

resolve(self, resource)

source code 

Method to resolve this form element against the calling resource.

@param resource: the resource
@return: a tuple
            (
                subtable alias (or None for main table),
                original field name,
                Field instance for the form renderer
            )

Overrides: S3SQLFormElement.resolve

__call__(self, field, value, **attributes)
(Call operator)

source code 

Widget renderer for the input field. To be implemented in subclass (if required) and to be set as widget=self for the field returned by the resolve()-method of this form element.

Parameters:
  • field - the input field
  • value - the value to populate the widget
  • attributes - attributes for the widget
Returns:
the widget for this form element as HTML helper