Module Expr Str Import alias Import alias Import alias ImportFrom alias alias alias alias TryExcept body Import alias identifier handlers ExceptHandler body ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Return IfExp Call NameLoad NameLoad NameLoad IfExp CompareIn AttributeLoad NameLoad attr NameLoad Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad TupleLoad Str Str body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Call NameLoad Str Str Dict TupleLoad Str Str ListLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call NameLoad BinOpMod Str NameLoad NameLoad orelse If Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Str body If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr body Assign NameStore TupleLoad Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num Call NameLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num Assign AttributeStore NameLoad attr Call NameLoad BinOpMod Str NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Continue If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpMult Str BinOpMult Num NameLoad NameLoad Assign NameStore Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body AugAssignSub NameStore Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Num AugAssignSub NameStore Num If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad Str attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Raise Call NameLoad AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return Str Assign NameStore BoolOpOr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword BinOpAdd Str NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Continue If Call NameLoad NameLoad NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Continue Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num If NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num UnaryOpUSub Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If UnaryOpNot NameLoad body Continue FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Str decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore TupleLoad Str Call AttributeLoad SubscriptLoad NameLoad Slice Num attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Str orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr Str body If NameLoad body Assign NameStore NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr Str body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call NameLoad keyword BinOpAdd Str AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore NameLoad orelse If BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr AugAssignAdd NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Slice Num attr orelse Assign SubscriptStore NameLoad Index NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Slice Num attr orelse If NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad Str Assign NameStore NameLoad Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign NameStore UnaryOpNot NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Call NameLoad Dict TupleLoad Str Str body Expr Str If Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad Str Str orelse Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad orelse If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad Dict Dict TupleLoad Str Str Str body Expr Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign AttributeStore SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad If UnaryOpNot NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad TryExcept body Exec NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A 
This file is part of the web2py Web Framework (Copyrighted, 2007-2011).
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

Author: Thadeus Burgess

Contributors:

- Thank you to Massimo Di Pierro for creating the original gluon/template.py
- Thank you to Jonathan Lundell for extensively testing the regex on Jython.
- Thank you to Limodou (creater of uliweb) who inspired the block-element support for web2py.
 N/A os N/A cgi N/A logging re compile sub escape DOTALL N/A N/A N/A cStringIO StringIO N/A N/A N/A io StringIO N/A N/A gluon.restricted RestrictedError gluon.globals current N/A N/A N/A ImportError N/A N/A current None RestrictedError N/A N/A a b c N/A N/A N/A N/A N/A logging error N/A N/A N/A N/A N/A str a : N/A str b : N/A str c N/A RuntimeError N/A Node N/A object N/A N/A 
    Basic Container Object
     __init__ N/A N/A self value pre_extend N/A None False N/A N/A N/A self value value N/A N/A self pre_extend pre_extend N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self value N/A N/A SuperNode N/A Node N/A __init__ N/A N/A self name pre_extend N/A False N/A N/A N/A self name name N/A N/A self value None N/A N/A self pre_extend pre_extend N/A __str__ N/A N/A self N/A N/A N/A N/A self value N/A N/A N/A str N/A self value N/A N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A %s->%s N/A N/A self name N/A self value N/A N/A output_aux N/A N/A node blocks N/A N/A N/A N/A N/A isinstance node BlockNode N/A N/A N/A node name blocks N/A N/A N/A blocks N/A N/A node name output blocks N/A N/A node output blocks N/A str node N/A BlockNode N/A Node N/A N/A 
    Block Container.

    This Node can contain other Nodes and will render in a hierarchical order
    of when nodes were added.

    ie::

        {{ block test }}
            This is default block test
        {{ end }}
     __init__ N/A N/A self name pre_extend delimiters N/A False N/A {{ }} N/A N/A 
        name - Name of this Node.
         N/A N/A self nodes N/A N/A N/A self name name N/A N/A self pre_extend pre_extend N/A N/A N/A self left N/A self right delimiters N/A __repr__ N/A N/A self N/A N/A N/A lines N/A N/A %sblock %s%s N/A N/A self left N/A self name N/A self right N/A lines N/A N/A str node N/A node N/A self nodes N/A N/A N/A lines append N/A %send%s N/A N/A self left N/A self right N/A N/A N/A join lines N/A __str__ N/A N/A self N/A N/A N/A 
        Get this BlockNodes content, not including child Nodes
         N/A N/A N/A join N/A N/A str node N/A node N/A self nodes N/A N/A isinstance node BlockNode N/A append N/A N/A self node N/A N/A N/A 
        Add an element to the nodes.

        Keyword Arguments

        - node -- Node object or string to append.
         N/A N/A N/A isinstance node str N/A isinstance node Node N/A N/A N/A N/A N/A self nodes append node N/A N/A N/A TypeError N/A Invalid type; must be instance of ``str`` or ``BlockNode``. %s node N/A extend N/A N/A self other N/A N/A N/A 
        Extend the list of nodes with another BlockNode class.

        Keyword Arguments

        - other -- BlockNode or Content object to extend from.
         N/A N/A isinstance other BlockNode N/A N/A N/A N/A N/A self nodes extend N/A other nodes N/A N/A N/A TypeError N/A Invalid type; must be instance of ``BlockNode``. %s other N/A output N/A N/A self blocks N/A N/A N/A 
        Merges all nodes into a single string.
        blocks -- Dictionary of blocks that are extending
        from this template.
         N/A N/A N/A join N/A N/A output_aux node blocks N/A node N/A self nodes N/A N/A Content N/A BlockNode N/A N/A 
    Parent Container -- Used as the root level BlockNode.

    Contains functions that operate as such.
     __init__ N/A N/A self name pre_extend N/A ContentBlock False N/A N/A 
        Keyword Arguments

        name -- Unique name for this BlockNode
         N/A N/A self name name N/A N/A self nodes N/A N/A N/A self blocks N/A N/A N/A self pre_extend pre_extend N/A __str__ N/A N/A self N/A N/A N/A N/A N/A join N/A N/A output_aux node N/A self blocks N/A node N/A self nodes N/A _insert N/A N/A self other index N/A 0 N/A N/A 
        Inserts object at index.
         N/A N/A isinstance other N/A str Node N/A N/A N/A N/A N/A self nodes insert index other N/A N/A N/A TypeError Invalid type, must be instance of ``str`` or ``Node``. N/A insert N/A N/A self other index N/A 0 N/A N/A 
        Inserts object at index.

        You may pass a list of objects and have them inserted.
         N/A N/A isinstance other N/A list tuple N/A N/A N/A N/A other reverse N/A item other N/A N/A N/A N/A self _insert item index N/A N/A N/A N/A self _insert other index N/A append N/A N/A self node N/A N/A N/A 
        Adds a node to list. If it is a BlockNode then we assign a block for it.
         N/A N/A isinstance node N/A str Node N/A N/A N/A N/A N/A self nodes append node N/A N/A isinstance node BlockNode N/A N/A N/A N/A self blocks N/A N/A node name node N/A N/A N/A TypeError N/A Invalid type, must be instance of ``str`` or ``BlockNode``. %s node N/A extend N/A N/A self other N/A N/A N/A 
        Extends the objects list of nodes with another objects nodes
         N/A N/A isinstance other BlockNode N/A N/A N/A N/A N/A self nodes extend N/A other nodes N/A N/A N/A N/A self blocks update N/A other blocks N/A N/A N/A TypeError N/A Invalid type; must be instance of ``BlockNode``. %s other N/A clear_content N/A N/A self N/A N/A N/A N/A self nodes N/A N/A N/A TemplateParser N/A object N/A N/A default_delimiters N/A {{ }} N/A r_tag N/A compile (\{\{.*?\}\}) DOTALL N/A r_multiline N/A compile (""".*?""")|(\'\'\'.*?\'\'\') DOTALL N/A re_block N/A compile ^(elif |else:|except:|except |finally:).*$ DOTALL N/A re_unblock N/A compile ^(return|continue|break|raise)( .*)?$ DOTALL N/A re_pass N/A compile ^pass( .*)?$ DOTALL __init__ N/A N/A self text name context path writer lexers delimiters _super_nodes N/A ParserContainer N/A dict views/ response.write N/A N/A {{ }} N/A N/A N/A 
        text -- text to parse
        context -- context to parse in
        path -- folder path to templates
        writer -- string of writer class to use
        lexers -- dict of custom lexers to use.
        delimiters -- for example ('{{','}}')
        _super_nodes -- a list of nodes to check for inclusion
                        this should only be set by "self.extend"
                        It contains a list of SuperNodes from a child
                        template that need to be handled.
         N/A N/A self name name N/A N/A self text text N/A N/A self writer writer N/A N/A isinstance lexers dict N/A N/A N/A self lexers lexers N/A N/A N/A self lexers N/A N/A N/A self path path N/A N/A self context context N/A N/A self delimiters delimiters N/A N/A delimiters N/A self default_delimiters N/A N/A escaped_delimiters N/A N/A escape N/A delimiters N/A 0 N/A escape N/A delimiters N/A 1 N/A N/A self r_tag N/A compile N/A (%s.*?%s) escaped_delimiters DOTALL N/A N/A N/A hasattr N/A N/A context get response None delimiters N/A N/A N/A N/A N/A context N/A response delimiters N/A self default_delimiters N/A N/A escaped_delimiters N/A N/A escape N/A N/A N/A context N/A response delimiters N/A 0 N/A escape N/A N/A N/A context N/A response delimiters N/A 1 N/A N/A self r_tag N/A compile N/A (%s.*?%s) escaped_delimiters DOTALL N/A N/A self content N/A Content name name N/A N/A self stack N/A N/A self content N/A N/A self super_nodes N/A N/A N/A self child_super_nodes _super_nodes N/A N/A self blocks N/A N/A N/A N/A self parse text N/A to_string N/A N/A self N/A N/A N/A 
        Return the parsed template with correct indentation.

        Used to make it easier to port to python3.
         N/A N/A N/A self reindent N/A str N/A self content N/A __str__ N/A N/A self N/A N/A N/A Make sure str works exactly the same as python 3 N/A N/A N/A self to_string N/A __unicode__ N/A N/A self N/A N/A N/A Make sure str works exactly the same as python 3 N/A N/A N/A self to_string N/A reindent N/A N/A self text N/A N/A N/A 
        Reindents a string of unindented python code.
         N/A lines N/A N/A text split N/A new_lines N/A N/A credit 0 N/A k 0 N/A raw_line lines N/A N/A line N/A N/A raw_line strip N/A N/A line N/A N/A N/A N/A N/A N/A TemplateParser re_block match line N/A N/A k N/A N/A k credit 1 N/A k N/A max k 0 N/A N/A N/A new_lines append N/A N/A N/A 4 k line N/A credit 0 N/A N/A N/A N/A TemplateParser re_pass match line N/A N/A k 1 N/A N/A N/A N/A TemplateParser re_unblock match line N/A N/A credit 1 N/A k 1 N/A N/A N/A N/A line endswith : N/A N/A N/A line startswith # N/A N/A k 1 N/A new_text N/A N/A join new_lines N/A N/A k 0 N/A N/A N/A N/A self _raise_error missing "pass" in view new_text N/A N/A N/A k 0 N/A N/A N/A N/A self _raise_error too many "pass" in view new_text N/A new_text N/A _raise_error N/A N/A self message text N/A None N/A N/A 
        Raise an error using itself as the filename and textual content.
         N/A N/A RestrictedError N/A self name N/A text N/A self text message N/A _get_file_text N/A N/A self filename N/A N/A N/A 
        Attempt to open ``filename`` and retrieve its text.

        This will use self.path to search for the file.
         N/A N/A N/A N/A filename strip N/A N/A N/A N/A self _raise_error Invalid template filename N/A context N/A self context N/A N/A current N/A N/A response context N/A N/A N/A context N/A response N/A getattr current response None N/A filename N/A eval filename context N/A N/A filename N/A N/A N/A filepath N/A N/A N/A self path N/A N/A N/A os path join N/A self path filename filename N/A N/A N/A fileobj N/A open filepath rb N/A text N/A N/A fileobj read N/A N/A N/A fileobj close N/A N/A N/A IOError N/A N/A N/A N/A self _raise_error N/A Unable to open included view file:  filepath N/A text N/A include N/A N/A self content filename N/A N/A N/A 
        Include ``filename`` here.
         N/A text N/A N/A self _get_file_text filename N/A t N/A TemplateParser text name filename context N/A self context path N/A self path writer N/A self writer delimiters N/A self delimiters N/A N/A N/A content append N/A t content N/A extend N/A N/A self filename N/A N/A N/A 
        Extend ``filename``. Anything not declared in a block defined by the
        parent will be placed in the parent templates ``{{include}}`` block.
         N/A text N/A N/A N/A self _get_file_text filename N/A %sinclude%s N/A tuple N/A self delimiters N/A super_nodes N/A N/A N/A N/A super_nodes extend N/A self child_super_nodes N/A N/A N/A super_nodes extend N/A self super_nodes N/A t N/A TemplateParser text name filename context N/A self context path N/A self path writer N/A self writer delimiters N/A self delimiters _super_nodes super_nodes N/A buf N/A BlockNode name N/A __include__ filename delimiters N/A self delimiters N/A pre N/A N/A node N/A N/A self content nodes N/A N/A N/A isinstance node BlockNode N/A N/A N/A N/A node name N/A N/A t content blocks N/A N/A N/A N/A isinstance node Node N/A N/A N/A node pre_extend N/A N/A N/A N/A pre append node N/A N/A N/A N/A buf append node N/A N/A N/A N/A buf append node N/A N/A N/A self content nodes N/A N/A t_content N/A t content N/A N/A N/A t_content blocks N/A N/A __include__ filename buf N/A N/A N/A t_content insert pre N/A N/A N/A t_content extend N/A self content N/A N/A self content t_content N/A parse N/A N/A self text N/A N/A N/A in_tag False N/A extend None N/A pre_extend True N/A ij N/A N/A N/A self r_tag split text N/A stack N/A self stack N/A j N/A range N/A len ij N/A N/A i N/A ij N/A j N/A i N/A N/A N/A stack N/A N/A N/A N/A self _raise_error The "end" tag is unmatched, please check if you have a starting "block" tag N/A top N/A stack N/A -1 N/A in_tag N/A N/A line i N/A line N/A N/A N/A line N/A N/A len N/A N/A self delimiters N/A 0 N/A N/A len N/A N/A self delimiters N/A 1 strip N/A N/A line N/A N/A remove_newline N/A N/A re_val N/A N/A N/A N/A N/A N/A N/A re_val group 0 replace \n N/A N/A line N/A sub N/A TemplateParser r_multiline remove_newline line N/A N/A N/A line startswith = N/A N/A N/A name value N/A = N/A N/A N/A line N/A 1 strip N/A N/A v N/A N/A line split 1 N/A N/A N/A len v 1 N/A N/A name N/A v N/A 0 N/A value N/A N/A name N/A v N/A 0 N/A value N/A v N/A 1 N/A N/A name N/A self lexers N/A N/A N/A N/A N/A self lexers N/A name parser self value value top top stack stack N/A N/A N/A name = N/A N/A buf N/A 
%s(%s) N/A N/A self writer value N/A N/A N/A top append N/A Node buf pre_extend pre_extend N/A N/A N/A N/A name block N/A N/A N/A value startswith = N/A N/A node N/A BlockNode name N/A N/A value strip pre_extend pre_extend delimiters N/A self delimiters N/A N/A N/A top append node N/A N/A N/A stack append node N/A N/A N/A N/A name end N/A N/A N/A value startswith = N/A N/A N/A N/A self blocks N/A N/A top name top N/A N/A N/A stack pop N/A N/A N/A N/A name super N/A N/A N/A value startswith = N/A N/A value N/A N/A target_node value N/A N/A target_node N/A top name N/A node N/A SuperNode name target_node pre_extend pre_extend N/A N/A N/A N/A self super_nodes append node N/A N/A N/A top append node N/A N/A N/A N/A name include N/A N/A N/A value startswith = N/A N/A value N/A N/A N/A N/A self include top value N/A N/A include_node N/A BlockNode name N/A __include__ N/A self name pre_extend pre_extend delimiters N/A self delimiters N/A N/A N/A top append include_node N/A N/A N/A N/A name extend N/A N/A N/A value startswith = N/A N/A extend value N/A pre_extend False N/A N/A N/A line in_tag N/A N/A tokens N/A N/A line split N/A continuation False N/A len_parsed 0 N/A N/A k token N/A enumerate tokens N/A N/A token N/A tokens N/A k N/A N/A token strip N/A len_parsed N/A len token N/A N/A N/A token startswith = N/A N/A N/A N/A token endswith \ N/A N/A continuation True N/A N/A tokens N/A k N/A 
%s(%s N/A N/A self writer N/A N/A N/A token N/A 1 strip N/A N/A N/A tokens N/A k N/A 
%s(%s) N/A N/A self writer N/A N/A N/A token N/A 1 strip N/A N/A continuation N/A N/A N/A tokens N/A k ) N/A continuation False N/A buf N/A 
%s N/A N/A join tokens N/A N/A N/A top append N/A Node buf pre_extend pre_extend N/A N/A buf N/A 
%s(%r, escape=False) N/A N/A self writer i N/A N/A N/A top append N/A Node buf pre_extend pre_extend N/A in_tag N/A in_tag N/A to_rm N/A N/A node N/A self child_super_nodes N/A N/A N/A N/A node name N/A self blocks N/A N/A N/A node value N/A N/A self blocks N/A N/A node name N/A N/A N/A to_rm append node N/A node to_rm N/A N/A N/A N/A N/A self child_super_nodes remove node N/A extend N/A N/A N/A N/A self extend extend N/A N/A parse_template N/A N/A filename path context lexers delimiters N/A views/ N/A dict N/A N/A {{ }} N/A N/A 
    filename can be a view filename in the views folder or an input stream
    path is the path of a views folder
    context is a dictionary of symbols used to render the template
     N/A N/A isinstance filename str N/A N/A N/A N/A fp N/A open N/A N/A N/A os path join path filename rb N/A text N/A N/A fp read N/A N/A N/A fp close N/A N/A N/A IOError N/A N/A N/A RestrictedError filename Unable to find the file N/A N/A text N/A N/A filename read N/A N/A str N/A TemplateParser text context context path path lexers lexers delimiters delimiters N/A get_parsed N/A N/A text N/A N/A N/A 
    Returns the indented python code of text. Useful for unit testing.

     N/A N/A str N/A TemplateParser text N/A DummyResponse N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self body N/A N/A StringIO StringIO N/A write N/A N/A self data escape N/A True N/A N/A N/A escape N/A N/A N/A N/A N/A self body write N/A str data N/A N/A N/A N/A hasattr data xml N/A callable N/A data xml N/A N/A N/A N/A N/A self body write N/A N/A data xml N/A N/A N/A N/A isinstance data N/A str unicode N/A N/A data N/A str data N/A N/A N/A isinstance data unicode N/A N/A data N/A N/A data encode utf8 xmlcharrefreplace N/A data N/A N/A N/A N/A cgi escape data True replace ' &#x27; N/A N/A N/A N/A self body write data N/A N/A NOESCAPE N/A N/A N/A 
    A little helper to avoid escaping.
     __init__ N/A N/A self text N/A N/A N/A N/A self text text N/A xml N/A N/A self N/A N/A N/A N/A self text N/A N/A render N/A N/A content stream filename path context lexers delimiters writer N/A hello world None None None N/A N/A N/A {{ }} response.write N/A N/A 
    >>> render()
    'hello world'
    >>> render(content='abc')
    'abc'
    >>> render(content='abc'')
    "abc'"
    >>> render(content='a"'bc')
    'a"\'bc'
    >>> render(content='a\nbc')
    'a\nbc'
    >>> render(content='a"bcd"e')
    'a"bcd"e'
    >>> render(content="'''a\nc'''")
    "'''a\nc'''"
    >>> render(content="'''a\'c'''")
    "'''a'c'''"
    >>> render(content='{{for i in range(a):}}{{=i}}<br />{{pass}}', context=dict(a=5))
    '0<br />1<br />2<br />3<br />4<br />'
    >>> render(content='{%for i in range(a):%}{%=i%}<br />{%pass%}', context=dict(a=5),delimiters=('{%','%}'))
    '0<br />1<br />2<br />3<br />4<br />'
    >>> render(content="{{='''hello\nworld'''}}")
    'hello\nworld'
    >>> render(content='{{for i in range(3):\n=i\npass}}')
    '012'
     N/A N/A globals Response N/A N/A N/A ImportError N/A N/A Response DummyResponse N/A N/A N/A NOESCAPE context N/A N/A N/A context N/A NOESCAPE NOESCAPE N/A N/A context N/A response context N/A N/A old_response_body N/A N/A context N/A response body N/A N/A N/A context N/A response body N/A N/A StringIO StringIO N/A N/A old_response_body None N/A N/A context N/A response N/A Response N/A N/A N/A content N/A stream N/A filename N/A N/A N/A SyntaxError Must specify a stream or filename or content N/A close_stream False N/A N/A stream N/A N/A filename N/A N/A stream N/A open filename rb N/A close_stream True N/A N/A content N/A N/A stream N/A N/A StringIO StringIO content N/A code N/A str N/A TemplateParser N/A N/A stream read context context path path lexers lexers delimiters delimiters writer writer N/A N/A N/A code context N/A N/A N/A Exception N/A N/A N/A close_stream N/A N/A N/A N/A stream close N/A text N/A N/A N/A N/A context N/A response body getvalue N/A N/A old_response_body None N/A N/A N/A N/A context N/A response body old_response_body N/A text N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod