Mercurial > genshi > mirror
annotate examples/turbogears/genshitest/config/app.cfg @ 673:ae54722b00d1 trunk
Ignore missing compiler errors on Windows. Fixes #174 and #165.
author | athomas |
---|---|
date | Thu, 10 Jan 2008 00:56:05 +0000 |
parents | 84168828b074 |
children |
rev | line source |
---|---|
4
49364e784c47
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] |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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. |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 | 13 tg.defaultview = "genshi" |
4
49364e784c47
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 |
49364e784c47
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. |
49364e784c47
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 |
49364e784c47
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) |
49364e784c47
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" |
49364e784c47
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 |
49364e784c47
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" |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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>" |
49364e784c47
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 |
49364e784c47
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, |
49364e784c47
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 |
49364e784c47
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
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
30 # for exemple ['turbogears.mochikit'] |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
31 # tg.include_widgets = [] |
4
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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 |
49364e784c47
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
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
36 # VISIT TRACKING |
64ff134868c4
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 |
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
39 # -------------- |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
40 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
41 # Enable Visit tracking |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
42 visit.on=True |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
43 |
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
45 # visit.timeout=20 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
46 |
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
48 # visit.cookie.name="tg-visit" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
49 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
53 # value and will NOT WORK. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
54 # visit.cookie.domain=None |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
55 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
56 # Specific path for the cookie |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
57 # visit.cookie.path="/" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
58 |
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
60 visit.manager="sqlobject" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
61 |
64ff134868c4
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 | 63 visit.soprovider.model = "genshitest.model.Visit" |
110
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
64 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
65 # IDENTITY |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
67 # -------- |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
68 |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
70 identity.on=True |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
71 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
74 # option must be specified. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
75 identity.failure_url="/login" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
76 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
77 # identity.provider='sqlobject' |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
78 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
82 # controller. |
64ff134868c4
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" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
84 # identity.form.password="password" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
85 # identity.form.submit="login" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
86 |
64ff134868c4
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 |
64ff134868c4
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. |
64ff134868c4
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 |
64ff134868c4
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" |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
91 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
92 # SqlObjectIdentityProvider |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
94 # ------------------------- |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
95 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
98 # name using sqlmeta). |
230 | 99 identity.soprovider.model.user="genshitest.model.User" |
100 identity.soprovider.model.group="genshitest.model.Group" | |
101 identity.soprovider.model.permission="genshitest.model.Permission" | |
110
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
102 |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
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. |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
106 # |
64ff134868c4
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 |
64ff134868c4
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: |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
109 # my_user.password = 'secret' |
64ff134868c4
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 |
64ff134868c4
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 |
64ff134868c4
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). |
64ff134868c4
update the example TurboGears app and include an example of using TurboGears wigets
mgood
parents:
4
diff
changeset
|
113 |
64ff134868c4
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
49364e784c47
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] |
49364e784c47
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 |
49364e784c47
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" |
49364e784c47
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 |
49364e784c47
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] |
49364e784c47
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 |
49364e784c47
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" |