class documentation
A :class:`.Namespace` specific to a Python module instance.
Method | __getattr__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | callables |
Undocumented |
Instance Variable | context |
The :class:`.Context` object for this :class:`.Namespace`. |
Instance Variable | inherits |
Undocumented |
Instance Variable | module |
The Python module referenced by this :class:`.Namespace`. |
Instance Variable | name |
Undocumented |
Property | filename |
The path of the filesystem file used for this :class:`.Namespace`'s module or template. |
Method | _get |
Undocumented |
Inherited from Namespace
:
Method | get |
Return a value from the :class:`.Cache` referenced by this :class:`.Namespace` object's :class:`.Template`. |
Method | get |
Return a :class:`.Namespace` corresponding to the given ``uri``. |
Method | get |
Return a :class:`.Template` from the given ``uri``. |
Method | include |
Include a file at the given ``uri``. |
Class Variable | template |
The :class:`.Template` object referenced by this :class:`.Namespace`, if any. |
Class Variable | uri |
The URI for this :class:`.Namespace`'s template. |
Property | attr |
Access module level attributes by name. |
Property | cache |
Return the :class:`.Cache` object referenced by this :class:`.Namespace` object's :class:`.Template`. |
Method | _populate |
Undocumented |
Class Variable | _templateuri |
Undocumented |
def __init__(self, name, context, module, callables=None, inherits=None, populate_self=True, calling_uri=None):
(source)
¶
overrides
mako.runtime.Namespace.__init__
Undocumented
overrides
mako.runtime.Namespace.context
The :class:`.Context` object for this :class:`.Namespace`. Namespaces are often created with copies of contexts that contain slightly different data, particularly in inheritance scenarios. Using the :class:`.Context` off of a :class:`.Namespace` one can traverse an entire chain of templates that inherit from one-another.
overrides
mako.runtime.Namespace.module
The Python module referenced by this :class:`.Namespace`. If the namespace references a :class:`.Template`, then this module is the equivalent of ``template.module``, i.e. the generated module for the template.
overrides
mako.runtime.Namespace.filename
The path of the filesystem file used for this :class:`.Namespace`'s module or template.