dbprofiles

This module is used to store/retrieve user profiles on the local machine. A user profile can contain information such as connection parameters to the database or the language the user wants to use in the application.

For this module to function correctly, the settings should have an attribute named CAMELOT_DBPROFILES_CIPHER. This is a ‘secret’ per application string that is used to encrypt the profile information as it is stored on the local machine.

camelot.core.dbprofiles.engine_from_profile()[source]

Create a SQLAlchemy Engine from the selected profile

camelot.core.dbprofiles.get_countrycode(profile=None)[source]
Returns:two-letter ISO 3166 country code
camelot.core.dbprofiles.get_languagecode(profile=None)[source]
Returns:two-letter ISO 639 language code
camelot.core.dbprofiles.media_root_from_profile()[source]

Return the media root from the selected profile

camelot.core.dbprofiles.selected_profile_info()[source]
Returns:a dict with the info of the selected profile

Previous topic

constants

Next topic

document

This Page