├── .gitignore
├── .gitinit
├── Procfile
├── README.md
├── data.sql
├── doc
├── Makefile
├── _build
│ ├── doctrees
│ │ ├── environment.pickle
│ │ └── index.doctree
│ └── latex
│ │ ├── Makefile
│ │ ├── fncychap.sty
│ │ ├── onlinelibrarymanagementsystem.aux
│ │ ├── onlinelibrarymanagementsystem.idx
│ │ ├── onlinelibrarymanagementsystem.out
│ │ ├── onlinelibrarymanagementsystem.pdf
│ │ ├── onlinelibrarymanagementsystem.tex
│ │ ├── onlinelibrarymanagementsystem.toc
│ │ ├── python.ist
│ │ ├── sphinx.sty
│ │ ├── sphinxhowto.cls
│ │ ├── sphinxmanual.cls
│ │ └── tabulary.sty
├── conf.py
└── index.txt
├── library
├── __init__.py
├── settings.py
├── templates
│ ├── about.html
│ ├── author_show.html
│ ├── authors.html
│ ├── base.html
│ ├── book_show.html
│ ├── books.html
│ ├── change_password.html
│ ├── home.html
│ ├── my_quotations.html
│ ├── new.html
│ ├── period_show.html
│ ├── periods.html
│ ├── public_home.html
│ ├── publisher_show.html
│ ├── publishers.html
│ ├── search_users.html
│ ├── sign_in.html
│ ├── sign_up.html
│ ├── table_without_footer.html
│ ├── user.html
│ └── useredit.html
├── urls.py
└── wsgi.py
├── library_app
├── __init__.py
├── admin.py
├── auth_backend.py
├── context_processor.py
├── decorators
│ ├── __init__.py
│ └── group_required.py
├── fixtures
│ └── users.json
├── forms.py
├── helpers.py
├── migrations
│ ├── 0001_initial.py
│ ├── 0002_auto_20141218_1051.py
│ ├── 0003_auto_20141218_1200.py
│ ├── 0004_quotationfrombook.py
│ ├── 0005_auto_20141229_1907.py
│ └── __init__.py
├── models.py
├── static
│ ├── css
│ │ ├── bootstrap-responsive.css
│ │ ├── bootstrap-responsive.min.css
│ │ ├── bootstrap.css
│ │ ├── bootstrap.min.css
│ │ ├── public_home.less
│ │ └── style.less
│ ├── img
│ │ ├── blank-face.jpg
│ │ ├── c1.jpg
│ │ ├── c2.jpg
│ │ ├── c2_cover.jpg
│ │ ├── c2_web_banner.jpg
│ │ ├── c3.jpg
│ │ ├── c3_cover.jpg
│ │ ├── code.jpg
│ │ ├── cover.jpg
│ │ ├── face.jpg
│ │ ├── female-placeholder.png
│ │ ├── flower.png
│ │ ├── glyphicons-halflings-white.png
│ │ ├── glyphicons-halflings.png
│ │ ├── logo.png
│ │ ├── logo_big.png
│ │ ├── logo_small.png
│ │ ├── palm.jpg
│ │ └── road.jpg
│ └── js
│ │ ├── bootstrap.js
│ │ ├── bootstrap.min.js
│ │ ├── less.js
│ │ ├── main.js
│ │ └── public_home.js
├── tables.py
├── templatetags
│ ├── __init__.py
│ ├── has_group.py
│ ├── render_object.py
│ └── xextends.py
├── tests.py
├── validators.py
└── views.py
├── manage.py
└── requirements.txt
/.gitignore:
--------------------------------------------------------------------------------
1 | sqlite3.db
2 | *.db
3 | *.py[cod]
4 | *.log
--------------------------------------------------------------------------------
/.gitinit:
--------------------------------------------------------------------------------
1 | *.pyc
2 |
--------------------------------------------------------------------------------
/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn library.wsgi
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | #Library Online Management System written in Django
2 | ---
3 |
4 | ####Link: http://django-library.herokuapp.com/
5 |
6 | **Technologies**: django, python, html, css, less, Java Script, jQuery, Twitter Bootstrap, Git, Heroku, Selenium,
7 | django_tables2, fandjango, Google App Engine (by CodeShip)
8 |
9 | **Date**: December, 2014
10 |
11 | >It is an online interface for a library (with a few social-network features) and allows users to:
12 | - borrow/return books (like in real library) (a few real books are present in the system)
13 | - create circles of friends (like in google+ or facebook) (add to friends and unfriend)
14 | - share with friends books' quotation (in twitter style), borrowed books
15 | - register/sign in via facebook and webpage
16 | - save quotations from books
17 |
18 | >There is also group of librarians with additional permissions:
19 | - custom (outside of django admin) CRUD for authors, books' publishers, books etc.
20 | - librarian can mark that book has been returned to library
21 |
22 | Front-end is designed using Twitter Bootstrap and filled out with
23 | sample data (mostly lorem ipsum). A few animations/effects are programmed using jQuery.
24 |
25 | For facebook integration I used facepy and fandjango.
26 |
27 | Application is provided with test (basic ones, unittests and selenium).
28 |
29 | Data validations is done using (mostly) modelForms.
30 |
31 | Books/Authors/Publishers/Users search is made using django_tables2. It allows user to sort results
32 | using selected criteria, watch selected amount of entries on page (pagination) etc. I have used user's images
33 | generated by gravator.
34 |
35 | **Exemplary system accounts**:
36 |
37 | librarian account:
38 | - login: assistant
39 | - pass: 12345
40 | - (do not worry, I have database backup ;))
41 |
42 | standard user
43 | - login: user1
44 | - pass: 12345
45 |
46 | I intended to document every fragment of code that could be unclear. Enclosed is documentation
47 | created by sphinx.
48 |
49 | **Run**:
50 | ```sh
51 | python manage.py runserver 127.0.0.1:8888
52 | ```
53 |
54 | (do not forget to change database settings if you want to run app locally) or simply **visit website:
55 | http://django-library.herokuapp.com/**
56 |
57 | **Author: Tomasz Potanski, tomasz@potanski.pl**
58 |
--------------------------------------------------------------------------------
/doc/Makefile:
--------------------------------------------------------------------------------
1 | # Makefile for Sphinx documentation
2 | #
3 |
4 | # You can set these variables from the command line.
5 | SPHINXOPTS =
6 | SPHINXBUILD = sphinx-build
7 | PAPER =
8 | BUILDDIR = _build
9 |
10 | # User-friendly check for sphinx-build
11 | ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12 | $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13 | endif
14 |
15 | # Internal variables.
16 | PAPEROPT_a4 = -D latex_paper_size=a4
17 | PAPEROPT_letter = -D latex_paper_size=letter
18 | ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19 | # the i18n builder cannot share the environment and doctrees with the others
20 | I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
21 |
22 | .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
23 |
24 | help:
25 | @echo "Please use \`make ' where is one of"
26 | @echo " html to make standalone HTML files"
27 | @echo " dirhtml to make HTML files named index.html in directories"
28 | @echo " singlehtml to make a single large HTML file"
29 | @echo " pickle to make pickle files"
30 | @echo " json to make JSON files"
31 | @echo " htmlhelp to make HTML files and a HTML help project"
32 | @echo " qthelp to make HTML files and a qthelp project"
33 | @echo " devhelp to make HTML files and a Devhelp project"
34 | @echo " epub to make an epub"
35 | @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36 | @echo " latexpdf to make LaTeX files and run them through pdflatex"
37 | @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
38 | @echo " text to make text files"
39 | @echo " man to make manual pages"
40 | @echo " texinfo to make Texinfo files"
41 | @echo " info to make Texinfo files and run them through makeinfo"
42 | @echo " gettext to make PO message catalogs"
43 | @echo " changes to make an overview of all changed/added/deprecated items"
44 | @echo " xml to make Docutils-native XML files"
45 | @echo " pseudoxml to make pseudoxml-XML files for display purposes"
46 | @echo " linkcheck to check all external links for integrity"
47 | @echo " doctest to run all doctests embedded in the documentation (if enabled)"
48 |
49 | clean:
50 | rm -rf $(BUILDDIR)/*
51 |
52 | html:
53 | $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
54 | @echo
55 | @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
56 |
57 | dirhtml:
58 | $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
59 | @echo
60 | @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
61 |
62 | singlehtml:
63 | $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
64 | @echo
65 | @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
66 |
67 | pickle:
68 | $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
69 | @echo
70 | @echo "Build finished; now you can process the pickle files."
71 |
72 | json:
73 | $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
74 | @echo
75 | @echo "Build finished; now you can process the JSON files."
76 |
77 | htmlhelp:
78 | $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
79 | @echo
80 | @echo "Build finished; now you can run HTML Help Workshop with the" \
81 | ".hhp project file in $(BUILDDIR)/htmlhelp."
82 |
83 | qthelp:
84 | $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
85 | @echo
86 | @echo "Build finished; now you can run "qcollectiongenerator" with the" \
87 | ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
88 | @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/onlinelibrarymanagementsystem.qhcp"
89 | @echo "To view the help file:"
90 | @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/onlinelibrarymanagementsystem.qhc"
91 |
92 | devhelp:
93 | $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
94 | @echo
95 | @echo "Build finished."
96 | @echo "To view the help file:"
97 | @echo "# mkdir -p $$HOME/.local/share/devhelp/onlinelibrarymanagementsystem"
98 | @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/onlinelibrarymanagementsystem"
99 | @echo "# devhelp"
100 |
101 | epub:
102 | $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
103 | @echo
104 | @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
105 |
106 | latex:
107 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
108 | @echo
109 | @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
110 | @echo "Run \`make' in that directory to run these through (pdf)latex" \
111 | "(use \`make latexpdf' here to do that automatically)."
112 |
113 | latexpdf:
114 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
115 | @echo "Running LaTeX files through pdflatex..."
116 | $(MAKE) -C $(BUILDDIR)/latex all-pdf
117 | @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
118 |
119 | latexpdfja:
120 | $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
121 | @echo "Running LaTeX files through platex and dvipdfmx..."
122 | $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
123 | @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
124 |
125 | text:
126 | $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
127 | @echo
128 | @echo "Build finished. The text files are in $(BUILDDIR)/text."
129 |
130 | man:
131 | $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
132 | @echo
133 | @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
134 |
135 | texinfo:
136 | $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
137 | @echo
138 | @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
139 | @echo "Run \`make' in that directory to run these through makeinfo" \
140 | "(use \`make info' here to do that automatically)."
141 |
142 | info:
143 | $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
144 | @echo "Running Texinfo files through makeinfo..."
145 | make -C $(BUILDDIR)/texinfo info
146 | @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
147 |
148 | gettext:
149 | $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
150 | @echo
151 | @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
152 |
153 | changes:
154 | $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
155 | @echo
156 | @echo "The overview file is in $(BUILDDIR)/changes."
157 |
158 | linkcheck:
159 | $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
160 | @echo
161 | @echo "Link check complete; look for any errors in the above output " \
162 | "or in $(BUILDDIR)/linkcheck/output.txt."
163 |
164 | doctest:
165 | $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
166 | @echo "Testing of doctests in the sources finished, look at the " \
167 | "results in $(BUILDDIR)/doctest/output.txt."
168 |
169 | xml:
170 | $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
171 | @echo
172 | @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
173 |
174 | pseudoxml:
175 | $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
176 | @echo
177 | @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
178 |
--------------------------------------------------------------------------------
/doc/_build/doctrees/environment.pickle:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srik1040/django-library/2c914b0915865be3d3c08dbb0a0b4e96270a52e3/doc/_build/doctrees/environment.pickle
--------------------------------------------------------------------------------
/doc/_build/doctrees/index.doctree:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srik1040/django-library/2c914b0915865be3d3c08dbb0a0b4e96270a52e3/doc/_build/doctrees/index.doctree
--------------------------------------------------------------------------------
/doc/_build/latex/Makefile:
--------------------------------------------------------------------------------
1 | # Makefile for Sphinx LaTeX output
2 |
3 | ALLDOCS = $(basename $(wildcard *.tex))
4 | ALLPDF = $(addsuffix .pdf,$(ALLDOCS))
5 | ALLDVI = $(addsuffix .dvi,$(ALLDOCS))
6 |
7 | # Prefix for archive names
8 | ARCHIVEPRREFIX =
9 | # Additional LaTeX options
10 | LATEXOPTS =
11 |
12 | all: $(ALLPDF)
13 | all-pdf: $(ALLPDF)
14 | all-dvi: $(ALLDVI)
15 | all-ps: all-dvi
16 | for f in *.dvi; do dvips $$f; done
17 |
18 | all-pdf-ja:
19 | for f in *.pdf *.png *.gif *.jpg *.jpeg; do extractbb $$f; done
20 | for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
21 | for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
22 | for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
23 | -for f in *.idx; do mendex -U -f -d "`basename $$f .idx`.dic" -s python.ist $$f; done
24 | for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
25 | for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
26 | for f in *.dvi; do dvipdfmx $$f; done
27 |
28 | zip: all-$(FMT)
29 | mkdir $(ARCHIVEPREFIX)docs-$(FMT)
30 | cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
31 | zip -q -r -9 $(ARCHIVEPREFIX)docs-$(FMT).zip $(ARCHIVEPREFIX)docs-$(FMT)
32 | rm -r $(ARCHIVEPREFIX)docs-$(FMT)
33 |
34 | tar: all-$(FMT)
35 | mkdir $(ARCHIVEPREFIX)docs-$(FMT)
36 | cp $(ALLPDF) $(ARCHIVEPREFIX)docs-$(FMT)
37 | tar cf $(ARCHIVEPREFIX)docs-$(FMT).tar $(ARCHIVEPREFIX)docs-$(FMT)
38 | rm -r $(ARCHIVEPREFIX)docs-$(FMT)
39 |
40 | bz2: tar
41 | bzip2 -9 -k $(ARCHIVEPREFIX)docs-$(FMT).tar
42 |
43 | # The number of LaTeX runs is quite conservative, but I don't expect it
44 | # to get run often, so the little extra time won't hurt.
45 | %.dvi: %.tex
46 | latex $(LATEXOPTS) '$<'
47 | latex $(LATEXOPTS) '$<'
48 | latex $(LATEXOPTS) '$<'
49 | -makeindex -s python.ist '$(basename $<).idx'
50 | latex $(LATEXOPTS) '$<'
51 | latex $(LATEXOPTS) '$<'
52 |
53 | %.pdf: %.tex
54 | pdflatex $(LATEXOPTS) '$<'
55 | pdflatex $(LATEXOPTS) '$<'
56 | pdflatex $(LATEXOPTS) '$<'
57 | -makeindex -s python.ist '$(basename $<).idx'
58 | pdflatex $(LATEXOPTS) '$<'
59 | pdflatex $(LATEXOPTS) '$<'
60 |
61 | clean:
62 | rm -f *.dvi *.log *.ind *.aux *.toc *.syn *.idx *.out *.ilg *.pla
63 |
64 | .PHONY: all all-pdf all-dvi all-ps clean
65 | .PHONY: all-pdf-ja
66 |
67 |
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.aux:
--------------------------------------------------------------------------------
1 | \relax
2 | \providecommand\hyper@newdestlabel[2]{}
3 | \providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
4 | \HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
5 | \global\let\oldcontentsline\contentsline
6 | \gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
7 | \global\let\oldnewlabel\newlabel
8 | \gdef\newlabel#1#2{\newlabelxx{#1}#2}
9 | \gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
10 | \AtEndDocument{\ifx\hyper@anchor\@undefined
11 | \let\contentsline\oldcontentsline
12 | \let\newlabel\oldnewlabel
13 | \fi}
14 | \fi}
15 | \global\let\hyper@last\relax
16 | \gdef\HyperFirstAtBeginDocument#1{#1}
17 | \providecommand\HyField@AuxAddToFields[1]{}
18 | \providecommand\HyField@AuxAddToCoFields[2]{}
19 | \select@language{english}
20 | \@writefile{toc}{\select@language{english}}
21 | \@writefile{lof}{\select@language{english}}
22 | \@writefile{lot}{\select@language{english}}
23 | \newlabel{index::doc}{{}{1}{}{section*.2}{}}
24 | \@writefile{toc}{\contentsline {chapter}{\numberline {1}Indices and tables}{3}{chapter.1}}
25 | \@writefile{lof}{\addvspace {10\p@ }}
26 | \@writefile{lot}{\addvspace {10\p@ }}
27 | \newlabel{index:indices-and-tables}{{1}{3}{Indices and tables}{chapter.1}{}}
28 | \newlabel{index:welcome-to-online-library-management-system-s-documentation}{{1}{3}{Indices and tables}{chapter.1}{}}
29 |
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.idx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srik1040/django-library/2c914b0915865be3d3c08dbb0a0b4e96270a52e3/doc/_build/latex/onlinelibrarymanagementsystem.idx
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.out:
--------------------------------------------------------------------------------
1 | \BOOKMARK [0][-]{chapter.1}{Indices and tables}{}% 1
2 |
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srik1040/django-library/2c914b0915865be3d3c08dbb0a0b4e96270a52e3/doc/_build/latex/onlinelibrarymanagementsystem.pdf
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.tex:
--------------------------------------------------------------------------------
1 | % Generated by Sphinx.
2 | \def\sphinxdocclass{report}
3 | \documentclass[letterpaper,10pt,english]{sphinxmanual}
4 | \usepackage[utf8]{inputenc}
5 | \DeclareUnicodeCharacter{00A0}{\nobreakspace}
6 | \usepackage{cmap}
7 | \usepackage[T1]{fontenc}
8 | \usepackage{babel}
9 | \usepackage{times}
10 | \usepackage[Bjarne]{fncychap}
11 | \usepackage{longtable}
12 | \usepackage{sphinx}
13 | \usepackage{multirow}
14 |
15 |
16 | \title{online library management system Documentation}
17 | \date{January 01, 2015}
18 | \release{1.0}
19 | \author{Tomasz Potanski}
20 | \newcommand{\sphinxlogo}{}
21 | \renewcommand{\releasename}{Release}
22 | \makeindex
23 |
24 | \makeatletter
25 | \def\PYG@reset{\let\PYG@it=\relax \let\PYG@bf=\relax%
26 | \let\PYG@ul=\relax \let\PYG@tc=\relax%
27 | \let\PYG@bc=\relax \let\PYG@ff=\relax}
28 | \def\PYG@tok#1{\csname PYG@tok@#1\endcsname}
29 | \def\PYG@toks#1+{\ifx\relax#1\empty\else%
30 | \PYG@tok{#1}\expandafter\PYG@toks\fi}
31 | \def\PYG@do#1{\PYG@bc{\PYG@tc{\PYG@ul{%
32 | \PYG@it{\PYG@bf{\PYG@ff{#1}}}}}}}
33 | \def\PYG#1#2{\PYG@reset\PYG@toks#1+\relax+\PYG@do{#2}}
34 |
35 | \expandafter\def\csname PYG@tok@gd\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.63,0.00,0.00}{##1}}}
36 | \expandafter\def\csname PYG@tok@gu\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.50,0.00,0.50}{##1}}}
37 | \expandafter\def\csname PYG@tok@gt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.27,0.87}{##1}}}
38 | \expandafter\def\csname PYG@tok@gs\endcsname{\let\PYG@bf=\textbf}
39 | \expandafter\def\csname PYG@tok@gr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{1.00,0.00,0.00}{##1}}}
40 | \expandafter\def\csname PYG@tok@cm\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
41 | \expandafter\def\csname PYG@tok@vg\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
42 | \expandafter\def\csname PYG@tok@m\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
43 | \expandafter\def\csname PYG@tok@mh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
44 | \expandafter\def\csname PYG@tok@cs\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}\def\PYG@bc##1{\setlength{\fboxsep}{0pt}\colorbox[rgb]{1.00,0.94,0.94}{\strut ##1}}}
45 | \expandafter\def\csname PYG@tok@ge\endcsname{\let\PYG@it=\textit}
46 | \expandafter\def\csname PYG@tok@vc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
47 | \expandafter\def\csname PYG@tok@il\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
48 | \expandafter\def\csname PYG@tok@go\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.20,0.20,0.20}{##1}}}
49 | \expandafter\def\csname PYG@tok@cp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
50 | \expandafter\def\csname PYG@tok@gi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.63,0.00}{##1}}}
51 | \expandafter\def\csname PYG@tok@gh\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.00,0.50}{##1}}}
52 | \expandafter\def\csname PYG@tok@ni\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.84,0.33,0.22}{##1}}}
53 | \expandafter\def\csname PYG@tok@nl\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.13,0.44}{##1}}}
54 | \expandafter\def\csname PYG@tok@nn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}}
55 | \expandafter\def\csname PYG@tok@no\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.38,0.68,0.84}{##1}}}
56 | \expandafter\def\csname PYG@tok@na\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
57 | \expandafter\def\csname PYG@tok@nb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
58 | \expandafter\def\csname PYG@tok@nc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.05,0.52,0.71}{##1}}}
59 | \expandafter\def\csname PYG@tok@nd\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.33,0.33,0.33}{##1}}}
60 | \expandafter\def\csname PYG@tok@ne\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
61 | \expandafter\def\csname PYG@tok@nf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.49}{##1}}}
62 | \expandafter\def\csname PYG@tok@si\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.44,0.63,0.82}{##1}}}
63 | \expandafter\def\csname PYG@tok@s2\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
64 | \expandafter\def\csname PYG@tok@vi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
65 | \expandafter\def\csname PYG@tok@nt\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.02,0.16,0.45}{##1}}}
66 | \expandafter\def\csname PYG@tok@nv\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.38,0.84}{##1}}}
67 | \expandafter\def\csname PYG@tok@s1\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
68 | \expandafter\def\csname PYG@tok@gp\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}}
69 | \expandafter\def\csname PYG@tok@sh\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
70 | \expandafter\def\csname PYG@tok@ow\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
71 | \expandafter\def\csname PYG@tok@sx\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.78,0.36,0.04}{##1}}}
72 | \expandafter\def\csname PYG@tok@bp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
73 | \expandafter\def\csname PYG@tok@c1\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
74 | \expandafter\def\csname PYG@tok@kc\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
75 | \expandafter\def\csname PYG@tok@c\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.50,0.56}{##1}}}
76 | \expandafter\def\csname PYG@tok@mf\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
77 | \expandafter\def\csname PYG@tok@err\endcsname{\def\PYG@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{1.00,0.00,0.00}{1,1,1}{\strut ##1}}}
78 | \expandafter\def\csname PYG@tok@kd\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
79 | \expandafter\def\csname PYG@tok@ss\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.32,0.47,0.09}{##1}}}
80 | \expandafter\def\csname PYG@tok@sr\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.14,0.33,0.53}{##1}}}
81 | \expandafter\def\csname PYG@tok@mo\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
82 | \expandafter\def\csname PYG@tok@mi\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.13,0.50,0.31}{##1}}}
83 | \expandafter\def\csname PYG@tok@kn\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
84 | \expandafter\def\csname PYG@tok@o\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.40,0.40,0.40}{##1}}}
85 | \expandafter\def\csname PYG@tok@kr\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
86 | \expandafter\def\csname PYG@tok@s\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
87 | \expandafter\def\csname PYG@tok@kp\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
88 | \expandafter\def\csname PYG@tok@w\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.73,0.73,0.73}{##1}}}
89 | \expandafter\def\csname PYG@tok@kt\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.56,0.13,0.00}{##1}}}
90 | \expandafter\def\csname PYG@tok@sc\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
91 | \expandafter\def\csname PYG@tok@sb\endcsname{\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
92 | \expandafter\def\csname PYG@tok@k\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.00,0.44,0.13}{##1}}}
93 | \expandafter\def\csname PYG@tok@se\endcsname{\let\PYG@bf=\textbf\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
94 | \expandafter\def\csname PYG@tok@sd\endcsname{\let\PYG@it=\textit\def\PYG@tc##1{\textcolor[rgb]{0.25,0.44,0.63}{##1}}}
95 |
96 | \def\PYGZbs{\char`\\}
97 | \def\PYGZus{\char`\_}
98 | \def\PYGZob{\char`\{}
99 | \def\PYGZcb{\char`\}}
100 | \def\PYGZca{\char`\^}
101 | \def\PYGZam{\char`\&}
102 | \def\PYGZlt{\char`\<}
103 | \def\PYGZgt{\char`\>}
104 | \def\PYGZsh{\char`\#}
105 | \def\PYGZpc{\char`\%}
106 | \def\PYGZdl{\char`\$}
107 | \def\PYGZhy{\char`\-}
108 | \def\PYGZsq{\char`\'}
109 | \def\PYGZdq{\char`\"}
110 | \def\PYGZti{\char`\~}
111 | % for compatibility with earlier versions
112 | \def\PYGZat{@}
113 | \def\PYGZlb{[}
114 | \def\PYGZrb{]}
115 | \makeatother
116 |
117 | \begin{document}
118 |
119 | \maketitle
120 | \tableofcontents
121 | \phantomsection\label{index::doc}
122 |
123 |
124 | Contents:
125 |
126 |
127 | \chapter{Indices and tables}
128 | \label{index:indices-and-tables}\label{index:welcome-to-online-library-management-system-s-documentation}\begin{itemize}
129 | \item {}
130 | \emph{genindex}
131 |
132 | \item {}
133 | \emph{modindex}
134 |
135 | \item {}
136 | \emph{search}
137 |
138 | \end{itemize}
139 |
140 |
141 |
142 | \renewcommand{\indexname}{Index}
143 | \printindex
144 | \end{document}
145 |
--------------------------------------------------------------------------------
/doc/_build/latex/onlinelibrarymanagementsystem.toc:
--------------------------------------------------------------------------------
1 | \select@language {english}
2 | \contentsline {chapter}{\numberline {1}Indices and tables}{3}{chapter.1}
3 |
--------------------------------------------------------------------------------
/doc/_build/latex/python.ist:
--------------------------------------------------------------------------------
1 | line_max 100
2 | headings_flag 1
3 | heading_prefix " \\bigletter "
4 |
5 | preamble "\\begin{theindex}
6 | \\def\\bigletter#1{{\\Large\\sffamily#1}\\nopagebreak\\vspace{1mm}}
7 |
8 | "
9 |
10 | symhead_positive "{Symbols}"
11 | numhead_positive "{Numbers}"
12 |
--------------------------------------------------------------------------------
/doc/_build/latex/sphinx.sty:
--------------------------------------------------------------------------------
1 | %
2 | % sphinx.sty
3 | %
4 | % Adapted from the old python.sty, mostly written by Fred Drake,
5 | % by Georg Brandl.
6 | %
7 |
8 | \NeedsTeXFormat{LaTeX2e}[1995/12/01]
9 | \ProvidesPackage{sphinx}[2010/01/15 LaTeX package (Sphinx markup)]
10 |
11 | \@ifclassloaded{memoir}{}{\RequirePackage{fancyhdr}}
12 |
13 | \RequirePackage{textcomp}
14 | \RequirePackage{fancybox}
15 | \RequirePackage{titlesec}
16 | \RequirePackage{tabulary}
17 | \RequirePackage{amsmath} % for \text
18 | \RequirePackage{makeidx}
19 | \RequirePackage{framed}
20 | \RequirePackage{ifthen}
21 | \RequirePackage{color}
22 | % For highlighted code.
23 | \RequirePackage{fancyvrb}
24 | % For table captions.
25 | \RequirePackage{threeparttable}
26 | % Handle footnotes in tables.
27 | \RequirePackage{footnote}
28 | \makesavenoteenv{tabulary}
29 | % For floating figures in the text.
30 | \RequirePackage{wrapfig}
31 | % Separate paragraphs by space by default.
32 | \RequirePackage{parskip}
33 | % For parsed-literal blocks.
34 | \RequirePackage{alltt}
35 |
36 | % Redefine these colors to your liking in the preamble.
37 | \definecolor{TitleColor}{rgb}{0.126,0.263,0.361}
38 | \definecolor{InnerLinkColor}{rgb}{0.208,0.374,0.486}
39 | \definecolor{OuterLinkColor}{rgb}{0.216,0.439,0.388}
40 | % Redefine these colors to something not white if you want to have colored
41 | % background and border for code examples.
42 | \definecolor{VerbatimColor}{rgb}{1,1,1}
43 | \definecolor{VerbatimBorderColor}{rgb}{1,1,1}
44 |
45 | % Uncomment these two lines to ignore the paper size and make the page
46 | % size more like a typical published manual.
47 | %\renewcommand{\paperheight}{9in}
48 | %\renewcommand{\paperwidth}{8.5in} % typical squarish manual
49 | %\renewcommand{\paperwidth}{7in} % O'Reilly ``Programmming Python''
50 |
51 | % use pdfoutput for pTeX and dvipdfmx
52 | \ifx\kanjiskip\undefined\else
53 | \ifx\Gin@driver{dvipdfmx.def}\undefined\else
54 | \newcount\pdfoutput\pdfoutput=0
55 | \fi
56 | \fi
57 |
58 | % For graphicx, check if we are compiling under latex or pdflatex.
59 | \ifx\pdftexversion\undefined
60 | \usepackage{graphicx}
61 | \else
62 | \usepackage[pdftex]{graphicx}
63 | \fi
64 |
65 | % for PDF output, use colors and maximal compression
66 | \newif\ifsphinxpdfoutput\sphinxpdfoutputfalse
67 | \ifx\pdfoutput\undefined\else\ifcase\pdfoutput
68 | \let\py@NormalColor\relax
69 | \let\py@TitleColor\relax
70 | \else
71 | \sphinxpdfoutputtrue
72 | \input{pdfcolor}
73 | \def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}}
74 | \def\py@TitleColor{\color{TitleColor}}
75 | \pdfcompresslevel=9
76 | \fi\fi
77 |
78 | % XeLaTeX can do colors, too
79 | \ifx\XeTeXrevision\undefined\else
80 | \def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}}
81 | \def\py@TitleColor{\color{TitleColor}}
82 | \fi
83 |
84 | % Increase printable page size (copied from fullpage.sty)
85 | \topmargin 0pt
86 | \advance \topmargin by -\headheight
87 | \advance \topmargin by -\headsep
88 |
89 | % attempt to work a little better for A4 users
90 | \textheight \paperheight
91 | \advance\textheight by -2in
92 |
93 | \oddsidemargin 0pt
94 | \evensidemargin 0pt
95 | %\evensidemargin -.25in % for ``manual size'' documents
96 | \marginparwidth 0.5in
97 |
98 | \textwidth \paperwidth
99 | \advance\textwidth by -2in
100 |
101 |
102 | % Style parameters and macros used by most documents here
103 | \raggedbottom
104 | \sloppy
105 | \hbadness = 5000 % don't print trivial gripes
106 |
107 | \pagestyle{empty} % start this way
108 |
109 | % Use this to set the font family for headers and other decor:
110 | \newcommand{\py@HeaderFamily}{\sffamily\bfseries}
111 |
112 | % Redefine the 'normal' header/footer style when using "fancyhdr" package:
113 | \@ifundefined{fancyhf}{}{
114 | % Use \pagestyle{normal} as the primary pagestyle for text.
115 | \fancypagestyle{normal}{
116 | \fancyhf{}
117 | \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
118 | \fancyfoot[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}}
119 | \fancyfoot[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}}
120 | \fancyhead[LE,RO]{{\py@HeaderFamily \@title, \py@release}}
121 | \renewcommand{\headrulewidth}{0.4pt}
122 | \renewcommand{\footrulewidth}{0.4pt}
123 | % define chaptermark with \@chappos when \@chappos is available for Japanese
124 | \ifx\@chappos\undefined\else
125 | \def\chaptermark##1{\markboth{\@chapapp\space\thechapter\space\@chappos\space ##1}{}}
126 | \fi
127 | }
128 | % Update the plain style so we get the page number & footer line,
129 | % but not a chapter or section title. This is to keep the first
130 | % page of a chapter and the blank page between chapters `clean.'
131 | \fancypagestyle{plain}{
132 | \fancyhf{}
133 | \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}}
134 | \renewcommand{\headrulewidth}{0pt}
135 | \renewcommand{\footrulewidth}{0.4pt}
136 | }
137 | }
138 |
139 | % Some custom font markup commands.
140 | %
141 | \newcommand{\strong}[1]{{\textbf{#1}}}
142 | \newcommand{\code}[1]{\texttt{#1}}
143 | \newcommand{\bfcode}[1]{\code{\bfseries#1}}
144 | \newcommand{\email}[1]{\textsf{#1}}
145 |
146 | % Redefine the Verbatim environment to allow border and background colors.
147 | % The original environment is still used for verbatims within tables.
148 | \let\OriginalVerbatim=\Verbatim
149 | \let\endOriginalVerbatim=\endVerbatim
150 |
151 | % Play with vspace to be able to keep the indentation.
152 | \newlength\distancetoright
153 | \def\mycolorbox#1{%
154 | \setlength\distancetoright{\linewidth}%
155 | \advance\distancetoright -\@totalleftmargin %
156 | \fcolorbox{VerbatimBorderColor}{VerbatimColor}{%
157 | \begin{minipage}{\distancetoright}%
158 | #1
159 | \end{minipage}%
160 | }%
161 | }
162 | \def\FrameCommand{\mycolorbox}
163 |
164 | \renewcommand{\Verbatim}[1][1]{%
165 | % list starts new par, but we don't want it to be set apart vertically
166 | \bgroup\parskip=0pt%
167 | \smallskip%
168 | % The list environement is needed to control perfectly the vertical
169 | % space.
170 | \list{}{%
171 | \setlength\parskip{0pt}%
172 | \setlength\itemsep{0ex}%
173 | \setlength\topsep{0ex}%
174 | \setlength\partopsep{0pt}%
175 | \setlength\leftmargin{0pt}%
176 | }%
177 | \item\MakeFramed {\FrameRestore}%
178 | \small%
179 | \OriginalVerbatim[#1]%
180 | }
181 | \renewcommand{\endVerbatim}{%
182 | \endOriginalVerbatim%
183 | \endMakeFramed%
184 | \endlist%
185 | % close group to restore \parskip
186 | \egroup%
187 | }
188 |
189 |
190 | % \moduleauthor{name}{email}
191 | \newcommand{\moduleauthor}[2]{}
192 |
193 | % \sectionauthor{name}{email}
194 | \newcommand{\sectionauthor}[2]{}
195 |
196 | % Augment the sectioning commands used to get our own font family in place,
197 | % and reset some internal data items:
198 | \titleformat{\section}{\Large\py@HeaderFamily}%
199 | {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}
200 | \titleformat{\subsection}{\large\py@HeaderFamily}%
201 | {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
202 | \titleformat{\subsubsection}{\py@HeaderFamily}%
203 | {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
204 | \titleformat{\paragraph}{\small\py@HeaderFamily}%
205 | {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}
206 |
207 | % {fulllineitems} is the main environment for object descriptions.
208 | %
209 | \newcommand{\py@itemnewline}[1]{%
210 | \@tempdima\linewidth%
211 | \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}%
212 | }
213 |
214 | \newenvironment{fulllineitems}{
215 | \begin{list}{}{\labelwidth \leftmargin \labelsep 0pt
216 | \rightmargin 0pt \topsep -\parskip \partopsep \parskip
217 | \itemsep -\parsep
218 | \let\makelabel=\py@itemnewline}
219 | }{\end{list}}
220 |
221 | % \optional is used for ``[, arg]``, i.e. desc_optional nodes.
222 | \newcommand{\optional}[1]{%
223 | {\textnormal{\Large[}}{#1}\hspace{0.5mm}{\textnormal{\Large]}}}
224 |
225 | \newlength{\py@argswidth}
226 | \newcommand{\py@sigparams}[2]{%
227 | \parbox[t]{\py@argswidth}{#1\code{)}#2}}
228 | \newcommand{\pysigline}[1]{\item[#1]\nopagebreak}
229 | \newcommand{\pysiglinewithargsret}[3]{%
230 | \settowidth{\py@argswidth}{#1\code{(}}%
231 | \addtolength{\py@argswidth}{-2\py@argswidth}%
232 | \addtolength{\py@argswidth}{\linewidth}%
233 | \item[#1\code{(}\py@sigparams{#2}{#3}]}
234 |
235 | % Production lists
236 | %
237 | \newenvironment{productionlist}{
238 | % \def\optional##1{{\Large[}##1{\Large]}}
239 | \def\production##1##2{\\\code{##1}&::=&\code{##2}}
240 | \def\productioncont##1{\\& &\code{##1}}
241 | \parindent=2em
242 | \indent
243 | \setlength{\LTpre}{0pt}
244 | \setlength{\LTpost}{0pt}
245 | \begin{longtable}[l]{lcl}
246 | }{%
247 | \end{longtable}
248 | }
249 |
250 | % Notices / Admonitions
251 | %
252 | \newlength{\py@noticelength}
253 |
254 | \newcommand{\py@heavybox}{
255 | \setlength{\fboxrule}{1pt}
256 | \setlength{\fboxsep}{6pt}
257 | \setlength{\py@noticelength}{\linewidth}
258 | \addtolength{\py@noticelength}{-2\fboxsep}
259 | \addtolength{\py@noticelength}{-2\fboxrule}
260 | %\setlength{\shadowsize}{3pt}
261 | \noindent\Sbox
262 | \minipage{\py@noticelength}
263 | }
264 | \newcommand{\py@endheavybox}{
265 | \endminipage
266 | \endSbox
267 | \fbox{\TheSbox}
268 | }
269 |
270 | \newcommand{\py@lightbox}{{%
271 | \setlength\parskip{0pt}\par
272 | \noindent\rule[0ex]{\linewidth}{0.5pt}%
273 | \par\noindent\vspace{-0.5ex}%
274 | }}
275 | \newcommand{\py@endlightbox}{{%
276 | \setlength{\parskip}{0pt}%
277 | \par\noindent\rule[0.5ex]{\linewidth}{0.5pt}%
278 | \par\vspace{-0.5ex}%
279 | }}
280 |
281 | % Some are quite plain:
282 | \newcommand{\py@noticestart@note}{\py@lightbox}
283 | \newcommand{\py@noticeend@note}{\py@endlightbox}
284 | \newcommand{\py@noticestart@hint}{\py@lightbox}
285 | \newcommand{\py@noticeend@hint}{\py@endlightbox}
286 | \newcommand{\py@noticestart@important}{\py@lightbox}
287 | \newcommand{\py@noticeend@important}{\py@endlightbox}
288 | \newcommand{\py@noticestart@tip}{\py@lightbox}
289 | \newcommand{\py@noticeend@tip}{\py@endlightbox}
290 |
291 | % Others gets more visible distinction:
292 | \newcommand{\py@noticestart@warning}{\py@heavybox}
293 | \newcommand{\py@noticeend@warning}{\py@endheavybox}
294 | \newcommand{\py@noticestart@caution}{\py@heavybox}
295 | \newcommand{\py@noticeend@caution}{\py@endheavybox}
296 | \newcommand{\py@noticestart@attention}{\py@heavybox}
297 | \newcommand{\py@noticeend@attention}{\py@endheavybox}
298 | \newcommand{\py@noticestart@danger}{\py@heavybox}
299 | \newcommand{\py@noticeend@danger}{\py@endheavybox}
300 | \newcommand{\py@noticestart@error}{\py@heavybox}
301 | \newcommand{\py@noticeend@error}{\py@endheavybox}
302 |
303 | \newenvironment{notice}[2]{
304 | \def\py@noticetype{#1}
305 | \csname py@noticestart@#1\endcsname
306 | \strong{#2}
307 | }{\csname py@noticeend@\py@noticetype\endcsname}
308 |
309 | % Allow the release number to be specified independently of the
310 | % \date{}. This allows the date to reflect the document's date and
311 | % release to specify the release that is documented.
312 | %
313 | \newcommand{\py@release}{}
314 | \newcommand{\version}{}
315 | \newcommand{\shortversion}{}
316 | \newcommand{\releaseinfo}{}
317 | \newcommand{\releasename}{Release}
318 | \newcommand{\release}[1]{%
319 | \renewcommand{\py@release}{\releasename\space\version}%
320 | \renewcommand{\version}{#1}}
321 | \newcommand{\setshortversion}[1]{%
322 | \renewcommand{\shortversion}{#1}}
323 | \newcommand{\setreleaseinfo}[1]{%
324 | \renewcommand{\releaseinfo}{#1}}
325 |
326 | % Allow specification of the author's address separately from the
327 | % author's name. This can be used to format them differently, which
328 | % is a good thing.
329 | %
330 | \newcommand{\py@authoraddress}{}
331 | \newcommand{\authoraddress}[1]{\renewcommand{\py@authoraddress}{#1}}
332 |
333 | % This sets up the fancy chapter headings that make the documents look
334 | % at least a little better than the usual LaTeX output.
335 | %
336 | \@ifundefined{ChTitleVar}{}{
337 | \ChNameVar{\raggedleft\normalsize\py@HeaderFamily}
338 | \ChNumVar{\raggedleft \bfseries\Large\py@HeaderFamily}
339 | \ChTitleVar{\raggedleft \textrm{\Huge\py@HeaderFamily}}
340 | % This creates chapter heads without the leading \vspace*{}:
341 | \def\@makechapterhead#1{%
342 | {\parindent \z@ \raggedright \normalfont
343 | \ifnum \c@secnumdepth >\m@ne
344 | \DOCH
345 | \fi
346 | \interlinepenalty\@M
347 | \DOTI{#1}
348 | }
349 | }
350 | }
351 |
352 | % Redefine description environment so that it is usable inside fulllineitems.
353 | %
354 | \renewcommand{\description}{%
355 | \list{}{\labelwidth\z@%
356 | \itemindent-\leftmargin%
357 | \labelsep5pt%
358 | \let\makelabel=\descriptionlabel}}
359 |
360 | % Definition lists; requested by AMK for HOWTO documents. Probably useful
361 | % elsewhere as well, so keep in in the general style support.
362 | %
363 | \newenvironment{definitions}{%
364 | \begin{description}%
365 | \def\term##1{\item[##1]\mbox{}\\*[0mm]}
366 | }{%
367 | \end{description}%
368 | }
369 |
370 | % Tell TeX about pathological hyphenation cases:
371 | \hyphenation{Base-HTTP-Re-quest-Hand-ler}
372 |
373 |
374 | % The following is stuff copied from docutils' latex writer.
375 | %
376 | \newcommand{\optionlistlabel}[1]{\bf #1 \hfill}
377 | \newenvironment{optionlist}[1]
378 | {\begin{list}{}
379 | {\setlength{\labelwidth}{#1}
380 | \setlength{\rightmargin}{1cm}
381 | \setlength{\leftmargin}{\rightmargin}
382 | \addtolength{\leftmargin}{\labelwidth}
383 | \addtolength{\leftmargin}{\labelsep}
384 | \renewcommand{\makelabel}{\optionlistlabel}}
385 | }{\end{list}}
386 |
387 | \newlength{\lineblockindentation}
388 | \setlength{\lineblockindentation}{2.5em}
389 | \newenvironment{lineblock}[1]
390 | {\begin{list}{}
391 | {\setlength{\partopsep}{\parskip}
392 | \addtolength{\partopsep}{\baselineskip}
393 | \topsep0pt\itemsep0.15\baselineskip\parsep0pt
394 | \leftmargin#1}
395 | \raggedright}
396 | {\end{list}}
397 |
398 | % Redefine includgraphics for avoiding images larger than the screen size
399 | % If the size is not specified.
400 | \let\py@Oldincludegraphics\includegraphics
401 |
402 | \newbox\image@box%
403 | \newdimen\image@width%
404 | \renewcommand\includegraphics[2][\@empty]{%
405 | \ifx#1\@empty%
406 | \setbox\image@box=\hbox{\py@Oldincludegraphics{#2}}%
407 | \image@width\wd\image@box%
408 | \ifdim \image@width>\linewidth%
409 | \setbox\image@box=\hbox{\py@Oldincludegraphics[width=\linewidth]{#2}}%
410 | \box\image@box%
411 | \else%
412 | \py@Oldincludegraphics{#2}%
413 | \fi%
414 | \else%
415 | \py@Oldincludegraphics[#1]{#2}%
416 | \fi%
417 | }
418 |
419 | % to make pdf with correct encoded bookmarks in Japanese
420 | % this should precede the hyperref package
421 | \ifx\kanjiskip\undefined\else
422 | \usepackage{atbegshi}
423 | \ifx\ucs\undefined
424 | \ifnum 42146=\euc"A4A2
425 | \AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
426 | \else
427 | \AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
428 | \fi
429 | \else
430 | \AtBeginShipoutFirst{\special{pdf:tounicode UTF8-UCS2}}
431 | \fi
432 | \fi
433 |
434 | % Include hyperref last.
435 | \RequirePackage[colorlinks,breaklinks,
436 | linkcolor=InnerLinkColor,filecolor=OuterLinkColor,
437 | menucolor=OuterLinkColor,urlcolor=OuterLinkColor,
438 | citecolor=InnerLinkColor]{hyperref}
439 | % Fix anchor placement for figures with captions.
440 | % (Note: we don't use a package option here; instead, we give an explicit
441 | % \capstart for figures that actually have a caption.)
442 | \RequirePackage{hypcap}
443 |
444 | % From docutils.writers.latex2e
445 | \providecommand{\DUspan}[2]{%
446 | {% group ("span") to limit the scope of styling commands
447 | \@for\node@class@name:=#1\do{%
448 | \ifcsname docutilsrole\node@class@name\endcsname%
449 | \csname docutilsrole\node@class@name\endcsname%
450 | \fi%
451 | }%
452 | {#2}% node content
453 | }% close "span"
454 | }
455 |
456 | \providecommand*{\DUprovidelength}[2]{
457 | \ifthenelse{\isundefined{#1}}{\newlength{#1}\setlength{#1}{#2}}{}
458 | }
459 |
460 | \DUprovidelength{\DUlineblockindent}{2.5em}
461 | \ifthenelse{\isundefined{\DUlineblock}}{
462 | \newenvironment{DUlineblock}[1]{%
463 | \list{}{\setlength{\partopsep}{\parskip}
464 | \addtolength{\partopsep}{\baselineskip}
465 | \setlength{\topsep}{0pt}
466 | \setlength{\itemsep}{0.15\baselineskip}
467 | \setlength{\parsep}{0pt}
468 | \setlength{\leftmargin}{#1}}
469 | \raggedright
470 | }
471 | {\endlist}
472 | }{}
473 |
474 |
475 | % From footmisc.sty: allows footnotes in titles
476 | \let\FN@sf@@footnote\footnote
477 | \def\footnote{\ifx\protect\@typeset@protect
478 | \expandafter\FN@sf@@footnote
479 | \else
480 | \expandafter\FN@sf@gobble@opt
481 | \fi
482 | }
483 | \edef\FN@sf@gobble@opt{\noexpand\protect
484 | \expandafter\noexpand\csname FN@sf@gobble@opt \endcsname}
485 | \expandafter\def\csname FN@sf@gobble@opt \endcsname{%
486 | \@ifnextchar[%]
487 | \FN@sf@gobble@twobracket
488 | \@gobble
489 | }
490 | \def\FN@sf@gobble@twobracket[#1]#2{}
491 |
492 | % adjust the margins for footer,
493 | % this works with the jsclasses only (Japanese standard document classes)
494 | \ifx\@jsc@uplatextrue\undefined\else
495 | \hypersetup{setpagesize=false}
496 | \setlength\footskip{2\baselineskip}
497 | \addtolength{\textheight}{-2\baselineskip}
498 | \fi
499 |
500 | % fix the double index and bibliography on the table of contents
501 | % in jsclasses (Japanese standard document classes)
502 | \ifx\@jsc@uplatextrue\undefined\else
503 | \renewcommand{\theindex}{
504 | \cleardoublepage
505 | \phantomsection
506 | \py@OldTheindex
507 | }
508 | \renewcommand{\thebibliography}[1]{
509 | \cleardoublepage
510 | \phantomsection
511 | \py@OldThebibliography{1}
512 | }
513 | \fi
514 |
515 | % disable \@chappos in Appendix in pTeX
516 | \ifx\kanjiskip\undefined\else
517 | \let\py@OldAppendix=\appendix
518 | \renewcommand{\appendix}{
519 | \py@OldAppendix
520 | \gdef\@chappos{}
521 | }
522 | \fi
523 |
--------------------------------------------------------------------------------
/doc/_build/latex/sphinxhowto.cls:
--------------------------------------------------------------------------------
1 | %
2 | % sphinxhowto.cls for Sphinx (http://sphinx-doc.org/)
3 | %
4 |
5 | \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6 | \ProvidesClass{sphinxhowto}[2009/06/02 Document class (Sphinx HOWTO)]
7 |
8 | % 'oneside' option overriding the 'twoside' default
9 | \newif\if@oneside
10 | \DeclareOption{oneside}{\@onesidetrue}
11 | % Pass remaining document options to the parent class.
12 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\sphinxdocclass}}
13 | \ProcessOptions\relax
14 |
15 | % Default to two-side document
16 | \if@oneside
17 | % nothing to do (oneside is the default)
18 | \else
19 | \PassOptionsToClass{twoside}{\sphinxdocclass}
20 | \fi
21 |
22 | \LoadClass{\sphinxdocclass}
23 |
24 | % Set some sane defaults for section numbering depth and TOC depth. You can
25 | % reset these counters in your preamble.
26 | %
27 | \setcounter{secnumdepth}{2}
28 |
29 | % Change the title page to look a bit better, and fit in with the fncychap
30 | % ``Bjarne'' style a bit better.
31 | %
32 | \renewcommand{\maketitle}{
33 | \rule{\textwidth}{1pt}
34 | \ifsphinxpdfoutput
35 | \begingroup
36 | % These \defs are required to deal with multi-line authors; it
37 | % changes \\ to ', ' (comma-space), making it pass muster for
38 | % generating document info in the PDF file.
39 | \def\\{, }
40 | \def\and{and }
41 | \pdfinfo{
42 | /Author (\@author)
43 | /Title (\@title)
44 | }
45 | \endgroup
46 | \fi
47 | \begin{flushright}
48 | \sphinxlogo%
49 | {\rm\Huge\py@HeaderFamily \@title} \par
50 | {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
51 | \vspace{25pt}
52 | {\Large\py@HeaderFamily
53 | \begin{tabular}[t]{c}
54 | \@author
55 | \end{tabular}} \par
56 | \vspace{25pt}
57 | \@date \par
58 | \py@authoraddress \par
59 | \end{flushright}
60 | \@thanks
61 | \setcounter{footnote}{0}
62 | \let\thanks\relax\let\maketitle\relax
63 | %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
64 | }
65 |
66 | \let\py@OldTableofcontents=\tableofcontents
67 | \renewcommand{\tableofcontents}{
68 | \begingroup
69 | \parskip = 0mm
70 | \py@OldTableofcontents
71 | \endgroup
72 | \rule{\textwidth}{1pt}
73 | \vspace{12pt}
74 | }
75 |
76 | \@ifundefined{fancyhf}{
77 | \pagestyle{plain}}{
78 | \pagestyle{normal}} % start this way; change for
79 | \pagenumbering{arabic} % ToC & chapters
80 |
81 | \thispagestyle{empty}
82 |
83 | % Fix the bibliography environment to add an entry to the Table of
84 | % Contents.
85 | % For an article document class this environment is a section,
86 | % so no page break before it.
87 | \let\py@OldThebibliography=\thebibliography
88 | \renewcommand{\thebibliography}[1]{
89 | \phantomsection
90 | \py@OldThebibliography{1}
91 | \addcontentsline{toc}{section}{\bibname}
92 | }
93 |
94 | % Same for the indices.
95 | % The memoir class already does this, so we don't duplicate it in that case.
96 | %
97 | \@ifclassloaded{memoir}{}{
98 | \let\py@OldTheindex=\theindex
99 | \renewcommand{\theindex}{
100 | \phantomsection
101 | \py@OldTheindex
102 | \addcontentsline{toc}{section}{\indexname}
103 | }
104 | }
105 |
--------------------------------------------------------------------------------
/doc/_build/latex/sphinxmanual.cls:
--------------------------------------------------------------------------------
1 | %
2 | % sphinxmanual.cls for Sphinx (http://sphinx-doc.org/)
3 | %
4 |
5 | \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6 | \ProvidesClass{sphinxmanual}[2009/06/02 Document class (Sphinx manual)]
7 |
8 | % chapters starting at odd pages (overridden by 'openany' document option)
9 | \PassOptionsToClass{openright}{\sphinxdocclass}
10 |
11 | % 'oneside' option overriding the 'twoside' default
12 | \newif\if@oneside
13 | \DeclareOption{oneside}{\@onesidetrue}
14 | % Pass remaining document options to the parent class.
15 | \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\sphinxdocclass}}
16 | \ProcessOptions\relax
17 |
18 | % Defaults two-side document
19 | \if@oneside
20 | % nothing to do (oneside is the default)
21 | \else
22 | \PassOptionsToClass{twoside}{\sphinxdocclass}
23 | \fi
24 |
25 | \LoadClass{\sphinxdocclass}
26 |
27 | % Set some sane defaults for section numbering depth and TOC depth. You can
28 | % reset these counters in your preamble.
29 | %
30 | \setcounter{secnumdepth}{2}
31 | \setcounter{tocdepth}{1}
32 |
33 | % Change the title page to look a bit better, and fit in with the fncychap
34 | % ``Bjarne'' style a bit better.
35 | %
36 | \renewcommand{\maketitle}{%
37 | \begin{titlepage}%
38 | \let\footnotesize\small
39 | \let\footnoterule\relax
40 | \rule{\textwidth}{1pt}%
41 | \ifsphinxpdfoutput
42 | \begingroup
43 | % These \defs are required to deal with multi-line authors; it
44 | % changes \\ to ', ' (comma-space), making it pass muster for
45 | % generating document info in the PDF file.
46 | \def\\{, }
47 | \def\and{and }
48 | \pdfinfo{
49 | /Author (\@author)
50 | /Title (\@title)
51 | }
52 | \endgroup
53 | \fi
54 | \begin{flushright}%
55 | \sphinxlogo%
56 | {\rm\Huge\py@HeaderFamily \@title \par}%
57 | {\em\LARGE\py@HeaderFamily \py@release\releaseinfo \par}
58 | \vfill
59 | {\LARGE\py@HeaderFamily
60 | \begin{tabular}[t]{c}
61 | \@author
62 | \end{tabular}
63 | \par}
64 | \vfill\vfill
65 | {\large
66 | \@date \par
67 | \vfill
68 | \py@authoraddress \par
69 | }%
70 | \end{flushright}%\par
71 | \@thanks
72 | \end{titlepage}%
73 | \cleardoublepage%
74 | \setcounter{footnote}{0}%
75 | \let\thanks\relax\let\maketitle\relax
76 | %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
77 | }
78 |
79 |
80 | % Catch the end of the {abstract} environment, but here make sure the abstract
81 | % is followed by a blank page if the 'openright' option is used.
82 | %
83 | \let\py@OldEndAbstract=\endabstract
84 | \renewcommand{\endabstract}{
85 | \if@openright
86 | \ifodd\value{page}
87 | \typeout{Adding blank page after the abstract.}
88 | \vfil\pagebreak
89 | \fi
90 | \fi
91 | \py@OldEndAbstract
92 | }
93 |
94 | % This wraps the \tableofcontents macro with all the magic to get the spacing
95 | % right and have the right number of pages if the 'openright' option has been
96 | % used. This eliminates a fair amount of crud in the individual document files.
97 | %
98 | \let\py@OldTableofcontents=\tableofcontents
99 | \renewcommand{\tableofcontents}{%
100 | \pagenumbering{roman}%
101 | \setcounter{page}{1}%
102 | \pagebreak%
103 | \pagestyle{plain}%
104 | {%
105 | \parskip = 0mm%
106 | \py@OldTableofcontents%
107 | \if@openright%
108 | \ifodd\value{page}%
109 | \typeout{Adding blank page after the table of contents.}%
110 | \pagebreak\hspace{0pt}%
111 | \fi%
112 | \fi%
113 | \cleardoublepage%
114 | }%
115 | \pagenumbering{arabic}%
116 | \@ifundefined{fancyhf}{}{\pagestyle{normal}}%
117 | }
118 | \pagenumbering{alph}
119 |
120 | % This is needed to get the width of the section # area wide enough in the
121 | % library reference. Doing it here keeps it the same for all the manuals.
122 | %
123 | \renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.6em}}
124 | \renewcommand*\l@subsection{\@dottedtocline{2}{4.1em}{3.5em}}
125 |
126 | % Fix the bibliography environment to add an entry to the Table of
127 | % Contents.
128 | % For a report document class this environment is a chapter.
129 | \let\py@OldThebibliography=\thebibliography
130 | \renewcommand{\thebibliography}[1]{
131 | \cleardoublepage
132 | \phantomsection
133 | \py@OldThebibliography{1}
134 | \addcontentsline{toc}{chapter}{\bibname}
135 | }
136 |
137 | % Same for the indices.
138 | % The memoir class already does this, so we don't duplicate it in that case.
139 | %
140 | \@ifclassloaded{memoir}{}{
141 | \let\py@OldTheindex=\theindex
142 | \renewcommand{\theindex}{
143 | \cleardoublepage
144 | \phantomsection
145 | \py@OldTheindex
146 | \addcontentsline{toc}{chapter}{\indexname}
147 | }
148 | }
149 |
--------------------------------------------------------------------------------
/doc/_build/latex/tabulary.sty:
--------------------------------------------------------------------------------
1 | %%
2 | %% This is file `tabulary.sty',
3 | %% generated with the docstrip utility.
4 | %%
5 | %% The original source files were:
6 | %%
7 | %% tabulary.dtx (with options: `package')
8 | %% DRAFT VERSION
9 | %%
10 | %% File `tabulary.dtx'.
11 | %% Copyright (C) 1995 1996 2003 2008 David Carlisle
12 | %% This file may be distributed under the terms of the LPPL.
13 | %% See 00readme.txt for details.
14 | %%
15 | \NeedsTeXFormat{LaTeX2e}
16 | \ProvidesPackage{tabulary}
17 | [2008/12/01 v0.9 tabulary package (DPC)]
18 | \RequirePackage{array}
19 | \catcode`\Z=14
20 | \DeclareOption{debugshow}{\catcode`\Z=9\relax}
21 | \ProcessOptions
22 | \def\arraybackslash{\let\\=\@arraycr}
23 | \def\@finalstrut#1{%
24 | \unskip\ifhmode\nobreak\fi\vrule\@width\z@\@height\z@\@depth\dp#1}
25 | \newcount\TY@count
26 | \def\tabulary{%
27 | \let\TY@final\tabular
28 | \let\endTY@final\endtabular
29 | \TY@tabular}
30 | \def\TY@tabular#1{%
31 | \edef\TY@{\@currenvir}%
32 | {\ifnum0=`}\fi
33 | \@ovxx\TY@linewidth
34 | \@ovyy\TY@tablewidth
35 | \count@\z@
36 | \@tempswatrue
37 | \@whilesw\if@tempswa\fi{%
38 | \advance\count@\@ne
39 | \expandafter\ifx\csname TY@F\the\count@\endcsname\relax
40 | \@tempswafalse
41 | \else
42 | \expandafter\let\csname TY@SF\the\count@\expandafter\endcsname
43 | \csname TY@F\the\count@\endcsname
44 | \global\expandafter\let\csname TY@F\the\count@\endcsname\relax
45 | \expandafter\let\csname TY@S\the\count@\expandafter\endcsname
46 | \csname TY@\the\count@\endcsname
47 | \fi}%
48 | \global\TY@count\@ne
49 | \TY@width\xdef{0pt}%
50 | \global\TY@tablewidth\z@
51 | \global\TY@linewidth#1\relax
52 | Z\message{^^J^^JTable^^J%
53 | Z Target Width: \the\TY@linewidth^^J%
54 | Z \string\tabcolsep: \the\tabcolsep\space
55 | Z \string\arrayrulewidth: \the\arrayrulewidth\space
56 | Z \string\doublerulesep: \the\doublerulesep^^J%
57 | Z \string\tymin: \the\tymin\space
58 | Z \string\tymax: \the\tymax^^J}%
59 | \let\@classz\TY@classz
60 | \let\verb\TX@verb
61 | \toks@{}\TY@get@body}
62 | \let\TY@@mkpream\@mkpream
63 | \def\TY@mkpream{%
64 | \def\@addamp{%
65 | \if@firstamp \@firstampfalse \else
66 | \global\advance\TY@count\@ne
67 | \edef\@preamble{\@preamble &}\fi
68 | \TY@width\xdef{0pt}}%
69 | \def\@acol{%
70 | \TY@subwidth\col@sep
71 | \@addtopreamble{\hskip\col@sep}}%
72 | \let\@arrayrule\TY@arrayrule
73 | \let\@classvi\TY@classvi
74 | \def\@classv{\save@decl
75 | \expandafter\NC@ecs\@nextchar\extracolsep{}\extracolsep\@@@
76 | \sbox\z@{\d@llarbegin\@nextchar\d@llarend}%
77 | \TY@subwidth{\wd\z@}%
78 | \@addtopreamble{\d@llarbegin\the@toks\the\count@\relax\d@llarend}%
79 | \prepnext@tok}%
80 | \global\let\@mkpream\TY@@mkpream
81 | \TY@@mkpream}
82 | \def\TY@arrayrule{%
83 | \TY@subwidth\arrayrulewidth
84 | \@addtopreamble \vline}
85 | \def\TY@classvi{\ifcase \@lastchclass
86 | \@acol \or
87 | \TY@subwidth\doublerulesep
88 | \@addtopreamble{\hskip \doublerulesep}\or
89 | \@acol \or
90 | \@classvii
91 | \fi}
92 | \def\TY@tab{%
93 | \setbox\z@\hbox\bgroup
94 | \let\[$\let\]$%
95 | \let\equation$\let\endequation$%
96 | \col@sep\tabcolsep
97 | \let\d@llarbegin\begingroup\let\d@llarend\endgroup
98 | \let\@mkpream\TY@mkpream
99 | \def\multicolumn##1##2##3{\multispan##1\relax}%
100 | \CT@start\TY@tabarray}
101 | \def\TY@tabarray{\@ifnextchar[{\TY@array}{\@array[t]}}
102 | \def\TY@array[#1]{\@array[t]}
103 | \def\TY@width#1{%
104 | \expandafter#1\csname TY@\the\TY@count\endcsname}
105 | \def\TY@subwidth#1{%
106 | \TY@width\dimen@
107 | \advance\dimen@-#1\relax
108 | \TY@width\xdef{\the\dimen@}%
109 | \global\advance\TY@linewidth-#1\relax}
110 | \def\endtabulary{%
111 | \gdef\@halignto{}%
112 | \expandafter\TY@tab\the\toks@
113 | \crcr\omit
114 | {\xdef\TY@save@row{}%
115 | \loop
116 | \advance\TY@count\m@ne
117 | \ifnum\TY@count>\z@
118 | \xdef\TY@save@row{\TY@save@row&\omit}%
119 | \repeat}\TY@save@row
120 | \endarray\global\setbox1=\lastbox\setbox0=\vbox{\unvbox1
121 | \unskip\global\setbox1=\lastbox}\egroup
122 | \dimen@\TY@linewidth
123 | \divide\dimen@\TY@count
124 | \ifdim\dimen@<\tymin
125 | \TY@warn{tymin too large (\the\tymin), resetting to \the\dimen@}%
126 | \tymin\dimen@
127 | \fi
128 | \setbox\tw@=\hbox{\unhbox\@ne
129 | \loop
130 | \@tempdima=\lastskip
131 | \ifdim\@tempdima>\z@
132 | Z \message{ecs=\the\@tempdima^^J}%
133 | \global\advance\TY@linewidth-\@tempdima
134 | \fi
135 | \unskip
136 | \setbox\tw@=\lastbox
137 | \ifhbox\tw@
138 | Z \message{Col \the\TY@count: Initial=\the\wd\tw@\space}%
139 | \ifdim\wd\tw@>\tymax
140 | \wd\tw@\tymax
141 | Z \message{> max\space}%
142 | Z \else
143 | Z \message{ \@spaces\space}%
144 | \fi
145 | \TY@width\dimen@
146 | Z \message{\the\dimen@\space}%
147 | \advance\dimen@\wd\tw@
148 | Z \message{Final=\the\dimen@\space}%
149 | \TY@width\xdef{\the\dimen@}%
150 | \ifdim\dimen@<\tymin
151 | Z \message{< tymin}%
152 | \global\advance\TY@linewidth-\dimen@
153 | \expandafter\xdef\csname TY@F\the\TY@count\endcsname
154 | {\the\dimen@}%
155 | \else
156 | \expandafter\ifx\csname TY@F\the\TY@count\endcsname\z@
157 | Z \message{***}%
158 | \global\advance\TY@linewidth-\dimen@
159 | \expandafter\xdef\csname TY@F\the\TY@count\endcsname
160 | {\the\dimen@}%
161 | \else
162 | Z \message{> tymin}%
163 | \global\advance\TY@tablewidth\dimen@
164 | \global\expandafter\let\csname TY@F\the\TY@count\endcsname
165 | \maxdimen
166 | \fi\fi
167 | \advance\TY@count\m@ne
168 | \repeat}%
169 | \TY@checkmin
170 | \TY@checkmin
171 | \TY@checkmin
172 | \TY@checkmin
173 | \TY@count\z@
174 | \let\TY@box\TY@box@v
175 | {\expandafter\TY@final\the\toks@\endTY@final}%
176 | \count@\z@
177 | \@tempswatrue
178 | \@whilesw\if@tempswa\fi{%
179 | \advance\count@\@ne
180 | \expandafter\ifx\csname TY@SF\the\count@\endcsname\relax
181 | \@tempswafalse
182 | \else
183 | \global\expandafter\let\csname TY@F\the\count@\expandafter\endcsname
184 | \csname TY@SF\the\count@\endcsname
185 | \global\expandafter\let\csname TY@\the\count@\expandafter\endcsname
186 | \csname TY@S\the\count@\endcsname
187 | \fi}%
188 | \TY@linewidth\@ovxx
189 | \TY@tablewidth\@ovyy
190 | \ifnum0=`{\fi}}
191 | \def\TY@checkmin{%
192 | \let\TY@checkmin\relax
193 | \ifdim\TY@tablewidth>\z@
194 | \Gscale@div\TY@ratio\TY@linewidth\TY@tablewidth
195 | \ifdim\TY@tablewidth <\TY@linewidth
196 | \def\TY@ratio{1}%
197 | \fi
198 | \else
199 | \TY@warn{No suitable columns!}%
200 | \def\TY@ratio{1}%
201 | \fi
202 | \count@\z@
203 | Z \message{^^JLine Width: \the\TY@linewidth,
204 | Z Natural Width: \the\TY@tablewidth,
205 | Z Ratio: \TY@ratio^^J}%
206 | \@tempdima\z@
207 | \loop
208 | \ifnum\count@<\TY@count
209 | \advance\count@\@ne
210 | \ifdim\csname TY@F\the\count@\endcsname>\tymin
211 | \dimen@\csname TY@\the\count@\endcsname
212 | \dimen@\TY@ratio\dimen@
213 | \ifdim\dimen@<\tymin
214 | Z \message{Column \the\count@\space ->}%
215 | \global\expandafter\let\csname TY@F\the\count@\endcsname\tymin
216 | \global\advance\TY@linewidth-\tymin
217 | \global\advance\TY@tablewidth-\csname TY@\the\count@\endcsname
218 | \let\TY@checkmin\TY@@checkmin
219 | \else
220 | \expandafter\xdef\csname TY@F\the\count@\endcsname{\the\dimen@}%
221 | \advance\@tempdima\csname TY@F\the\count@\endcsname
222 | \fi
223 | \fi
224 | Z \dimen@\csname TY@F\the\count@\endcsname\message{\the\dimen@, }%
225 | \repeat
226 | Z \message{^^JTotal:\the\@tempdima^^J}%
227 | }
228 | \let\TY@@checkmin\TY@checkmin
229 | \newdimen\TY@linewidth
230 | \def\tyformat{\everypar{{\nobreak\hskip\z@skip}}}
231 | \newdimen\tymin
232 | \tymin=10pt
233 | \newdimen\tymax
234 | \tymax=2\textwidth
235 | \def\@testpach{\@chclass
236 | \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
237 | \ifnum \@lastchclass=7 5 \else
238 | \ifnum \@lastchclass=8 \tw@ \else
239 | \ifnum \@lastchclass=9 \thr@@
240 | \else \z@
241 | \ifnum \@lastchclass = 10 \else
242 | \edef\@nextchar{\expandafter\string\@nextchar}%
243 | \@chnum
244 | \if \@nextchar c\z@ \else
245 | \if \@nextchar l\@ne \else
246 | \if \@nextchar r\tw@ \else
247 | \if \@nextchar C7 \else
248 | \if \@nextchar L8 \else
249 | \if \@nextchar R9 \else
250 | \if \@nextchar J10 \else
251 | \z@ \@chclass
252 | \if\@nextchar |\@ne \else
253 | \if \@nextchar !6 \else
254 | \if \@nextchar @7 \else
255 | \if \@nextchar <8 \else
256 | \if \@nextchar >9 \else
257 | 10
258 | \@chnum
259 | \if \@nextchar m\thr@@\else
260 | \if \@nextchar p4 \else
261 | \if \@nextchar b5 \else
262 | \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi\fi \fi \fi\fi \fi
263 | \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi \fi}
264 | \def\TY@classz{%
265 | \@classx
266 | \@tempcnta\count@
267 | \ifx\TY@box\TY@box@v
268 | \global\advance\TY@count\@ne
269 | \fi
270 | \let\centering c%
271 | \let\raggedright\noindent
272 | \let\raggedleft\indent
273 | \let\arraybackslash\relax
274 | \prepnext@tok
275 | \ifnum\@chnum<4
276 | \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@
277 | \fi
278 | \ifnum\@chnum=6
279 | \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@
280 | \fi
281 | \@addtopreamble{%
282 | \ifcase\@chnum
283 | \hfil \d@llarbegin\insert@column\d@llarend \hfil \or
284 | \kern\z@
285 | \d@llarbegin \insert@column \d@llarend \hfil \or
286 | \hfil\kern\z@ \d@llarbegin \insert@column \d@llarend \or
287 | $\vcenter\@startpbox{\@nextchar}\insert@column \@endpbox $\or
288 | \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
289 | \vbox \@startpbox{\@nextchar}\insert@column \@endpbox \or
290 | \d@llarbegin \insert@column \d@llarend \or% dubious "s" case
291 | \TY@box\centering\or
292 | \TY@box\raggedright\or
293 | \TY@box\raggedleft\or
294 | \TY@box\relax
295 | \fi}\prepnext@tok}
296 | \def\TY@box#1{%
297 | \ifx\centering#1%
298 | \hfil \d@llarbegin\insert@column\d@llarend \hfil \else
299 | \ifx\raggedright#1%
300 | \kern\z@%<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
301 | \d@llarbegin \insert@column \d@llarend \hfil \else
302 | \ifx\raggedleft#1%
303 | \hfil\kern\z@ \d@llarbegin \insert@column \d@llarend \else
304 | \ifx\relax#1%
305 | \d@llarbegin \insert@column \d@llarend
306 | \fi \fi \fi \fi}
307 | \def\TY@box@v#1{%
308 | \vtop \@startpbox{\csname TY@F\the\TY@count\endcsname}%
309 | #1\arraybackslash\tyformat
310 | \insert@column\@endpbox}
311 | \newdimen\TY@tablewidth
312 | \def\Gscale@div#1#2#3{%
313 | \setlength\dimen@{#3}%
314 | \ifdim\dimen@=\z@
315 | \PackageError{graphics}{Division by 0}\@eha
316 | \dimen@#2%
317 | \fi
318 | \edef\@tempd{\the\dimen@}%
319 | \setlength\dimen@{#2}%
320 | \count@65536\relax
321 | \ifdim\dimen@<\z@
322 | \dimen@-\dimen@
323 | \count@-\count@
324 | \fi
325 | \loop
326 | \ifdim\dimen@<8192\p@
327 | \dimen@\tw@\dimen@
328 | \divide\count@\tw@
329 | \repeat
330 | \dimen@ii=\@tempd\relax
331 | \divide\dimen@ii\count@
332 | \divide\dimen@\dimen@ii
333 | \edef#1{\strip@pt\dimen@}}
334 | \long\def\TY@get@body#1\end
335 | {\toks@\expandafter{\the\toks@#1}\TY@find@end}
336 | \def\TY@find@end#1{%
337 | \def\@tempa{#1}%
338 | \ifx\@tempa\TY@\def\@tempa{\end{#1}}\expandafter\@tempa
339 | \else\toks@\expandafter
340 | {\the\toks@\end{#1}}\expandafter\TY@get@body\fi}
341 | \def\TY@warn{%
342 | \PackageWarning{tabulary}}
343 | \catcode`\Z=11
344 | \AtBeginDocument{
345 | \@ifpackageloaded{colortbl}{%
346 | \expandafter\def\expandafter\@mkpream\expandafter#\expandafter1%
347 | \expandafter{%
348 | \expandafter\let\expandafter\CT@setup\expandafter\relax
349 | \expandafter\let\expandafter\CT@color\expandafter\relax
350 | \expandafter\let\expandafter\CT@do@color\expandafter\relax
351 | \expandafter\let\expandafter\color\expandafter\relax
352 | \expandafter\let\expandafter\CT@column@color\expandafter\relax
353 | \expandafter\let\expandafter\CT@row@color\expandafter\relax
354 | \@mkpream{#1}}
355 | \let\TY@@mkpream\@mkpream
356 | \def\TY@classz{%
357 | \@classx
358 | \@tempcnta\count@
359 | \ifx\TY@box\TY@box@v
360 | \global\advance\TY@count\@ne
361 | \fi
362 | \let\centering c%
363 | \let\raggedright\noindent
364 | \let\raggedleft\indent
365 | \let\arraybackslash\relax
366 | \prepnext@tok
367 | \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
368 | \ifnum\@chnum<4
369 | \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@
370 | \fi
371 | \ifnum\@chnum=6
372 | \global\expandafter\let\csname TY@F\the\TY@count\endcsname\z@
373 | \fi
374 | \@addtopreamble{%
375 | \setbox\z@\hbox\bgroup\bgroup
376 | \ifcase\@chnum
377 | \hskip\stretch{.5}\kern\z@
378 | \d@llarbegin\insert@column\d@llarend\hskip\stretch{.5}\or
379 | \kern\z@%<<<<<<<<<<<<<<<<<<<<<<<<<<<
380 | \d@llarbegin \insert@column \d@llarend \hfill \or
381 | \hfill\kern\z@ \d@llarbegin \insert@column \d@llarend \or
382 | $\vcenter\@startpbox{\@nextchar}\insert@column \@endpbox $\or
383 | \vtop \@startpbox{\@nextchar}\insert@column \@endpbox \or
384 | \vbox \@startpbox{\@nextchar}\insert@column \@endpbox \or
385 | \d@llarbegin \insert@column \d@llarend \or% dubious s case
386 | \TY@box\centering\or
387 | \TY@box\raggedright\or
388 | \TY@box\raggedleft\or
389 | \TY@box\relax
390 | \fi
391 | \egroup\egroup
392 | \begingroup
393 | \CT@setup
394 | \CT@column@color
395 | \CT@row@color
396 | \CT@do@color
397 | \endgroup
398 | \@tempdima\ht\z@
399 | \advance\@tempdima\minrowclearance
400 | \vrule\@height\@tempdima\@width\z@
401 | \unhbox\z@
402 | }\prepnext@tok}%
403 | \def\TY@arrayrule{%
404 | \TY@subwidth\arrayrulewidth
405 | \@addtopreamble{{\CT@arc@\vline}}}%
406 | \def\TY@classvi{\ifcase \@lastchclass
407 | \@acol \or
408 | \TY@subwidth\doublerulesep
409 | \ifx\CT@drsc@\relax
410 | \@addtopreamble{\hskip\doublerulesep}%
411 | \else
412 | \@addtopreamble{{\CT@drsc@\vrule\@width\doublerulesep}}%
413 | \fi\or
414 | \@acol \or
415 | \@classvii
416 | \fi}%
417 | }{%
418 | \let\CT@start\relax
419 | }
420 | }
421 | {\uccode`\*=`\ %
422 | \uppercase{\gdef\TX@verb{%
423 | \leavevmode\null\TX@vwarn
424 | {\ifnum0=`}\fi\ttfamily\let\\\ignorespaces
425 | \@ifstar{\let~*\TX@vb}{\TX@vb}}}}
426 | \def\TX@vb#1{\def\@tempa##1#1{\toks@{##1}\edef\@tempa{\the\toks@}%
427 | \expandafter\TX@v\meaning\@tempa\\ \\\ifnum0=`{\fi}}\@tempa!}
428 | \def\TX@v#1!{\afterassignment\TX@vfirst\let\@tempa= }
429 | \begingroup
430 | \catcode`\*=\catcode`\#
431 | \catcode`\#=12
432 | \gdef\TX@vfirst{%
433 | \if\@tempa#%
434 | \def\@tempb{\TX@v@#}%
435 | \else
436 | \let\@tempb\TX@v@
437 | \if\@tempa\space~\else\@tempa\fi
438 | \fi
439 | \@tempb}
440 | \gdef\TX@v@*1 *2{%
441 | \TX@v@hash*1##\relax\if*2\\\else~\expandafter\TX@v@\fi*2}
442 | \gdef\TX@v@hash*1##*2{*1\ifx*2\relax\else#\expandafter\TX@v@hash\fi*2}
443 | \endgroup
444 | \def\TX@vwarn{%
445 | \@warning{\noexpand\verb may be unreliable inside tabularx/y}%
446 | \global\let\TX@vwarn\@empty}
447 | \endinput
448 | %%
449 | %% End of file `tabulary.sty'.
450 |
--------------------------------------------------------------------------------
/doc/conf.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | #
3 | # online library management system documentation build configuration file, created by
4 | # sphinx-quickstart on Thu Jan 1 19:10:38 2015.
5 | #
6 | # This file is execfile()d with the current directory set to its
7 | # containing dir.
8 | #
9 | # Note that not all possible configuration values are present in this
10 | # autogenerated file.
11 | #
12 | # All configuration values have a default; values that are commented out
13 | # serve to show the default.
14 |
15 | import sys
16 | import os
17 |
18 | # If extensions (or modules to document with autodoc) are in another directory,
19 | # add these directories to sys.path here. If the directory is relative to the
20 | # documentation root, use os.path.abspath to make it absolute, like shown here.
21 | #sys.path.insert(0, os.path.abspath('.'))
22 |
23 | # -- General configuration ------------------------------------------------
24 |
25 | # If your documentation needs a minimal Sphinx version, state it here.
26 | #needs_sphinx = '1.0'
27 |
28 | # Add any Sphinx extension module names here, as strings. They can be
29 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
30 | # ones.
31 | extensions = []
32 |
33 | # Add any paths that contain templates here, relative to this directory.
34 | templates_path = ['_templates']
35 |
36 | # The suffix of source filenames.
37 | source_suffix = '.txt'
38 |
39 | # The encoding of source files.
40 | #source_encoding = 'utf-8-sig'
41 |
42 | # The master toctree document.
43 | master_doc = 'index'
44 |
45 | # General information about the project.
46 | project = u'online library management system'
47 | copyright = u'2015, Tomasz Potanski'
48 |
49 | # The version info for the project you're documenting, acts as replacement for
50 | # |version| and |release|, also used in various other places throughout the
51 | # built documents.
52 | #
53 | # The short X.Y version.
54 | version = '1.0'
55 | # The full version, including alpha/beta/rc tags.
56 | release = '1.0'
57 |
58 | # The language for content autogenerated by Sphinx. Refer to documentation
59 | # for a list of supported languages.
60 | #language = None
61 |
62 | # There are two options for replacing |today|: either, you set today to some
63 | # non-false value, then it is used:
64 | #today = ''
65 | # Else, today_fmt is used as the format for a strftime call.
66 | #today_fmt = '%B %d, %Y'
67 |
68 | # List of patterns, relative to source directory, that match files and
69 | # directories to ignore when looking for source files.
70 | exclude_patterns = ['_build']
71 |
72 | # The reST default role (used for this markup: `text`) to use for all
73 | # documents.
74 | #default_role = None
75 |
76 | # If true, '()' will be appended to :func: etc. cross-reference text.
77 | #add_function_parentheses = True
78 |
79 | # If true, the current module name will be prepended to all description
80 | # unit titles (such as .. function::).
81 | #add_module_names = True
82 |
83 | # If true, sectionauthor and moduleauthor directives will be shown in the
84 | # output. They are ignored by default.
85 | #show_authors = False
86 |
87 | # The name of the Pygments (syntax highlighting) style to use.
88 | pygments_style = 'sphinx'
89 |
90 | # A list of ignored prefixes for module index sorting.
91 | #modindex_common_prefix = []
92 |
93 | # If true, keep warnings as "system message" paragraphs in the built documents.
94 | #keep_warnings = False
95 |
96 |
97 | # -- Options for HTML output ----------------------------------------------
98 |
99 | # The theme to use for HTML and HTML Help pages. See the documentation for
100 | # a list of builtin themes.
101 | html_theme = 'default'
102 |
103 | # Theme options are theme-specific and customize the look and feel of a theme
104 | # further. For a list of options available for each theme, see the
105 | # documentation.
106 | #html_theme_options = {}
107 |
108 | # Add any paths that contain custom themes here, relative to this directory.
109 | #html_theme_path = []
110 |
111 | # The name for this set of Sphinx documents. If None, it defaults to
112 | # " v documentation".
113 | #html_title = None
114 |
115 | # A shorter title for the navigation bar. Default is the same as html_title.
116 | #html_short_title = None
117 |
118 | # The name of an image file (relative to this directory) to place at the top
119 | # of the sidebar.
120 | #html_logo = None
121 |
122 | # The name of an image file (within the static path) to use as favicon of the
123 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
124 | # pixels large.
125 | #html_favicon = None
126 |
127 | # Add any paths that contain custom static files (such as style sheets) here,
128 | # relative to this directory. They are copied after the builtin static files,
129 | # so a file named "default.css" will overwrite the builtin "default.css".
130 | html_static_path = ['_static']
131 |
132 | # Add any extra paths that contain custom files (such as robots.txt or
133 | # .htaccess) here, relative to this directory. These files are copied
134 | # directly to the root of the documentation.
135 | #html_extra_path = []
136 |
137 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
138 | # using the given strftime format.
139 | #html_last_updated_fmt = '%b %d, %Y'
140 |
141 | # If true, SmartyPants will be used to convert quotes and dashes to
142 | # typographically correct entities.
143 | #html_use_smartypants = True
144 |
145 | # Custom sidebar templates, maps document names to template names.
146 | #html_sidebars = {}
147 |
148 | # Additional templates that should be rendered to pages, maps page names to
149 | # template names.
150 | #html_additional_pages = {}
151 |
152 | # If false, no module index is generated.
153 | #html_domain_indices = True
154 |
155 | # If false, no index is generated.
156 | #html_use_index = True
157 |
158 | # If true, the index is split into individual pages for each letter.
159 | #html_split_index = False
160 |
161 | # If true, links to the reST sources are added to the pages.
162 | #html_show_sourcelink = True
163 |
164 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
165 | #html_show_sphinx = True
166 |
167 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
168 | #html_show_copyright = True
169 |
170 | # If true, an OpenSearch description file will be output, and all pages will
171 | # contain a tag referring to it. The value of this option must be the
172 | # base URL from which the finished HTML is served.
173 | #html_use_opensearch = ''
174 |
175 | # This is the file name suffix for HTML files (e.g. ".xhtml").
176 | #html_file_suffix = None
177 |
178 | # Output file base name for HTML help builder.
179 | htmlhelp_basename = 'onlinelibrarymanagementsystemdoc'
180 |
181 |
182 | # -- Options for LaTeX output ---------------------------------------------
183 |
184 | latex_elements = {
185 | # The paper size ('letterpaper' or 'a4paper').
186 | #'papersize': 'letterpaper',
187 |
188 | # The font size ('10pt', '11pt' or '12pt').
189 | #'pointsize': '10pt',
190 |
191 | # Additional stuff for the LaTeX preamble.
192 | #'preamble': '',
193 | }
194 |
195 | # Grouping the document tree into LaTeX files. List of tuples
196 | # (source start file, target name, title,
197 | # author, documentclass [howto, manual, or own class]).
198 | latex_documents = [
199 | ('index', 'onlinelibrarymanagementsystem.tex', u'online library management system Documentation',
200 | u'Tomasz Potanski', 'manual'),
201 | ]
202 |
203 | # The name of an image file (relative to this directory) to place at the top of
204 | # the title page.
205 | #latex_logo = None
206 |
207 | # For "manual" documents, if this is true, then toplevel headings are parts,
208 | # not chapters.
209 | #latex_use_parts = False
210 |
211 | # If true, show page references after internal links.
212 | #latex_show_pagerefs = False
213 |
214 | # If true, show URL addresses after external links.
215 | #latex_show_urls = False
216 |
217 | # Documents to append as an appendix to all manuals.
218 | #latex_appendices = []
219 |
220 | # If false, no module index is generated.
221 | #latex_domain_indices = True
222 |
223 |
224 | # -- Options for manual page output ---------------------------------------
225 |
226 | # One entry per manual page. List of tuples
227 | # (source start file, name, description, authors, manual section).
228 | man_pages = [
229 | ('index', 'onlinelibrarymanagementsystem', u'online library management system Documentation',
230 | [u'Tomasz Potanski'], 1)
231 | ]
232 |
233 | # If true, show URL addresses after external links.
234 | #man_show_urls = False
235 |
236 |
237 | # -- Options for Texinfo output -------------------------------------------
238 |
239 | # Grouping the document tree into Texinfo files. List of tuples
240 | # (source start file, target name, title, author,
241 | # dir menu entry, description, category)
242 | texinfo_documents = [
243 | ('index', 'onlinelibrarymanagementsystem', u'online library management system Documentation',
244 | u'Tomasz Potanski', 'onlinelibrarymanagementsystem', 'One line description of project.',
245 | 'Miscellaneous'),
246 | ]
247 |
248 | # Documents to append as an appendix to all manuals.
249 | #texinfo_appendices = []
250 |
251 | # If false, no module index is generated.
252 | #texinfo_domain_indices = True
253 |
254 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
255 | #texinfo_show_urls = 'footnote'
256 |
257 | # If true, do not generate a @detailmenu in the "Top" node's menu.
258 | #texinfo_no_detailmenu = False
259 |
--------------------------------------------------------------------------------
/doc/index.txt:
--------------------------------------------------------------------------------
1 | .. online library management system documentation master file, created by
2 | sphinx-quickstart on Thu Jan 1 19:10:38 2015.
3 | You can adapt this file completely to your liking, but it should at least
4 | contain the root `toctree` directive.
5 |
6 | Welcome to online library management system's documentation!
7 | ============================================================
8 |
9 | Contents:
10 |
11 | .. toctree::
12 | :maxdepth: 2
13 |
14 |
15 |
16 | Indices and tables
17 | ==================
18 |
19 | * :ref:`genindex`
20 | * :ref:`modindex`
21 | * :ref:`search`
22 |
23 |
--------------------------------------------------------------------------------
/library/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/srik1040/django-library/2c914b0915865be3d3c08dbb0a0b4e96270a52e3/library/__init__.py
--------------------------------------------------------------------------------
/library/settings.py:
--------------------------------------------------------------------------------
1 | """
2 | Django settings for library project.
3 |
4 | For more information on this file, see
5 | https://docs.djangoproject.com/en/1.7/topics/settings/
6 |
7 | For the full list of settings and their values, see
8 | https://docs.djangoproject.com/en/1.7/ref/settings/
9 | """
10 |
11 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12 | import dj_database_url
13 | import os
14 |
15 | BASE_DIR = os.path.dirname(os.path.dirname(__file__))
16 | PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
17 | LOGIN_URL = '/'
18 |
19 |
20 | # Quick-start development settings - unsuitable for production
21 | # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
22 |
23 | # SECURITY WARNING: keep the secret key used in production secret!
24 | SECRET_KEY = 'w7)qdx(89m5*d5zyisy5j9+3sg+@i1*jfddbx^i^2em^@y8rlv'
25 |
26 | # SECURITY WARNING: don't run with debug turned on in production!
27 | DEBUG = True
28 |
29 | TEMPLATE_DEBUG = True
30 |
31 | ALLOWED_HOSTS = []
32 |
33 |
34 | # Application definition
35 |
36 | INSTALLED_APPS = (
37 | 'django.contrib.admin',
38 | 'django.contrib.auth',
39 | 'django.contrib.contenttypes',
40 | 'django.contrib.sessions',
41 | 'django.contrib.messages',
42 | 'django.contrib.staticfiles',
43 | 'django_tables2',
44 | 'library_app',
45 | 'fandjango',
46 | 'json_field',
47 | # 'templatetags'
48 | )
49 |
50 | MIDDLEWARE_CLASSES = (
51 | 'django.contrib.sessions.middleware.SessionMiddleware',
52 | 'django.middleware.common.CommonMiddleware',
53 | 'django.middleware.csrf.CsrfViewMiddleware',
54 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
55 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
56 | 'django.contrib.messages.middleware.MessageMiddleware',
57 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
58 | 'fandjango.middleware.FacebookMiddleware',
59 | 'fandjango.middleware.FacebookWebMiddleware',
60 | )
61 |
62 | ROOT_URLCONF = 'library.urls'
63 |
64 | WSGI_APPLICATION = 'library.wsgi.application'
65 |
66 |
67 | # Database
68 | # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
69 |
70 | DATABASES = {
71 | 'default': {
72 | # 'ENGINE': 'django.db.backends.sqlite3',
73 | # 'NAME': os.path.join(BASE_DIR, 'sqlite3.db'),
74 | 'ENGINE': 'django.db.backends.postgresql_psycopg2',
75 | 'NAME': 'name',
76 | 'USER': 'username',
77 | 'PASSWORD': 'password',
78 | 'HOST': '',
79 | 'PORT': '',
80 | # 'NAME': os.path.join(BASE_DIR, 'sqlite3.db'),
81 | }
82 | }
83 |
84 | # Internationalization
85 | # https://docs.djangoproject.com/en/1.7/topics/i18n/
86 |
87 | LANGUAGE_CODE = 'en-us'
88 |
89 | TIME_ZONE = 'UTC'
90 |
91 | USE_I18N = True
92 |
93 | USE_L10N = True
94 |
95 | USE_TZ = True
96 |
97 |
98 | # Static files (CSS, JavaScript, Images)
99 | # https://docs.djangoproject.com/en/1.7/howto/static-files/
100 |
101 | STATIC_URL = '/static/'
102 | STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
103 |
104 | TEMPLATE_DIRS = (
105 | os.path.join(PROJECT_PATH, 'templates'),
106 | )
107 |
108 | # import dj_database_url
109 |
110 | DATABASES['default'] = dj_database_url.config()
111 |
112 |
113 | TEMPLATE_CONTEXT_PROCESSORS = ("django.contrib.auth.context_processors.auth",
114 | "django.core.context_processors.debug",
115 | "django.core.context_processors.i18n",
116 | "django.core.context_processors.media",
117 | "django.core.context_processors.static",
118 | "django.contrib.messages.context_processors.messages",
119 | # "library_app.context_processor.is_authenticated"
120 | "django.core.context_processors.request",
121 | )
122 |
123 | FACEBOOK_APPLICATION_ID = 970424339652057
124 | FACEBOOK_APPLICATION_SECRET_KEY = 'e250adbd77eb67fbf006d7faf08cb66a'
125 | FACEBOOK_APPLICATION_NAMESPACE = 'library_django'
126 |
127 | FANDJANGO_SITE_URL = 'http://django-library.herokuapp.com/fb/'
128 | # FANDJANGO_SITE_URL = 'http://localhost:8888/fb/'
129 |
130 | AUTHENTICATION_BACKENDS = (
131 | 'django.contrib.auth.backends.ModelBackend',
132 | 'library_app.auth_backend.PasswordlessAuthBackend',
133 | )
--------------------------------------------------------------------------------
/library/templates/about.html:
--------------------------------------------------------------------------------
1 | {% xextends "base.html" with active_tab=about %}
2 |
3 | {% block content %}
4 |
About us
5 |
6 | Lorem ipsum dolor sit amet dolor. Nullam ligula placerat porttitor. Phasellus mollis. Proin volutpat quis, lacinia lacus. Nunc dolor vel mauris rhoncus laoreet hendrerit purus fermentum in, volutpat facilisis, quam at lacus sed est dolor, varius quis, varius eu, leo. In hac habitasse platea dictumst. Vestibulum dolor sit amet, nonummy eget, tincidunt eget, volutpat ante, luctus nibh, sollicitudin lorem, ut venenatis vitae, velit. Duis pretium quis, placerat nec, lacinia eros viverra venenatis nisl. Nam pellentesque sagittis eu, commodo magna, at nulla. Aliquam faucibus gravida sem. Nulla in tortor massa in nunc. Vestibulum ante nec tellus. Cras enim arcu elit, lobortis vitae, quam. Quisque neque tellus, quis lacus. Quisque cursus, nibh ac turpis et nisl. Curabitur condimentum vitae, quam. Fusce vitae eros quis viverra sem at arcu. Cum sociis natoque penatibus et ligula. Nunc a nunc. Quisque cursus odio. Cras ut orci sit amet nunc. Nunc nunc. Maecenas nec sapien dui dolor, placerat pharetra elementum. Aenean et magnis dis parturient montes, nascetur ridiculus mus. Donec euismod orci molestie tristique senectus et mi. Morbi dignissim, libero fermentum ante ipsum dolor eu justo.
7 |
8 |
9 |
10 | Nunc viverra ligula. Cras tortor fringilla fringilla vel, semper risus. Aliquam vel nulla. Aliquam fringilla, massa. Maecenas pretium, diam magna dictum a, mauris. Cras tempus at, cursus vitae, vestibulum lectus at eros ut nulla eu orci blandit ultrices iaculis. Curabitur interdum. Quisque consectetuer adipiscing elit. Nam eu pede eu auctor sapien. Aenean sodales, velit sit amet dolor. Aenean augue nec egestas at, consequat sed, imperdiet lectus feugiat fermentum wisi, aliquam arcu. Suspendisse eu nisl. Etiam leo mollis eu, posuere cubilia Curae, Nulla posuere ante ipsum dolor in massa. Nulla nunc iaculis nec, elementum dui. Morbi massa molestie augue commodo ante. Maecenas vitae risus dictum wisi accumsan eget, condimentum ac, suscipit id, luctus et lacus scelerisque lorem leo, pretium nec, mattis magna. Curabitur vel lectus. Nulla lobortis facilisis. Phasellus placerat pharetra velit vitae erat. Quisque in augue. Fusce commodo et, varius ac, eros. Aliquam bibendum, urna accumsan odio vitae convallis quam ac elit at porta scelerisque, dui nulla, rutrum ligula, egestas imperdiet orci id justo ac quam accumsan congue, lorem pretium wisi. Aenean feugiat dui, non ipsum. Aliquam vitae ligula eleifend.
11 |
12 |
13 |
14 | Nullam vitae felis. Nullam volutpat, libero vel dui aliquam risus nunc, nonummy turpis. Mauris pellentesque, justo orci ac erat velit lectus felis risus at elit sed justo. Phasellus sagittis sed, ullamcorper aliquam. Nunc convallis pellentesque, justo a wisi. Integer est. Pellentesque habitant morbi tristique luctus augue. Sed eros. Nullam pharetra leo. Sed a odio vitae arcu vel lorem. Maecenas rhoncus. Praesent blandit lobortis. Maecenas bibendum ipsum ut orci dictum lectus nec augue. Donec at elit justo quis faucibus orci ipsum, rutrum rhoncus. Praesent gravida sit amet, consectetuer ut, magna. Sed tempus leo mollis sodales. Vivamus malesuada neque odio eget leo. Cras tortor orci, aliquam turpis. Lorem ipsum primis in dui. Morbi hendrerit. Sed in consequat auctor dignissim. Morbi egestas, orci ipsum, vel hendrerit nonummy. Class aptent taciti sociosqu ad litora torquent per inceptos hymenaeos. Maecenas scelerisque arcu. Morbi justo. Maecenas gravida, erat sem orci, blandit justo, condimentum vitae, pede. Donec sit amet augue. Cum sociis natoque penatibus et quam. Cum sociis natoque penatibus et ultrices posuere cubilia Curae, Nulla mollis faucibus, erat metus eros ipsum, congue quis, luctus quis, placerat.
15 |
24 | {% if pbu == "true" %}
25 | You have this book! Write down a few quotations:
26 |
27 |
28 |
32 | {% endif %}
33 |
34 | {% if request.user|has_group:"Librarians" %}
35 |
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh.
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
Oh yeah, it's that good. See for yourself.
125 |
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.
126 |
127 |
128 |
129 |
130 |
131 |
132 |
And lastly, this one. Checkmate.
133 |
Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.