Package gluon :: Module html :: Class DIV
[hide private]
[frames] | no frames]

Class DIV

source code

object --+
         |
        DIV
Known Subclasses:

example:

>>> DIV('hello','world',_style='color:red;').xml() 
'<div style="color:red;">helloworld</div>'

all other HTML helpers are derived from DIV. _something="value" attributes are transparently translated into something="value" HTML attributes

Instance Methods [hide private]
 
__init__(self, *components, **attributes)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
postprocessing(self) source code
 
rec_clear(self, clear_attributes_value=False) source code
 
accepts(self, vars, session=None, formname='default', keepvalues=False) source code
 
rec_accepts(self, vars) source code
 
_xml(self) source code
 
xml(self) source code
 
__str__(self)
str(x)
source code

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

Class Variables [hide private]
  tag = 'div'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *components, **attributes)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)