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