Imported Debian patch 1.3.1-1
Piotr Ożarowski
16 years ago
0 | 0 |
Metadata-Version: 1.0
|
1 | 1 |
Name: PasteDeploy
|
2 | |
Version: 1.3
|
|
2 |
Version: 1.3.1
|
3 | 3 |
Summary: Load, configure, and compose WSGI applications and servers
|
4 | 4 |
Home-page: http://pythonpaste.org/deploy/
|
5 | 5 |
Author: Ian Bicking
|
0 | 0 |
Metadata-Version: 1.0
|
1 | 1 |
Name: PasteDeploy
|
2 | |
Version: 1.3
|
|
2 |
Version: 1.3.1
|
3 | 3 |
Summary: Load, configure, and compose WSGI applications and servers
|
4 | 4 |
Home-page: http://pythonpaste.org/deploy/
|
5 | 5 |
Author: Ian Bicking
|
|
0 |
pastedeploy (1.3.1-1) unstable; urgency=low
|
|
1 |
|
|
2 |
* New upstream release
|
|
3 |
|
|
4 |
-- Piotr Ożarowski <piotr@debian.org> Tue, 26 Jun 2007 20:56:38 +0200
|
|
5 |
|
0 | 6 |
pastedeploy (1.3-1) unstable; urgency=low
|
1 | 7 |
|
2 | 8 |
* New upstream release
|
0 | 0 |
Paste Deployment News
|
1 | 1 |
=====================
|
2 | 2 |
|
3 | |
svn trunk
|
4 | |
---------
|
|
3 |
1.3.1
|
|
4 |
-----
|
|
5 |
|
|
6 |
* Fix ``appconfig`` config loading when using a config file with
|
|
7 |
``filter-with`` in it (previously you'd get TypeError: iteration
|
|
8 |
over non-sequence)
|
|
9 |
|
|
10 |
1.3
|
|
11 |
---
|
5 | 12 |
|
6 | 13 |
* Added ``scheme`` option to ``PrefixMiddleware``, so you can force a
|
7 | 14 |
scheme (E.g., when proxying an HTTPS connection over HTTP).
|
316 | 316 |
class ConfigLoader(_Loader):
|
317 | 317 |
|
318 | 318 |
def __init__(self, filename):
|
319 | |
self.filename = filename
|
|
319 |
self.filename = filename = filename.strip()
|
320 | 320 |
self.parser = NicerConfigParser(self.filename)
|
321 | 321 |
# Don't lower-case keys:
|
322 | 322 |
self.parser.optionxform = str
|
|
324 | 324 |
# we have to add an extra check:
|
325 | 325 |
if not os.path.exists(filename):
|
326 | 326 |
raise OSError(
|
327 | |
"File %s not found" % filename)
|
|
327 |
"File %r not found" % filename)
|
328 | 328 |
self.parser.read(filename)
|
329 | 329 |
self.parser._defaults.setdefault(
|
330 | 330 |
'here', os.path.dirname(os.path.abspath(filename)))
|
|
399 | 399 |
obj=None,
|
400 | 400 |
object_type=FILTER_WITH,
|
401 | 401 |
protocol=None,
|
402 | |
global_conf=None, local_conf=None,
|
|
402 |
global_conf=global_conf, local_conf=local_conf,
|
403 | 403 |
loader=self)
|
404 | 404 |
filter_with_context.filter_context = self.filter_context(
|
405 | 405 |
name=filter_with, global_conf=global_conf)
|
0 | 0 |
[pudge]
|
1 | 1 |
highlighter = pygments
|
|
2 |
title = Paste Deploy
|
|
3 |
dest = docs/html
|
|
4 |
docs = docs/index.txt docs/news.txt
|
2 | 5 |
settings = no_about=true
|
3 | 6 |
link1=/deploy/ paste.deploy
|
4 | 7 |
link2=/script/ paster script
|
5 | 8 |
link3=/download/ Download
|
6 | 9 |
extra_credits=Hosting courtesy of <a href="http://tummy.com">Tummy.com</a>
|
7 | |
dest = docs/html
|
8 | |
docs = docs/index.txt docs/news.txt
|
9 | |
title = Paste Deploy
|
10 | 10 |
modules = paste.deploy
|
11 | 11 |
theme = pythonpaste.org
|
12 | 12 |
mailing_list_url = http://pythonpaste.org/community/mailing-list.html
|
13 | 13 |
organization = Python Paste
|
14 | 14 |
organization_url = http://pythonpaste.org/
|
15 | 15 |
trac_url = http://pythonpaste.org/trac/
|
|
16 |
|
|
17 |
[global]
|
|
18 |
command_packages = buildutils.pudge_command, buildutils.publish_command
|
16 | 19 |
|
17 | 20 |
[egg_info]
|
18 | 21 |
tag_build =
|
|
24 | 27 |
make-dirs = 1
|
25 | 28 |
doc-dir = docs/html
|
26 | 29 |
|
|
30 |
[aliases]
|
|
31 |
distribute = register sdist bdist_egg upload pudge publish
|
|
32 |
|
0 | 0 |
from setuptools import setup, find_packages
|
1 | 1 |
|
2 | |
version = '1.3'
|
|
2 |
version = '1.3.1'
|
3 | 3 |
|
4 | 4 |
setup(
|
5 | 5 |
name="PasteDeploy",
|
0 | 0 |
[app:main]
|
1 | 1 |
use = egg:FakeApp#basic_app
|
|
2 |
example = test
|
2 | 3 |
filter-with = filter1
|
3 | 4 |
|
4 | 5 |
[filter:filter1]
|
93 | 93 |
'here': config_path,
|
94 | 94 |
'__file__': config_filename,}
|
95 | 95 |
|
|
96 |
def test_appconfig_filter_with():
|
|
97 |
conf = appconfig('config:test_filter_with.ini', relative_to=config_path)
|
|
98 |
assert conf['example'] == 'test'
|
|
99 |
|
96 | 100 |
def test_global_conf():
|
97 | 101 |
conf = appconfig(ini_file, relative_to=here, name='test_global_conf', global_conf={'def2': 'TEST DEF 2', 'inherit': 'bazbar'})
|
98 | 102 |
pprint(conf)
|