Package gluon :: Module sqlhtml :: Class SQLTABLE
[hide private]
[frames] | no frames]

Class SQLTABLE

source code

object --+        
         |        
  html.DIV --+    
             |    
    html.TABLE --+
                 |
                SQLTABLE


given a SQLRows object, as returned by a db().select(), generates
and html table with the rows.

optional arguments:
linkto: URL to edit individual records
uplaod: URL to download uploaded files
orderby: Add an orderby link to column headers.
headers: dictionary of headers to headers redefinions
truncate: length at which to truncate text in table cells.
          Defaults to 16 characters.
optional names attributes for passed to the <table> tag

Instance Methods [hide private]
 
__init__(self, sqlrows, linkto=None, upload=None, orderby=None, headers={}, truncate=16, **attributes)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from html.TABLE: fixup

Inherited from html.DIV: __delitem__, __getitem__, __len__, __setitem__, __str__, append, insert, postprocessing, traverse, validate, xml

Inherited from html.DIV (private): _xml

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]

Inherited from html.TABLE: tag

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sqlrows, linkto=None, upload=None, orderby=None, headers={}, truncate=16, **attributes)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: html.DIV.__init__