2 # The settings in this file should not vary depending on the deployment
3 # environment. dev.cfg and prod.cfg are the locations for
4 # the different deployment settings. Settings in this file will
5 # be overridden by settings in those other files.
7 # The commented out values below are the defaults
11 # which view (template engine) to use if one is not specified in the
13 # tg.defaultview = "kid"
15 # The following kid settings determine the settings used by the kid serializer.
17 # One of (html|html-strict|xhtml|xhtml-strict|xml|json)
18 # kid.outputformat="html"
20 # kid.encoding="utf-8"
22 # The sitetemplate is used for overall styling of a site that
23 # includes multiple TurboGears applications
24 # tg.sitetemplate="<packagename.templates.templatename>"
26 # Allow every exposed function to be called as json,
27 # tg.allow_json = False
29 # List of Widgets to include on every page.
30 # for exemple ['turbogears.mochikit']
31 tg.include_widgets = ['turbogears.mochikit']
33 # Set to True if the scheduler should be started
34 # tg.scheduler = False
37 # Each visit to your application will be assigned a unique visit ID tracked via
38 # a cookie sent to the visitor's browser.
41 # Enable Visit tracking
44 # Number of minutes a visit may be idle before it expires.
47 # The name of the cookie to transmit to the visitor's browser.
48 # visit.cookie.name="tg-visit"
50 # Domain name to specify when setting the cookie (must begin with . according to
51 # RFC 2109). The default (None) should work for most cases and will default to
52 # the machine to which the request was made. NOTE: localhost is NEVER a valid
53 # value and will NOT WORK.
54 # visit.cookie.domain=None
56 # Specific path for the cookie
57 # visit.cookie.path="/"
59 # The name of the VisitManager plugin to use for visitor tracking.
60 visit.manager = "sqlobject"
62 # Database class to use for visit tracking
63 visit.soprovider.model = "sercom.model.Visita"
66 # General configuration of the TurboGears Identity management module
69 # Switch to turn on or off the Identity management module
72 # [REQUIRED] URL to which CherryPy will internally redirect when an access
73 # control check fails. If Identity management is turned on, a value for this
74 # option must be specified.
75 identity.failure_url = "/login"
77 # identity.provider='sqlobject'
79 # The names of the fields on the login form containing the visitor's user ID
80 # and password. In addition, the submit button is specified simply so its
81 # existence may be stripped out prior to passing the form data to the target
83 identity.form.user_name = "login_user"
84 identity.form.password = "login_password"
85 identity.form.submit = "login_submit"
87 # What sources should the identity provider consider when determining the
88 # identity associated with a request? Comma separated list of identity sources.
89 # Valid sources: form, visit, http_auth
90 # identity.source="form,http_auth,visit"
92 # SqlObjectIdentityProvider
93 # Configuration options for the default IdentityProvider
94 # -------------------------
96 # The classes you wish to use for your Identity model. Remember to not use reserved
97 # SQL keywords for class names (at least unless you specify a different table
98 # name using sqlmeta).
99 identity.soprovider.model.user = "sercom.model.Usuario"
100 identity.soprovider.model.group = "sercom.model.Rol"
101 identity.soprovider.model.permission = "sercom.model.Permiso"
102 identity.soprovider.model.visit = "sercom.model.VisitaUsuario"
104 # The password encryption algorithm used when comparing passwords against what's
105 # stored in the database. Valid values are 'md5' or 'sha1'. If you do not
106 # specify an encryption algorithm, passwords are expected to be clear text.
107 # The SqlObjectProvider *will* encrypt passwords supplied as part of your login
108 # form. If you set the password through the password property, like:
109 # my_user.password = 'secret'
110 # the password will be encrypted in the database, provided identity is up and
111 # running, or you have loaded the configuration specifying what encryption to
112 # use (in situations where identity may not yet be running, like tests).
114 identity.soprovider.encryption_algorithm = 'sha1'
116 # compress the data sends to the web browser
118 gzip_filter.on = True
119 gzip_filter.mime_types = ["application/x-javascript", "text/javascript", "text/html", "text/css", "text/plain"]
122 static_filter.on = True
123 static_filter.dir = "%(top_level_dir)s/static"
126 static_filter.on = True
127 static_filter.file = "%(top_level_dir)s/static/images/favicon.ico"