annotate examples/turbogears/genshitest/config/app.cfg @ 303:4c8e1c1700a0 stable-0.3.x

Ported [374] to 0.3.x branch.
author cmlenz
date Mon, 16 Oct 2006 09:27:00 +0000
parents 24757b771651
children
rev   line source
4
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
1 [global]
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
2 # The settings in this file should not vary depending on the deployment
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
3 # environment. dev.cfg and prod.cfg are the locations for
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
4 # the different deployment settings. Settings in this file will
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
5 # be overridden by settings in those other files.
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
6
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
7 # The commented out values below are the defaults
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
8
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
9 # VIEW
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
10
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
11 # which view (template engine) to use if one is not specified in the
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
12 # template name
230
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
13 tg.defaultview = "genshi"
4
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
14
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
15 # The following kid settings determine the settings used by the kid serializer.
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
16
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
17 # One of (html|xml|json)
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
18 # kid.outputformat="html"
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
19
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
20 # kid.encoding="utf-8"
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
21
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
22 # The sitetemplate is used for overall styling of a site that
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
23 # includes multiple TurboGears applications
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
24 # tg.sitetemplate="<packagename.templates.templatename>"
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
25
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
26 # Allow every exposed function to be called as json,
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
27 # tg.allow_json = False
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
28
110
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
29 # List of Widgets to include on every page.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
30 # for exemple ['turbogears.mochikit']
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
31 # tg.include_widgets = []
4
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
32
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
33 # Set to True if the scheduler should be started
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
34 # tg.scheduler = False
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
35
110
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
36 # VISIT TRACKING
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
37 # Each visit to your application will be assigned a unique visit ID tracked via
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
38 # a cookie sent to the visitor's browser.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
39 # --------------
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
40
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
41 # Enable Visit tracking
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
42 visit.on=True
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
43
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
44 # Number of minutes a visit may be idle before it expires.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
45 # visit.timeout=20
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
46
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
47 # The name of the cookie to transmit to the visitor's browser.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
48 # visit.cookie.name="tg-visit"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
49
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
50 # Domain name to specify when setting the cookie (must begin with . according to
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
51 # RFC 2109). The default (None) should work for most cases and will default to
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
52 # the machine to which the request was made. NOTE: localhost is NEVER a valid
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
53 # value and will NOT WORK.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
54 # visit.cookie.domain=None
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
55
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
56 # Specific path for the cookie
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
57 # visit.cookie.path="/"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
58
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
59 # The name of the VisitManager plugin to use for visitor tracking.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
60 visit.manager="sqlobject"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
61
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
62 # Database class to use for visit tracking
230
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
63 visit.soprovider.model = "genshitest.model.Visit"
110
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
64
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
65 # IDENTITY
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
66 # General configuration of the TurboGears Identity management module
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
67 # --------
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
68
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
69 # Switch to turn on or off the Identity management module
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
70 identity.on=True
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
71
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
72 # [REQUIRED] URL to which CherryPy will internally redirect when an access
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
73 # control check fails. If Identity management is turned on, a value for this
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
74 # option must be specified.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
75 identity.failure_url="/login"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
76
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
77 # identity.provider='sqlobject'
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
78
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
79 # The names of the fields on the login form containing the visitor's user ID
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
80 # and password. In addition, the submit button is specified simply so its
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
81 # existence may be stripped out prior to passing the form data to the target
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
82 # controller.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
83 # identity.form.user_name="user_name"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
84 # identity.form.password="password"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
85 # identity.form.submit="login"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
86
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
87 # What sources should the identity provider consider when determining the
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
88 # identity associated with a request? Comma separated list of identity sources.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
89 # Valid sources: form, visit, http_auth
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
90 # identity.source="form,http_auth,visit"
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
91
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
92 # SqlObjectIdentityProvider
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
93 # Configuration options for the default IdentityProvider
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
94 # -------------------------
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
95
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
96 # The classes you wish to use for your Identity model. Remember to not use reserved
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
97 # SQL keywords for class names (at least unless you specify a different table
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
98 # name using sqlmeta).
230
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
99 identity.soprovider.model.user="genshitest.model.User"
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
100 identity.soprovider.model.group="genshitest.model.Group"
24757b771651 Renamed Markup to Genshi in repository.
cmlenz
parents: 110
diff changeset
101 identity.soprovider.model.permission="genshitest.model.Permission"
110
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
102
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
103 # The password encryption algorithm used when comparing passwords against what's
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
104 # stored in the database. Valid values are 'md5' or 'sha1'. If you do not
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
105 # specify an encryption algorithm, passwords are expected to be clear text.
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
106 #
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
107 # The SqlObjectProvider *will* encrypt passwords supplied as part of your login
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
108 # form. If you set the password through the password property, like:
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
109 # my_user.password = 'secret'
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
110 # the password will be encrypted in the database, provided identity is up and
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
111 # running, or you have loaded the configuration specifying what encryption to
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
112 # use (in situations where identity may not yet be running, like tests).
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
113
44fbc30d78cd update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents: 4
diff changeset
114 # identity.soprovider.encryption_algorithm=None
4
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
115 [/static]
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
116 static_filter.on = True
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
117 static_filter.dir = "%(top_level_dir)s/static"
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
118
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
119 [/favicon.ico]
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
120 static_filter.on = True
f8612f05af99 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents:
diff changeset
121 static_filter.file = "%(top_level_dir)s/static/images/favicon.ico"
Copyright (C) 2012-2017 Edgewall Software