Package elisa :: Package base_components :: Module theme :: Class Theme
[hide private]
[frames] | no frames]

Class Theme

source code


DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
config_file__get(self) source code
 
config_file__set(self, config_file) source code
 
_get_file_path(self, plugin_path) source code
string
get_media(self, key, default_plugin_path='frontend')
Return the absolute path to a file in the theme.
source code
 
save_config(self, application_config)
DOCME
source code

Inherited from core.component.Component: clean, load_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
  default_theme = 'frontend'
DOCME
string name = 'theme'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]
  config_file
DOCME

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: core.component.Component.__init__
(inherited documentation)

initialize(self)

source code 

Initialize various variables internal to the Component.

This method is called by the plugin_registry after the component's config has been loaded.

Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
Overrides: core.component.Component.initialize
(inherited documentation)

get_media(self, key, default_plugin_path='frontend')

source code 
Return the absolute path to a file in the theme.
Parameters:
  • key (string) - key (name) for the file
  • default_plugin_path (string) - if the theme found None, use this one
Returns: string

save_config(self, application_config)

source code 
DOCME
Overrides: core.component.Component.save_config

Instance Variable Details [hide private]

config_file

DOCME
Get Method:
elisa.base_components.theme.Theme.config_file__get(self)
Set Method:
elisa.base_components.theme.Theme.config_file__set(self, config_file)
Delete Method:
'frontend'