Module pyhtmloo :: Class Tag
[show private | hide private]
[frames | no frames]

Class Tag

object --+
         |
        Tag

Known Subclasses:
a, b, base, basefont, bdo, big, blockquote, body, br, button, caption, center, cite, code, col, colgroup, dd, del_, dfn, div, dl, dt, em, fieldset, font, form, frameset, h1, h2, h3, h4, h5, h6, head, hr, html, i, iframe, img, input, ins, isindex, kbd, label, legend, li, link, map, meta, object_, ol, optgroup, option, p, param, pre, q, s, samp, script, select, small, span, strike, strong, style, sub, sup, table, tbody, td, textarea, tfoot, th, thead, title, tr, tt, u, ul, var

main pyhtmloo object. _attrs: tag attributes (any html parameters) _params: tag parameters (indent, delimiter, endtag) _tc: tag content
Method Summary
  __init__(self, *llist, **kw)
_params, _tc, _attrs are special initial parameters
  __str__(self)
  add(self, *contents)
add content to the current tag
  getattr(self, name)
to get the value of a specific html attribute
  getparam(self, param)
to get the value of one of the parameter (indent, delimiter, endtag)
  render(self)
  setattr(self, **kw)
to update or add some html attributes to the current tag
  setparam(self, **kw)
to update the tag parameters (indent, delimiter, endtag)
  _print_content(self, obj)
internal function transert all the content of 'TC' into string
  _setglobalvalues(self)
we just verify if we must apply a global parameter (indent or delimiter)
  _use_indent(self, text)
This function will add indentation (indent) to the text file
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

__init__(self, *llist, **kw)
(Constructor)

_params, _tc, _attrs are special initial parameters
Overrides:
__builtin__.object.__init__

add(self, *contents)

add content to the current tag

getattr(self, name)

to get the value of a specific html attribute

getparam(self, param)

to get the value of one of the parameter (indent, delimiter, endtag)

setattr(self, **kw)

to update or add some html attributes to the current tag

setparam(self, **kw)

to update the tag parameters (indent, delimiter, endtag)

_print_content(self, obj)

internal function transert all the content of 'TC' into string

_setglobalvalues(self)

we just verify if we must apply a global parameter (indent or delimiter)

_use_indent(self, text)

This function will add indentation (indent) to the text file

Generated by Epydoc 2.0 on Sat Mar 11 18:47:52 2006 http://epydoc.sf.net