Package web2py :: Package gluon :: Module template :: Class Content |
[hide private]
[frames] | no frames]

# Class Content

source code

    object --+
             |
          Node --+
                 |
         BlockNode --+
                     |
                    Content

Parent Container -- Used as the root level BlockNode.

Contains functions that operate as such.

Instance Methods | [hide private]
__init__(self, name=`'``ContentBlock``'`, pre_extend=True) Keyword Arguments | source code
__str__(self) Get this BlockNodes content, not including child Nodes | source code
_insert(self, other, index=0) Inserts object at index. | source code
insert(self, other, index=0) Inserts object at index. | source code
append(self, node) Adds a node to list. | source code
extend(self, other) Extends the objects list of nodes with another objects nodes | source code
clear_content(self) | source code
Inherited from `BlockNode`: `__repr__`, `output` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, name=`'``ContentBlock``'`, pre_extend=True) (Constructor) | source code
Keyword Arguments name -- Unique name for this BlockNode Overrides: BlockNode.__init__

### __str__(self) (Informal representation operator) | source code
Get this BlockNodes content, not including child Nodes Overrides: BlockNode.__str__ (inherited documentation)

### insert(self, other, index=0) | source code
Inserts object at index. You may pass a list of objects and have them inserted.

### append(self, node) | source code
Adds a node to list. If it is a BlockNode then we assign a block for it. Overrides: BlockNode.append

### extend(self, other) | source code
Extends the objects list of nodes with another objects nodes Overrides: BlockNode.extend