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

Class S3SQLVirtualField

source code

      object --+    
               |    
S3SQLFormElement --+
                   |
                  S3SQLVirtualField

A form element to embed values of field methods (virtual fields), always read-only

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 field method values, renders a simple read-only DIV with the value
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 field method values, renders a simple read-only DIV with the value