Home | Trees | Indices | Help |
|
---|
|
object --+ | base.Widget --+ | base.Resource --+ | base.Link --+ | base.JSLink --+ | LocalizableJSLink
Provides a simple way to include language-specific data in your JS code.
Language file to use is determined from the user's locale or from the 'language' parameter. If there is no language file for the language (determined via 'supported_languages' parameter) than 'default_language' is used.
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Class Variables | |
default_language = 'en'
|
|
supported_languages = ['en']
|
|
params =
|
|
params_doc =
|
|
language = <turbogears.widgets.meta.ParamDescriptor object at
|
|
template_c = <MarkupTemplate "None">
|
|
Inherited from Inherited from Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
Update the template parameters. This method will have the last chance to update the variables sent to the template for the specific request. All parameters listed at class attribute 'params' will be available at the 'params' dict this method receives. *Must* call super(MyWidget, self).update_params(params) cooperatively, unless, of course, your know what you're doing. Preferably this should be done before any actual work is done in the method.
|
Class Variable Details |
params
|
params_doc
|
language
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:20:02 2019 | http://epydoc.sourceforge.net |