Codebase list pastedeploy / e99ae62
Imported Debian patch 1.3.1-1 Piotr Ożarowski 16 years ago
9 changed file(s) with 35 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.0
11 Name: PasteDeploy
2 Version: 1.3
2 Version: 1.3.1
33 Summary: Load, configure, and compose WSGI applications and servers
44 Home-page: http://pythonpaste.org/deploy/
55 Author: Ian Bicking
00 Metadata-Version: 1.0
11 Name: PasteDeploy
2 Version: 1.3
2 Version: 1.3.1
33 Summary: Load, configure, and compose WSGI applications and servers
44 Home-page: http://pythonpaste.org/deploy/
55 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
06 pastedeploy (1.3-1) unstable; urgency=low
17
28 * New upstream release
00 Paste Deployment News
11 =====================
22
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 ---
512
613 * Added ``scheme`` option to ``PrefixMiddleware``, so you can force a
714 scheme (E.g., when proxying an HTTPS connection over HTTP).
316316 class ConfigLoader(_Loader):
317317
318318 def __init__(self, filename):
319 self.filename = filename
319 self.filename = filename = filename.strip()
320320 self.parser = NicerConfigParser(self.filename)
321321 # Don't lower-case keys:
322322 self.parser.optionxform = str
324324 # we have to add an extra check:
325325 if not os.path.exists(filename):
326326 raise OSError(
327 "File %s not found" % filename)
327 "File %r not found" % filename)
328328 self.parser.read(filename)
329329 self.parser._defaults.setdefault(
330330 'here', os.path.dirname(os.path.abspath(filename)))
399399 obj=None,
400400 object_type=FILTER_WITH,
401401 protocol=None,
402 global_conf=None, local_conf=None,
402 global_conf=global_conf, local_conf=local_conf,
403403 loader=self)
404404 filter_with_context.filter_context = self.filter_context(
405405 name=filter_with, global_conf=global_conf)
00 [pudge]
11 highlighter = pygments
2 title = Paste Deploy
3 dest = docs/html
4 docs = docs/index.txt docs/news.txt
25 settings = no_about=true
36 link1=/deploy/ paste.deploy
47 link2=/script/ paster script
58 link3=/download/ Download
69 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
1010 modules = paste.deploy
1111 theme = pythonpaste.org
1212 mailing_list_url = http://pythonpaste.org/community/mailing-list.html
1313 organization = Python Paste
1414 organization_url = http://pythonpaste.org/
1515 trac_url = http://pythonpaste.org/trac/
16
17 [global]
18 command_packages = buildutils.pudge_command, buildutils.publish_command
1619
1720 [egg_info]
1821 tag_build =
2427 make-dirs = 1
2528 doc-dir = docs/html
2629
30 [aliases]
31 distribute = register sdist bdist_egg upload pudge publish
32
00 from setuptools import setup, find_packages
11
2 version = '1.3'
2 version = '1.3.1'
33
44 setup(
55 name="PasteDeploy",
00 [app:main]
11 use = egg:FakeApp#basic_app
2 example = test
23 filter-with = filter1
34
45 [filter:filter1]
9393 'here': config_path,
9494 '__file__': config_filename,}
9595
96 def test_appconfig_filter_with():
97 conf = appconfig('config:test_filter_with.ini', relative_to=config_path)
98 assert conf['example'] == 'test'
99
96100 def test_global_conf():
97101 conf = appconfig(ini_file, relative_to=here, name='test_global_conf', global_conf={'def2': 'TEST DEF 2', 'inherit': 'bazbar'})
98102 pprint(conf)