Package glue :: Module cbcwebpage :: Class _section
[hide private]
[frames] | no frames]

Class _section

source code

markup.page --+
              |
             _section

Instance Methods [hide private]
 
__init__(self, tag, title='', secnum='1', pagenum='1', level=2, open_by_default=False)
Stuff that effects the whole document.
source code
 
add_link(self, **kwargs) source code
 
add_section(self, tag, title='', open_by_default=False) source code
 
add_table(self, two_d_data, title='', caption='', tag='table', num=0) source code
 
add_text(self, **kwargs) source code
 
get_content(self) source code

Inherited from markup.page: __call__, __getattr__, __str__, add, addcontent, addfooter, addheader, css, init, metainfo, scripts

Method Details [hide private]

__init__(self, tag, title='', secnum='1', pagenum='1', level=2, open_by_default=False)
(Constructor)

source code 
Stuff that effects the whole document.

mode -- 'strict_html'   for HTML 4.01 (default)
        'html'          alias for 'strict_html'
        'loose_html'    to allow some deprecated elements
        'xml'           to allow arbitrary elements

case -- 'lower'         element names will be printed in lower case (default)
        'upper'         they will be printed in upper case
        'given'         element names will be printed as they are given

onetags --              list or tuple of valid elements with opening tags only
twotags --              list or tuple of valid elements with both opening and closing tags
                        these two keyword arguments may be used to select
                        the set of valid elements in 'xml' mode
                        invalid elements will raise appropriate exceptions

separator --            string to place between added elements, defaults to newline

class_ --               a class that will be added to every element if defined

Overrides: markup.page.__init__
(inherited documentation)