The util module is accessible via the pylons module.
PylonsTemplate is a Paste Template sub-class that configures the source directory and default plug-ins for a new Pylons project. The minimal template provides a more minimal template with less additional directories and layout.
The _ function has moved to pylons.i18n, please update your import statements to reflect the move
value.
Mark a string to be localized as follows:
1 | _('This should be in lots of languages') |
Takes a module name and returns the name of the class it defines.
If the module name contains dashes, they are replaced with underscores.
Example:
>>> class_name_from_module_name('with-dashes')
'WithDashes'
>>> class_name_from_module_name('with_underscores')
'WithUnderscores'
>>> class_name_from_module_name('oneword')
'Oneword'
The get_lang function has moved to pylons.i18n, please update your import statements to reflect the move
Return the current i18n language used
Deprecated: Use the logging module instead.
Log a message to the output log.
The set_lang function has moved to pylons.i18n, please update your import statements to reflect the move
Set the i18n language used
The 'c' object, with lax attribute access (returns '' when the attribute does not exist)
This class contains 1 member.
The 'c' object, with strict attribute access (raises an Exception when the attribute does not exist)
This class contains 1 member.
This class contains 9 members.
This class contains 9 members.
See the source for more information.