diff options
| -rw-r--r-- | docs/include/reference_header.txt | 5 | ||||
| -rwxr-xr-x | docs/rebuild | 6 | ||||
| -rw-r--r-- | paste/pyconfig.py | 16 |
3 files changed, 19 insertions, 8 deletions
diff --git a/docs/include/reference_header.txt b/docs/include/reference_header.txt new file mode 100644 index 0000000..9b73f85 --- /dev/null +++ b/docs/include/reference_header.txt @@ -0,0 +1,5 @@ +Paste Reference Document +@@@@@@@@@@@@@@@@@@@@@@@@ + +.. contents:: + diff --git a/docs/rebuild b/docs/rebuild index ca98789..d09b0ed 100755 --- a/docs/rebuild +++ b/docs/rebuild @@ -28,3 +28,9 @@ for NAME in $DOCTEST_BUILD ; do done chmod +x web/index.html + +cp include/reference_header.txt reference.txt +echo ":extracted: `date`" >> reference.txt +echo >> reference.txt +python ../paste/docsupport/extract.py paste >> reference.txt +rst2html.py reference.txt > reference.html diff --git a/paste/pyconfig.py b/paste/pyconfig.py index 96a32ab..342ece2 100644 --- a/paste/pyconfig.py +++ b/paste/pyconfig.py @@ -332,14 +332,14 @@ class DispatchingConfig(object): Thread-local configuration always overrides process-wide configuration. - This should be used like: - - conf = make_conf() - dispatching_config.push_thread_config(conf) - try: - ... do stuff ... - finally: - dispatching_config.pop_thread_config(conf) + This should be used like:: + + conf = make_conf() + dispatching_config.push_thread_config(conf) + try: + ... do stuff ... + finally: + dispatching_config.pop_thread_config(conf) """ local_dict().setdefault(self._local_key, []).append(conf) |
