Package s3 :: Module s3data :: Class S3DataListLayout
[frames] | no frames]

Class S3DataListLayout

source code

object --+
         |
        S3DataListLayout

DataList default layout

Instance Methods
 
__init__(self, profile=None)
Constructor
source code
 
__call__(self, list_id, item_id, resource, rfields, record)
Wrapper for render_item.
source code
 
render_header(self, list_id, item_id, resource, rfields, record) source code
 
render_body(self, list_id, item_id, resource, rfields, record)
Render the card body
source code
 
render_icon(self, list_id, resource) source code
 
render_toolbox(self, list_id, resource, record) source code
 
render_column(self, item_id, rfield, record)
Render a data column.
source code

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

Class Variables
  item_class = "thumbnail"
Properties

Inherited from object: __class__

Method Details

__init__(self, profile=None)
(Constructor)

source code 

Constructor

Parameters:
  • profile - table name of the master resource of the profile page (if used for a profile), can be used in popup URLs to indicate the master resource
Overrides: object.__init__

__call__(self, list_id, item_id, resource, rfields, record)
(Call operator)

source code 

Wrapper for render_item.

Parameters:
  • list_id - the HTML ID of the list
  • item_id - the HTML ID of the item
  • resource - the S3Resource to render
  • rfields - the S3ResourceFields to render
  • record - the record as dict

render_header(self, list_id, item_id, resource, rfields, record)

source code 
Parameters:
  • list_id - the HTML ID of the list
  • item_id - the HTML ID of the item
  • resource - the S3Resource to render
  • rfields - the S3ResourceFields to render
  • record - the record as dict

To Do: Render the card header

render_body(self, list_id, item_id, resource, rfields, record)

source code 

Render the card body

Parameters:
  • list_id - the HTML ID of the list
  • item_id - the HTML ID of the item
  • resource - the S3Resource to render
  • rfields - the S3ResourceFields to render
  • record - the record as dict

render_icon(self, list_id, resource)

source code 
Parameters:
  • list_id - the HTML ID of the list
  • resource - the S3Resource to render

To Do: Render a body icon

render_toolbox(self, list_id, resource, record)

source code 
Parameters:
  • list_id - the HTML ID of the list
  • resource - the S3Resource to render
  • record - the record as dict

To Do: Render the toolbox

render_column(self, item_id, rfield, record)

source code 

Render a data column.

Parameters:
  • item_id - the HTML element ID of the item
  • rfield - the S3ResourceField for the column
  • record - the record (from S3Resource.select)

Class Variable Details

item_class

Value:
"thumbnail"