PylonsHQ.

Mark Luffel
Dec 18, 2007 9:03:43 PM

Using middleware (Beaker) with a composite app

Language: INI
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Here's an example of configuring multiple apps to use a common middleware filter
# the [app:home] section is a standard pylons app
# and the /servicebroker and /proxy apps want to be able to use the same session management

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[filter-app:main]
use = egg:Beaker#beaker_session
next = sessioned
beaker.session.key = my_project_key
beaker.session.secret = i_wear_two_layers_of_socks

[composite:sessioned]
use = egg:Paste#urlmap
/ = home
/servicebroker = servicebroker
/proxy = cross_domain_proxy

[app:servicebroker]
use = egg:Appcelerator#service_broker

[app:cross_domain_proxy]
use = egg:Appcelerator#cross_domain_proxy

[app:home]
use = egg:my_project
full_stack = true
cache_dir = %(here)s/data

Download

Comments (0)

You must login before you can comment.

Powered by Pylons - Contact Administrators