Main Template¶
The main template can be set in the application configuration file.
- cone.main_template: Main template to use.
cone.app uses PasteDeploy for application
configuration. PasteDeploy defines a way to declare WSGI application
configuration in an .ini file.
Basic application and plugin configuration is done in the [app:] section
of the .ini file.
A complete list of Pyramid related Settings can be found in the Pyramid documentation
Plugin configuration can also be implemented using the .ini
file. The settings are passed to the
Plugin main hook functions.
Basic application related configuration parameters can be found below.
If no user database is desired, admin user and an admin password must be defined.
It’s recommended to avoid setting a global superuser via ini file for live deployments.
cone.app.interfaces.IAuthenticator impementation.The application uses the AuthTktAuthenticationPolicy.
The policy gets configured through the following parameters.
auth_tkt. The name used for auth
cookie.False. Only send the cookie back over a
secure connection.False. Make the requesting IP
address part of the authentication data in the cookie.None. Maximum number of seconds which
a newly issued ticket will be considered valid.None. If this parameter is set,
it represents the number of seconds that must pass before an authentication
token cookie is reissued.None. The max age of the auth_tkt
cookie, in seconds. This differs from timeout inasmuch as timeout
represents the lifetime of the ticket contained in the cookie, while this
value represents the lifetime of the cookie itself.False. Hide cookie from JavaScript
by setting the HttpOnly flag./. The path for which the authentication
cookie is valid.True. An authentication cookie
will be generated for the wildcard domain.In cone.app, providing a User and Group database is done by using a concrete
User and Group Management (UGM)
implementation.
If desired, the concrete UGM implementation is created on application startup.
A default file based UGM factory is registered under name file, which
creates a cone.ugm.file.Ugm instance.
Configuration is done through the following parameters.
cone.admin_user.The main template can be set in the application configuration file.
If it’s desired to allow the user to change UI language on the fly, define available languages in configuration file.
If available languages are defined, a language selection dropdown menu gets displayed in the mainmenu.
Application Plugins needs to be defined in the application configuration in order to be included. Plugins are included in defined order.
First the ZCML configuration of all Plugins is invoked. Then all Plugin main hook functions are called.
Some aspects of the model root node can be set via the application configuration file.