| 1 | Index: paste/deploy/loadwsgi.py |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- paste/deploy/loadwsgi.py (revision 7828) |
|---|
| 4 | +++ paste/deploy/loadwsgi.py (working copy) |
|---|
| 5 | @@ -429,8 +430,12 @@ |
|---|
| 6 | use = local_conf.pop('use') |
|---|
| 7 | context = self.get_context( |
|---|
| 8 | object_type, name=use, global_conf=global_conf) |
|---|
| 9 | - context.global_conf.update(global_additions) |
|---|
| 10 | - context.local_conf.update(local_conf) |
|---|
| 11 | + if context.object_type == FILTER_WITH: |
|---|
| 12 | + context.next_context.global_conf.update(global_additions) |
|---|
| 13 | + context.next_context.local_conf.update(local_conf) |
|---|
| 14 | + else: |
|---|
| 15 | + context.global_conf.update(global_additions) |
|---|
| 16 | + context.local_conf.update(local_conf) |
|---|
| 17 | if '__file__' in global_conf: |
|---|
| 18 | # use sections shouldn't overwrite the original __file__ |
|---|
| 19 | context.global_conf['__file__'] = global_conf['__file__'] |
|---|