[Python-modules-commits] [pyres] 01/06: New upstream version 1.5
Marcelo Jorge Vieira
metal at moszumanska.debian.org
Fri Sep 8 03:40:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
metal pushed a commit to branch master
in repository pyres.
commit 590a96d6c3da9dcc587292ad8582050971c8fc67
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date: Thu Sep 7 23:06:55 2017 -0300
New upstream version 1.5
---
.gitignore | 10 +
.travis.yml | 13 +
AUTHORS.md | 24 +
CHANGES.txt | 5 +
HISTORY.md | 109 +++
LICENSE | 20 +
MANIFEST.in | 1 +
README.markdown | 39 ++
docs/Makefile | 88 +++
docs/make.bat | 112 ++++
docs/source/_theme/ADCTheme/README.rst | 35 +
docs/source/_theme/ADCTheme/layout.html | 143 ++++
docs/source/_theme/ADCTheme/static/adctheme.css | 743 +++++++++++++++++++++
.../ADCTheme/static/breadcrumb_background.png | Bin 0 -> 136 bytes
.../_theme/ADCTheme/static/documentation.png | Bin 0 -> 412 bytes
.../_theme/ADCTheme/static/header_sm_mid.png | Bin 0 -> 159 bytes
docs/source/_theme/ADCTheme/static/scrn1.png | Bin 0 -> 108046 bytes
docs/source/_theme/ADCTheme/static/scrn2.png | Bin 0 -> 121395 bytes
.../_theme/ADCTheme/static/searchfield_leftcap.png | Bin 0 -> 855 bytes
.../_theme/ADCTheme/static/searchfield_repeat.png | Bin 0 -> 158 bytes
.../ADCTheme/static/searchfield_rightcap.png | Bin 0 -> 530 bytes
.../_theme/ADCTheme/static/title_background.png | Bin 0 -> 132 bytes
.../_theme/ADCTheme/static/triangle_closed.png | Bin 0 -> 181 bytes
.../_theme/ADCTheme/static/triangle_left.png | Bin 0 -> 195 bytes
.../_theme/ADCTheme/static/triangle_open.png | Bin 0 -> 191 bytes
docs/source/_theme/ADCTheme/theme.conf | 5 +
docs/source/_theme/flask/layout.html | 25 +
docs/source/_theme/flask/relations.html | 19 +
docs/source/_theme/flask/static/flasky.css_t | 395 +++++++++++
docs/source/_theme/flask/static/small_flask.css | 70 ++
docs/source/_theme/flask/theme.conf | 9 +
docs/source/_theme/nature/layout.html | 196 ++++++
docs/source/_theme/nature/static/nature.css_t | 221 ++++++
docs/source/_theme/nature/static/pygments.css | 54 ++
docs/source/_theme/nature/theme.conf | 6 +
docs/source/class.rst | 28 +
docs/source/conf.py | 197 ++++++
docs/source/example.rst | 50 ++
docs/source/failures.rst | 18 +
docs/source/horde.rst | 18 +
docs/source/index.rst | 29 +
docs/source/install.rst | 41 ++
docs/source/intentions.rst | 1 +
docs/source/intro.rst | 17 +
docs/source/tests.rst | 29 +
pyres/__init__.py | 385 +++++++++++
pyres/compat.py | 30 +
pyres/exceptions.py | 11 +
pyres/extensions.py | 126 ++++
pyres/failure/__init__.py | 28 +
pyres/failure/base.py | 43 ++
pyres/failure/mail.py | 103 +++
pyres/failure/multiple.py | 49 ++
pyres/failure/redis.py | 45 ++
pyres/horde.py | 420 ++++++++++++
pyres/job.py | 140 ++++
pyres/json_parser.py | 51 ++
pyres/scheduler.py | 95 +++
pyres/scripts.py | 104 +++
pyres/worker.py | 409 ++++++++++++
requirements-test.txt | 1 +
requirements.txt | 3 +
roadmap.md | 15 +
setup.py | 58 ++
tests/__init__.py | 125 ++++
tests/test_failure.py | 57 ++
tests/test_failure_multi.py | 24 +
tests/test_horde.py | 59 ++
tests/test_jobs.py | 32 +
tests/test_json.py | 24 +
tests/test_resq.py | 122 ++++
tests/test_schedule.py | 76 +++
tests/test_stats.py | 36 +
tests/test_worker.py | 331 +++++++++
tox.ini | 9 +
75 files changed, 5781 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e3a0b9e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+*.pyc
+build/
+.coverage
+*.report
+*.egg-info
+logs/
+dist/
+*.swp
+*.swo
+.tox/
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cafbb59
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: python
+python:
+ - "2.6"
+ - "2.7"
+ - "3.3"
+# - "pypy"
+# command to install dependencies
+install:
+ - python setup.py install
+# command to run tests
+script: python setup.py test
+services:
+ - redis-server
diff --git a/AUTHORS.md b/AUTHORS.md
new file mode 100644
index 0000000..89cf71b
--- /dev/null
+++ b/AUTHORS.md
@@ -0,0 +1,24 @@
+## Authors
+* Matt George
+* Craig Hawco
+* Michael Russo
+* Chris Song
+* Whit Morriss
+* Joe Shaw
+* Yashwanth Nelapati
+* Cezar Sa Espinola
+* Alex Ezell
+* Christy O'Reilly
+* Kevin McConnell
+* Bernardo Heynemann
+* David Schoonover
+* Rob Hudson
+* Salimane Adjao Moustapha
+* John Hobbs
+* James M. Henderson
+* Iraê Carvalho
+* Fabien Reboia
+* Peter Teichman
+
+
+Inspired by Resque, by Chris Wanstrath
diff --git a/CHANGES.txt b/CHANGES.txt
new file mode 100644
index 0000000..486d900
--- /dev/null
+++ b/CHANGES.txt
@@ -0,0 +1,5 @@
+2011-03-01 whit <whit at surveymonkey.com>
+
+ * Added hooks for the worker to allow worker subclasses to insert
+ code before and after forking
+
diff --git a/HISTORY.md b/HISTORY.md
new file mode 100644
index 0000000..7236716
--- /dev/null
+++ b/HISTORY.md
@@ -0,0 +1,109 @@
+##1.4.2 (2013-06-21)
+* __str__ returns correctly with dsn
+* worker_pids returns correct set of workers
+* workers are re-registered on every job
+* add exception metadata for after_perform method
+* logger no longer overrides root logger
+* support for redis db in dsn
+
+##1.4.1 (2012-07-30)
+* fix for non existent system signal for linux
+* cleanup of setup.py and requirements
+
+##1.4 (2012-06-?)
+* added hooks for before and after perform methods
+* fixed logging
+*fixed problems with password authentication
+
+##1.3 (2012-06-01)
+* remove resweb from pyres
+* resweb is now available at http://github.com/Pyres/resweb or on pypi
+
+##1.2
+* release with changes from pull requests
+
+##1.1 (2011-06-16)
+* api change based on redis-py
+* setproctitle requirements fix
+* change exception logging in worker
+
+##1.0.1 (2011-04-12)
+* fixed bug with tempaltes and media in resweb
+* call to redis-py disconnect was failing, switched to connection.disconnect
+* interval cast to int for pyres_worker script command
+
+## 0.9.1 (2010-10-15)
+* fixing issues #45, #46.
+ * #45 - resweb not working in chrome
+ * #46 - delayed_queue_schedule_size() returns incorrect value
+* updated version requirement for redis-py
+* added Failure docs from Alex._
+
+## 0.9 (2010-08-05)
+* added better logging to the project
+
+## 0.8 (2010-04-24)
+* added the pyres_manager and the horde module. This allows a more prefork like model for processing jobs.
+* setproctitle usage. Allows better process titles when viewing via ps
+* ability to delete and requeue failed items
+
+## 0.7.5.1 (2010-03-18)
+* fixed the pyres_scheduler script
+* changed download link to remove v from version number
+
+## 0.7.5 (2010-03-18)
+* added feature to retry jobs based on a class attribute
+
+## 0.7.1 (2010-03-16)
+* bug fix for pruning workers.
+
+## 0.7.0 (2010-03-05)
+* delayed tasks
+* resweb pagination
+* switch stored timestamps to a unix timestamp
+* updated documentation
+* upgraded to redis-py 1.34.1
+* switched from print statements to the logging module
+* import errors on jobs are now reported in the failed queue
+* prune dead workers
+* small bugfixes in the resweb package
+* improved failure formatting
+* datetime json parser
+
+## 0.5.0 (2010-0114)
+
+* added new documentation to the project
+* update setup.py
+* preparing for semantic versioning
+
+## 0.4.1 (2010-01-06)
+
+* fixed issue with new failure package in distutils sdist
+* changed setup.py to remove camel case, because it's ugly
+
+## 0.4.0 (2010-01-06)
+
+* added the basics of failure backend support
+
+## 0.3.1 (2009-12-16)
+
+* minor bug fix in worker.py
+* merged in some setup.py niceties from dsc fork
+* merged in better README info from dsc fork
+
+## 0.3.0 (2009-12-10)
+
+* updated setup.py
+* refactored package for better testing
+* resque namespacing by fakechris
+* smarter import from string by fakechris
+
+## 0.2.0 (2009-12-09)
+
+* Better web interface via resweb
+* Updated the api to be more inline with resque
+* More tests.
+
+## 0.1.0 (2009-12-01)
+
+* First release.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f9725b0
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009-2013 Matt George
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..f9bd145
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include requirements.txt
diff --git a/README.markdown b/README.markdown
new file mode 100644
index 0000000..ef8d07c
--- /dev/null
+++ b/README.markdown
@@ -0,0 +1,39 @@
+Pyres - a Resque clone
+======================
+
+[Resque](http://github.com/defunkt/resque) is a great implementation of a job queue by the people at github. It's written in ruby, which is great, but I primarily work in python. So I took on the task of porting over the code to python and PyRes was the result
+
+
+## Project Goals
+
+Because of some differences between ruby and python, there are a couple of places where I chose speed over correctness. The goal will be to eventually take the application and make it more pythonic without sacrificing the awesome functionality found in resque. At the same time, I hope to stay within the bounds of the original api and web interface.
+
+## Travis CI
+
+Currently, pyres is being tested via travis ci for python version 2.6, 2.7, and 3.3:
+[](http://travis-ci.org/binarydud/pyres)
+
+## Running Tests
+
+ 1. Install nose: `$ easy_install nose`
+ 2. Start redis: `$ redis-server [PATH_TO_YOUR_REDIS_CONFIG]`
+ 3. Run nose: `$ nosetests` Or more verbosely: `$ nosetests -v`
+
+
+##Mailing List
+
+To join the list simply send an email to <pyres at librelist.com>. This
+will subscribe you and send you information about your subscription,
+include unsubscribe information.
+
+The archive can be found at <http://librelist.com/browser/>.
+
+
+## Information
+
+* Code: `git clone git://github.com/binarydud/pyres.git`
+* Home: <http://github.com/binarydud/pyres>
+* Docs: <http://binarydud.github.com/pyres/>
+* Bugs: <http://github.com/binarydud/pyres/issues>
+* List: <pyres at librelist.com>
+
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..13632e1
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,88 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ -rm -rf build/*
+
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
+ @echo
+ @echo "Build finished. The HTML pages are in build/html."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) build/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in build/dirhtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in build/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) build/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in build/qthelp, like this:"
+ @echo "# qcollectiongenerator build/qthelp/PyRes.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile build/qthelp/PyRes.qhc"
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in build/latex."
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+ "run these through (pdf)latex."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
+ @echo
+ @echo "The overview file is in build/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in build/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) build/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in build/doctest/output.txt."
diff --git a/docs/make.bat b/docs/make.bat
new file mode 100644
index 0000000..0dc7dda
--- /dev/null
+++ b/docs/make.bat
@@ -0,0 +1,112 @@
+ at ECHO OFF
+
+REM Command file for Sphinx documentation
+
+set SPHINXBUILD=sphinx-build
+set ALLSPHINXOPTS=-d build/doctrees %SPHINXOPTS% source
+if NOT "%PAPER%" == "" (
+ set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+)
+
+if "%1" == "" goto help
+
+if "%1" == "help" (
+ :help
+ echo.Please use `make ^<target^>` where ^<target^> is one of
+ echo. html to make standalone HTML files
+ echo. dirhtml to make HTML files named index.html in directories
+ echo. pickle to make pickle files
+ echo. json to make JSON files
+ echo. htmlhelp to make HTML files and a HTML help project
+ echo. qthelp to make HTML files and a qthelp project
+ echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+ echo. changes to make an overview over all changed/added/deprecated items
+ echo. linkcheck to check all external links for integrity
+ echo. doctest to run all doctests embedded in the documentation if enabled
+ goto end
+)
+
+if "%1" == "clean" (
+ for /d %%i in (build\*) do rmdir /q /s %%i
+ del /q /s build\*
+ goto end
+)
+
+if "%1" == "html" (
+ %SPHINXBUILD% -b html %ALLSPHINXOPTS% build/html
+ echo.
+ echo.Build finished. The HTML pages are in build/html.
+ goto end
+)
+
+if "%1" == "dirhtml" (
+ %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% build/dirhtml
+ echo.
+ echo.Build finished. The HTML pages are in build/dirhtml.
+ goto end
+)
+
+if "%1" == "pickle" (
+ %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% build/pickle
+ echo.
+ echo.Build finished; now you can process the pickle files.
+ goto end
+)
+
+if "%1" == "json" (
+ %SPHINXBUILD% -b json %ALLSPHINXOPTS% build/json
+ echo.
+ echo.Build finished; now you can process the JSON files.
+ goto end
+)
+
+if "%1" == "htmlhelp" (
+ %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% build/htmlhelp
+ echo.
+ echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in build/htmlhelp.
+ goto end
+)
+
+if "%1" == "qthelp" (
+ %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% build/qthelp
+ echo.
+ echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in build/qthelp, like this:
+ echo.^> qcollectiongenerator build\qthelp\PyRes.qhcp
+ echo.To view the help file:
+ echo.^> assistant -collectionFile build\qthelp\PyRes.ghc
+ goto end
+)
+
+if "%1" == "latex" (
+ %SPHINXBUILD% -b latex %ALLSPHINXOPTS% build/latex
+ echo.
+ echo.Build finished; the LaTeX files are in build/latex.
+ goto end
+)
+
+if "%1" == "changes" (
+ %SPHINXBUILD% -b changes %ALLSPHINXOPTS% build/changes
+ echo.
+ echo.The overview file is in build/changes.
+ goto end
+)
+
+if "%1" == "linkcheck" (
+ %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% build/linkcheck
+ echo.
+ echo.Link check complete; look for any errors in the above output ^
+or in build/linkcheck/output.txt.
+ goto end
+)
+
+if "%1" == "doctest" (
+ %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% build/doctest
+ echo.
+ echo.Testing of doctests in the sources finished, look at the ^
+results in build/doctest/output.txt.
+ goto end
+)
+
+:end
diff --git a/docs/source/_theme/ADCTheme/README.rst b/docs/source/_theme/ADCTheme/README.rst
new file mode 100644
index 0000000..bcd0417
--- /dev/null
+++ b/docs/source/_theme/ADCTheme/README.rst
@@ -0,0 +1,35 @@
+==============
+How To Install
+==============
+
+Install in Sphinx
+-----------------
+
+Copy this directory into the ``sphinx/templates`` directory where Shpinx is installed. For example, a standard install of sphinx on Mac OS X is at ``/Library/Python/2.6/site-packages/Sphinx-0.6.3-py2.6.egg/``
+
+Install Somewhere Else
+----------------------
+
+If you want to install this theme somewhere else, you will have to modify the ``conf.py`` file. ::
+
+ templates_path = ['/absolute/path/to/dir/','relative/path/']
+
+Making Sphinx Use the Theme
+---------------------------
+
+Edit the ``conf.py`` file and make the following setting: ::
+
+ html_theme = 'ADCtheme'
+
+Screen Shots
+------------
+
+.. image:: http://github.com/coordt/ADCtheme/raw/master/static/scrn1.png
+
+.. image:: http://github.com/coordt/ADCtheme/raw/master/static/scrn2.png
+
+To Do
+-----
+
+ * Gotta get the javascript working so the Table of Contents is hide-able.
+ * Probably lots of css cleanup.
\ No newline at end of file
diff --git a/docs/source/_theme/ADCTheme/layout.html b/docs/source/_theme/ADCTheme/layout.html
new file mode 100644
index 0000000..514f52b
--- /dev/null
+++ b/docs/source/_theme/ADCTheme/layout.html
@@ -0,0 +1,143 @@
+{% extends "basic/layout.html" %}
+{%- block doctype -%}
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+{%- endblock %}
+{%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}
+{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
+{%- block linktags %}
+ {%- if hasdoc('about') %}
+ <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
+ {%- endif %}
+ {%- if hasdoc('genindex') %}
+ <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
+ {%- endif %}
+ {%- if hasdoc('search') %}
+ <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
+ {%- endif %}
+ {%- if hasdoc('copyright') %}
+ <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
+ {%- endif %}
+ <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
+ {%- if parents %}
+ <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
+ {%- endif %}
+ {%- if next %}
+ <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
+ {%- endif %}
+ {%- if prev %}
+ <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
+ {%- endif %}
+{%- endblock %}
+{%- block extrahead %} {% endblock %}
+{%- block header %}{% endblock %}
+{%- block relbar1 %}
+<div id="docstitle">
+ <p>{{docstitle}}</p>
+</div>
+<div id="header">
+ <div id="title"><h1>{{ title|striptags }}</h1></div>
+ <ul id="headerButtons">
+ <li id="toc_button"><div class="headerButton"><a href="#">Table of Contents</a></div></li>
+ <li id="page_buttons">
+ {%- for rellink in rellinks %}
+ <div class="headerButton"><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></div>
+ {%- endfor %}
+ </li>
+ </ul>
+</div>
+{% endblock %}
+
+{%- block sidebar1 %}
+{%- if not embedded %}{% if not theme_nosidebar|tobool %}
+<div id="sphinxsidebar">
+ <div class="sphinxsidebarwrapper">
+ {%- block sidebarlogo %}
+ {%- if logo %}
+ <p class="logo"><a href="{{ pathto(master_doc) }}">
+ <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
+ </a></p>
+ {%- endif %}
+ {%- endblock %}
+ {%- block sidebartoc %}
+ <ul><li class="toctree-l1"><a href="{{ pathto(master_doc) }}">{{ _('Main Page') }}</a></li></ul>
+ {{ toctree() }}
+ {%- endblock %}
+ {%- block sidebarrel %}
+ {%- endblock %}
+ {%- block sidebarsourcelink %}
+ {%- if show_source and has_source and sourcename %}
+ <h3>{{ _('This Page') }}</h3>
+ <ul class="this-page-menu">
+ <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
+ rel="nofollow">{{ _('Show Source') }}</a></li>
+ </ul>
+ {%- endif %}
+ {%- endblock %}
+ {%- if customsidebar %}
+ {% include customsidebar %}
+ {%- endif %}
+ {%- block sidebarsearch %}
+ {%- if pagename != "search" %}
+ <div id="searchbox" style="display: none">
+ {# <h3>{{ _('Quick search') }}</h3> #}
+ <form class="search" action="{{ pathto('search') }}" method="get">
+ <div class="search-wrapper">
+ <span class="search-left"></span>
+ <input class="prettysearch" type="text" name="q" size="18" />
+ <span class="search-right"> </span>
+ </div>
+ <input type="submit" value="{{ _('Search') }}" class="searchbutton" />
+ <input type="hidden" name="check_keywords" value="yes" />
+ <input type="hidden" name="area" value="default" />
+ </form>
+ <p class="searchtip" style="font-size: 90%">
+ {{ _('Enter search terms or a module, class or function name.') }}
+ </p>
+ </div>
+ <script type="text/javascript">$('#searchbox').show(0);</script>
+ {%- endif %}
+ {%- endblock %}
+ </div>
+</div>
+{%- endif %}{% endif %}
+
+{% endblock %}
+{%- block document %}
+ <div class="documentwrapper">
+ {%- if not embedded %}{% if not theme_nosidebar|tobool %}
+ <div class="bodywrapper">
+ {%- endif %}{% endif %}
+ <div class="body">
+ {% block body %} {% endblock %}
+ </div>
+ {%- if not embedded %}{% if not theme_nosidebar|tobool %}
+ </div>
+ {%- endif %}{% endif %}
+ </div>
+ <div class="footer">
+ <p>{%- if hasdoc('copyright') %}
+ {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
+ {%- else %}
+ {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
+ {%- endif %}
+ {%- if last_updated %}
+ {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
+ {%- endif %}
+ {%- if show_sphinx %}
+ {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
+ {%- endif %}
+ </p>
+ </div>
+{%- endblock %}
+{%- block sidebar2 %}{% endblock %}
+{%- block relbar2 %}{% endblock %}
+{%- block footer %}
+ <div id="breadcrumbs">
+ {%- for parent in parents %}
+ <a href="{{ parent.link|e }}" {{ accesskey("U") }}>{{ parent.title }}</a><img src="triangle_closed.png" alt="Right arrow">
+ {%- endfor %}
+ <a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
+ </ul>
+ </div>
+{%- endblock %}
diff --git a/docs/source/_theme/ADCTheme/static/adctheme.css b/docs/source/_theme/ADCTheme/static/adctheme.css
new file mode 100644
index 0000000..01a74e1
--- /dev/null
+++ b/docs/source/_theme/ADCTheme/static/adctheme.css
@@ -0,0 +1,743 @@
+/**
+ * Sphinx stylesheet -- basic theme
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+
+/* -- main layout ----------------------------------------------------------- */
+
+div.clearer {
+ clear: both;
+}
+
+/* -- header ---------------------------------------------------------------- */
+
+#header #title {
+ background:#29334F url(title_background.png) repeat-x scroll 0 0;
+ border-bottom:1px solid #B6B6B6;
+ height:25px;
+ overflow:hidden;
+}
+#headerButtons {
+ position: absolute;
+ list-style: none outside;
+ top: 26px;
+ left: 0px;
+ right: 0px;
+ margin: 0px;
+ padding: 0px;
+ border-top: 1px solid #2B334F;
+ border-bottom: 1px solid #EDEDED;
+ height: 20px;
+ font-size: 8pt;
+ overflow: hidden;
+ background-color: #D8D8D8;
+}
+
+#headerButtons li {
+ background-repeat:no-repeat;
+ display:inline;
+ margin-top:0;
+ padding:0;
+}
+
+.headerButton {
+ display: inline;
+ height:20px;
+}
+
+.headerButton a {
+ text-decoration: none;
+ float: right;
+ height: 20px;
+ padding: 4px 15px;
+ border-left: 1px solid #ACACAC;
+ font-family:'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
+ color: black;
+}
+.headerButton a:hover {
+ color: white;
+ background-color: #787878;
+
+}
+
+li#toc_button {
+ text-align:left;
+}
+
+li#toc_button .headerButton a {
+ width:198px;
+ padding-top: 4px;
+ font-family:'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
+ color: black;
+ float: left;
+ padding-left:15px;
+ border-right:1px solid #ACACAC;
+ background:transparent url(triangle_closed.png) no-repeat scroll 4px 6px;
+}
+
+
+
+li#page_buttons {
+position:absolute;
+right:0;
+}
+
+#breadcrumbs {
+ color: black;
+ background-image:url(breadcrumb_background.png);
+ border-top:1px solid #2B334F;
+ bottom:0;
+ font-size:10px;
+ height:15px;
+ left:0;
+ overflow:hidden;
+ padding:3px 10px 0;
+ position:absolute;
+ right:0;
+ white-space:nowrap;
+ z-index:901;
+}
+#breadcrumbs a {
+ color: black;
+ text-decoration: none;
+}
+#breadcrumbs a:hover {
+ text-decoration: underline;
+}
+
+/* -- sidebar --------------------------------------------------------------- */
+#sphinxsidebar {
+ position: absolute;
+ top: 84px;
+ bottom: 19px;
+ left: 0px;
+ width: 229px;
+ background-color: #E4EBF7;
+ border-right: 1px solid #ACACAC;
+ border-top: 1px solid #2B334F;
+ overflow-x: hidden;
+ overflow-y: auto;
+ padding: 0px 0px 0px 0px;
+ font-size:11px;
+}
+
+div.sphinxsidebarwrapper {
+ padding: 10px 5px 0 10px;
+}
+
+#sphinxsidebar li {
+ margin: 0px;
+ padding: 0px;
+ font-weight: normal;
+ margin: 0px 0px 7px 0px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 11px;
+}
+
+#sphinxsidebar ul {
+ list-style: none;
+ margin: 0px 0px 0px 0px;
+ padding: 0px 5px 0px 5px;
+}
+
+#sphinxsidebar ul ul,
+#sphinxsidebar ul.want-points {
+ list-style: square;
+}
+
+#sphinxsidebar ul ul {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+#sphinxsidebar form {
+ margin-top: 10px;
+}
+
+#sphinxsidebar input {
+ border: 1px solid #787878;
+ font-family: sans-serif;
+ font-size: 1em;
+}
+
+img {
+ border: 0;
+}
+
+#sphinxsidebar li.toctree-l1 a {
+ font-weight: bold;
+ color: #000;
+ text-decoration: none;
+}
+
+#sphinxsidebar li.toctree-l2 a {
+ font-weight: bold;
+ color: #4f4f4f;
+ text-decoration: none;
+}
+
+/* -- search page ----------------------------------------------------------- */
+
+ul.search {
+ margin: 10px 0 0 20px;
+ padding: 0;
+}
+
+ul.search li {
+ padding: 5px 0 5px 20px;
+ background-image: url(file.png);
+ background-repeat: no-repeat;
+ background-position: 0 7px;
+}
+
+ul.search li a {
+ font-weight: bold;
+}
+
+ul.search li div.context {
+ color: #888;
+ margin: 2px 0 0 30px;
+ text-align: left;
+}
+
+ul.keywordmatches li.goodmatch a {
+ font-weight: bold;
+}
+#sphinxsidebar input.prettysearch {border:none;}
+input.searchbutton {
+ float: right;
+}
+.search-wrapper {width: 100%; height: 25px;}
+.search-wrapper input.prettysearch { border: none; width:200px; height: 16px; background: url(searchfield_repeat.png) center top repeat-x; border: 0px; margin: 0; padding: 3px 0 0 0; font: 11px "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif; }
+.search-wrapper input.prettysearch { width: 184px; margin-left: 20px; *margin-top:-1px; *margin-right:-2px; *margin-left:10px; }
+.search-wrapper .search-left { display: block; position: absolute; width: 20px; height: 19px; background: url(searchfield_leftcap.png) left top no-repeat; }
+.search-wrapper .search-right { display: block; position: relative; left: 204px; top: -19px; width: 10px; height: 19px; background: url(searchfield_rightcap.png) right top no-repeat; }
+
+/* -- index page ------------------------------------------------------------ */
+
+table.contentstable {
+ width: 90%;
+}
+
+table.contentstable p.biglink {
+ line-height: 150%;
+}
+
+a.biglink {
+ font-size: 1.3em;
+}
+
+span.linkdescr {
+ font-style: italic;
+ padding-top: 5px;
+ font-size: 90%;
+}
+
+/* -- general index --------------------------------------------------------- */
+
+table.indextable td {
... 5296 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyres.git
More information about the Python-modules-commits
mailing list