summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--docs/conf.py2
-rw-r--r--docs/narr/webob.rst8
-rw-r--r--setup.cfg1
-rw-r--r--tox.ini2
6 files changed, 14 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 5a205b268..cb98fddbe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
# Wire up travis
language: python
+sudo: false
env:
- TOXENV=py26
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 9c2191f3b..e4132cda5 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -236,3 +236,5 @@ Contributors
- Randall Leeds, 2014/11/11
- Hugo Branquinho, 2014/11/25
+
+- Adrian Teng, 2014/12/17
diff --git a/docs/conf.py b/docs/conf.py
index 4bc8e2172..fa4578275 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -74,7 +74,7 @@ intersphinx_mapping = {
'http://docs.pylonsproject.org/projects/deform/en/latest',
None),
'sqla': ('http://docs.sqlalchemy.org/en/latest', None),
- 'who': ('http://docs.repoze.org/who/latest', None),
+ 'who': ('http://repozewho.readthedocs.org/en/latest', None),
'python': ('http://docs.python.org', None),
'python3': ('http://docs.python.org/3', None),
'tstring':
diff --git a/docs/narr/webob.rst b/docs/narr/webob.rst
index 6a331e4bf..0eb070b06 100644
--- a/docs/narr/webob.rst
+++ b/docs/narr/webob.rst
@@ -310,6 +310,14 @@ Python's ``urllib2`` instead of a Javascript AJAX request:
req = urllib2.Request('http://localhost:6543/', json_payload, headers)
resp = urllib2.urlopen(req)
+If you are doing Cross-origin resource sharing (CORS), then the standard
+requires the browser to do a pre-flight HTTP OPTIONS request. The easiest way
+to handling this is adding an extra ``view_config`` for the same route, with
+``request_method`` set to ``OPTIONS``, and setting the desired response header
+before returning. You can find examples of response headers here_.
+
+.. _here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests
+
.. index::
single: cleaning up after request
diff --git a/setup.cfg b/setup.cfg
index a877ffb7f..9633b6980 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,6 +7,7 @@ where=pyramid
nocapture=1
cover-package=pyramid
cover-erase=1
+cover-min-percentage=100
[aliases]
dev = develop easy_install pyramid[testing]
diff --git a/tox.ini b/tox.ini
index 3f32dbc3f..714c5b6d3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,7 @@ basepython =
python2.6
commands =
python setup.py dev
- python setup.py nosetests --with-xunit --with-xcoverage --cover-min-percentage=100
+ python setup.py nosetests --with-xunit --with-xcoverage
deps =
nosexcover