Package s3 :: Module s3fields :: Class S3RepresentLazy
[frames] | no frames]

Class S3RepresentLazy

source code

object --+
         |
        S3RepresentLazy

Lazy Representation of a field value, utilizes the bulk-feature of S3Represent-style representation methods

Instance Methods
 
__init__(self, value, renderer)
Constructor
source code
 
__repr__(self)
repr(x)
source code
 
represent(self)
Represent as string
source code
 
render(self)
Render as HTML
source code
 
render_node(self, element, attributes, name)
Render as text or attribute of an XML element
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, value, renderer)
(Constructor)

source code 

Constructor

Parameters:
  • value - the value
  • renderer - the renderer (S3Represent instance)
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

represent(self)

source code 

Represent as string

render(self)

source code 

Render as HTML

render_node(self, element, attributes, name)

source code 

Render as text or attribute of an XML element

Parameters:
  • element - the element
  • attributes - the attributes dict of the element
  • name - the attribute name