class Theme:
A Theme is a set of HTML templates and configurations.
This class supports both theme directory and theme archive (zipped theme).
Method | __init__ |
Undocumented |
Method | cleanup |
Remove temporary directories. |
Method | get_config |
Return the value for a theme configuration setting, searching the base theme chain. |
Method | get_options |
Return a dictionary of theme options and their values. |
Method | get_theme_dirs |
Return a list of theme directories, beginning with this theme's, then the base theme's, then that one's base theme's, etc. |
Instance Variable | base |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | rootdir |
Undocumented |
Instance Variable | themedir |
Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
theme_path:str | Undocumented |
factory:HTMLThemeFactory | Undocumented |
Parameters | |
section:str | Undocumented |
name:str | Undocumented |
default:Any | Undocumented |
Returns | |
Any | Undocumented |
Parameters | |
overrides:Dict[ | Undocumented |
Returns | |
Dict[ | Undocumented |