Commits

Christian Scholz committed e9c13e5

initial import of quantumcore.dynamicpage

Comments (0)

Files changed (24)

+syntax:glob
+*.pyo
+*.pyc
+*.egg-info
+*.cache
+*.orig
+*.rej
+*~
+*.o
+.build
+.sass-cache
+static/js/tinymce
+design/stylesheets
+src/stylesheets
+docs/_build
+Introduction
+============
+
+
+Changelog
+=========
+
+0.9 - Unreleased
+----------------
+
+* Initial release
+
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = _build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.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 $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/quantumcoredynamicpage.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/quantumcoredynamicpage.qhc"
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+	      "run these through (pdf)latex."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."

docs/_static/default.css

+html, body {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 100%;
+  font-family: inherit;
+  vertical-align: baseline;
+}
+
+div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
+pre, a, abbr, acronym, address, code, del, dfn, em, img,
+dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 100%;
+  font-family: inherit;
+  vertical-align: baseline;
+}
+
+blockquote, q {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 100%;
+  font-family: inherit;
+  vertical-align: baseline;
+  quotes: "" "";
+}
+blockquote:before, q:before,
+blockquote:after, q:after {
+  content: "";
+}
+
+th, td, caption {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 100%;
+  font-family: inherit;
+  vertical-align: baseline;
+  text-align: left;
+  font-weight: normal;
+  vertical-align: middle;
+}
+
+table {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font-weight: inherit;
+  font-style: inherit;
+  font-size: 100%;
+  font-family: inherit;
+  vertical-align: baseline;
+  border-collapse: separate;
+  border-spacing: 0;
+  vertical-align: middle;
+}
+
+a img {
+  border: none;
+}
+
+body {
+  line-height: 1.5;
+  font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
+  color: #333333;
+  font-size: 87.5%;
+}
+
+h1 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 3em;
+  line-height: 1;
+  margin-bottom: 0.5em;
+}
+h1 img {
+  margin: 0;
+}
+
+h2 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 2em;
+  margin-bottom: 0.75em;
+}
+
+h3 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 1.5em;
+  line-height: 1;
+  margin-bottom: 1em;
+}
+
+h4 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 1.2em;
+  line-height: 1.25;
+  margin-bottom: 1.25em;
+}
+
+h5 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 1em;
+  font-weight: bold;
+  margin-bottom: 1.5em;
+}
+
+h6 {
+  font-weight: normal;
+  color: #222222;
+  font-size: 1em;
+  font-weight: bold;
+}
+
+h2 img, h3 img, h4 img, h5 img, h6 img {
+  margin: 0;
+}
+
+p {
+  margin: 0 0 1.5em;
+}
+p img.left {
+  display: inline;
+  float: left;
+  margin: 1.5em 1.5em 1.5em 0;
+  padding: 0;
+}
+p img.right {
+  display: inline;
+  float: right;
+  margin: 1.5em 0 1.5em 1.5em;
+  padding: 0;
+}
+
+a {
+  text-decoration: underline;
+  color: #000099;
+}
+a:visited {
+  color: #000066;
+}
+a:focus {
+  color: black;
+}
+a:hover {
+  color: black;
+}
+a:active {
+  color: #cc0099;
+}
+
+blockquote {
+  margin: 1.5em;
+  color: #666;
+  font-style: italic;
+}
+
+strong {
+  font-weight: bold;
+}
+
+em {
+  font-style: italic;
+}
+
+dfn {
+  font-style: italic;
+  font-weight: bold;
+}
+
+sup, sub {
+  line-height: 0;
+}
+
+abbr, acronym {
+  border-bottom: 1px dotted #666;
+}
+
+address {
+  margin: 0 0 1.5em;
+  font-style: italic;
+}
+
+del {
+  color: #666;
+}
+
+pre {
+  margin: 1.5em 0;
+  white-space: pre;
+}
+
+pre, code, tt {
+  font: 1em 'andale mono', 'lucida console', monospace;
+  line-height: 1.5;
+}
+
+li ul, li ol {
+  margin: 0 1.5em;
+}
+
+ul {
+  margin: 0 1.5em 1.5em 1.5em;
+  list-style-type: disc;
+}
+
+ol {
+  margin: 0 1.5em 1.5em 1.5em;
+  list-style-type: decimal;
+}
+
+dl {
+  margin: 0 0 1.5em 0;
+}
+dl dt {
+  font-weight: bold;
+}
+
+dd {
+  margin-left: 1.5em;
+}
+
+table {
+  margin-bottom: 1.4em;
+  width: 100%;
+}
+
+th {
+  font-weight: bold;
+}
+
+thead th {
+  background: #c3d9ff;
+}
+
+th, td, caption {
+  padding: 4px 10px 4px 5px;
+}
+
+tr.even td {
+  background: #e5ecf9;
+}
+
+tfoot {
+  font-style: italic;
+}
+
+caption {
+  background: #eee;
+}
+
+.quiet {
+  color: #666666;
+}
+
+.loud {
+  color: #111111;
+}
+
+html {
+  background: #cccccc;
+}
+
+form label {
+  font-weight: bold;
+}
+form fieldset {
+  padding: 1.4em;
+  margin: 0 0 1.5em 0;
+}
+form legend {
+  font-weight: bold;
+  font-size: 1.2em;
+}
+form input.text, form input.title, form input[type=text] {
+  margin: 0.5em 0;
+  background-color: #fff;
+  padding: 5px;
+}
+form input.title {
+  font-size: 1.5em;
+}
+form input[type=checkbox], form input.checkbox,
+form input[type=radio], form input.radio {
+  position: relative;
+  top: 0.25em;
+}
+form textarea {
+  margin: 0.5em 0;
+  padding: 5px;
+}
+form select {
+  margin: 0.5em 0;
+}
+form fieldset {
+  border: 1px solid #cccccc;
+}
+form input.text, form input.title,
+form textarea,
+form select {
+  border: 1px solid #bbbbbb;
+}
+form input.text:focus, form input.title:focus,
+form textarea:focus,
+form select:focus {
+  border: 1px solid #666666;
+}
+form input.text, form input.title {
+  width: 300px;
+}
+form textarea {
+  width: 390px;
+  height: 250px;
+}
+
+body {
+  background-color: #cccccc;
+  background: -webkit-gradient(linear, left top, left bottom, from( white ), to( #cccccc ));
+  background: -moz-linear-gradient(left top, left bottom, from(rgb(200,220,255)), to(rgb(180,200,230)));
+  color: black;
+}
+body .clear {
+  clear: both;
+}
+body .nowrap {
+  white-space: nowrap;
+}
+body .clearfix {
+  overflow: hidden;
+  display: inline-block;
+}
+body .clearfix {
+  display: block;
+}
+body .small {
+  font-size: .8em;
+  margin-bottom: 1.875em;
+  line-height: 1.875em;
+}
+body .large {
+  font-size: 1.2em;
+  line-height: 2.5em;
+  margin-bottom: 1.25em;
+}
+body .first {
+  margin-left: 0;
+  padding-left: 0;
+}
+body .last {
+  margin-right: 0;
+  padding-right: 0;
+}
+body .top {
+  margin-top: 0;
+  padding-top: 0;
+}
+body .bottom {
+  margin-bottom: 0;
+  padding-bottom: 0;
+}
+body .showgrid {
+  background: url('/images/grid.png?1261262413');
+}
+body a {
+  color: #38a;
+  font-weight: bold;
+  text-decoration: underline;
+}
+body a:hover {
+  color: #0af;
+}
+body h1 {
+  font-size: 2em;
+  color: #222;
+  margin-top: 20px;
+  border-bottom: 2px solid #aaa;
+  line-height: 120%;
+}
+body h2 {
+  margin-top: 20px;
+  font-variant: small-caps;
+  letter-spacing: 1px;
+  text-transform: lowercase;
+  font-size: 1.2em;
+  line-height: 1%;
+  font-weight: bold;
+  padding: 0 2px;
+  font-size: 1.7em;
+}
+body h3 {
+  font-size: 1.5em;
+}
+body #header {
+  width: 950px;
+  margin: 0 auto;
+  overflow: hidden;
+  display: inline-block;
+  margin-bottom: 10px;
+  border-bottom: 1px solid #a22;
+}
+body #header {
+  display: block;
+}
+body #logo {
+  display: inline;
+  margin-right: 30px;
+}
+body #masterlink {
+  float: right;
+  display: inline;
+  text-decoration: none;
+  font-style: italic;
+  font-size: 16pt;
+  color: #a00000;
+}
+body .related, body .footer {
+  width: 950px;
+  margin: 0 auto;
+  overflow: hidden;
+  display: inline-block;
+  padding-bottom: 4px;
+}
+body .related, body .footer {
+  display: block;
+}
+body .related ul, body .footer ul {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  outline: 0;
+  overflow: hidden;
+  display: inline-block;
+}
+body .related ul, body .footer ul {
+  display: block;
+}
+body .related ul li, body .footer ul li {
+  list-style-type: none;
+  margin-left: 0px;
+  white-space: nowrap;
+  display: inline;
+  float: left;
+  padding-left: 4px;
+  padding-right: 4px;
+}
+body .related ul li.first, body .footer ul li.first {
+  padding-left: 0px;
+}
+body .related ul li.last, body .footer ul li.last {
+  padding-right: 0px;
+}
+body .related ul li a, body .footer ul li a {
+  text-decoration: none;
+  color: #333;
+}
+body .related ul .right, body .footer ul .right {
+  float: right;
+}
+body .document {
+  width: 950px;
+  margin: 0 auto;
+  overflow: hidden;
+  display: inline-block;
+  background-color: #f0f0f0;
+  background: -webkit-gradient(linear, left top, left bottom, from( #f0f0f0 ), to( white ));
+  background: -moz-linear-gradient(left top, left bottom, from(rgb(200,220,255)), to(rgb(180,200,230)));
+  -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
+  -moz-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
+  -webkit-border-radius: 10px;
+  -moz-border-radius: 10px;
+  border: 2px solid #aaa;
+}
+body .document {
+  display: block;
+}
+body #documentwrapper {
+  display: inline;
+  float: left;
+  margin-right: 10px;
+  width: 710px;
+}
+* html body #documentwrapper {
+  overflow-x: hidden;
+}
+body #body {
+  padding: 10px;
+  border-right: 1px solid #aaa;
+}
+body .sphinxsidebar {
+  display: inline;
+  float: left;
+  margin-right: 0;
+  width: 230px;
+}
+* html body .sphinxsidebar {
+  overflow-x: hidden;
+}
+body pre {
+  border: 1px solid #aaa;
+  -webkit-box-shadow: 0px 3px 6px rgba(0,0,0,0.10);
+  padding: 5px;
+  background-color: #eef;
+  font-size: 105%;
+  color: #111;
+  line-height: 140%;
+}
+body .simple {
+  margin-left: 30px;
+  margin-left: 0;
+}
+body .simple li {
+  list-style-type: none;
+  margin-left: 0px;
+}
+body .sphinxsidebarwrapper {
+  padding-top: 21px;
+}
+body .sphinxsidebarwrapper ul {
+  margin-left: 0;
+}
+body .sphinxsidebarwrapper ul li {
+  list-style-type: none;
+  margin-left: 0px;
+}
+body a.headerlink {
+  visibility: hidden;
+}
+body h1:hover > a.headerlink, body h2:hover > a.headerlink, body h3:hover > a.headerlink, body h4:hover > a.headerlink, body h5:hover > a.headerlink, body h6:hover > a.headerlink, body dt:hover > a.headerlink {
+  visibility: visible;
+}
+body a.headerlink {
+  color: #c60f0f;
+  font-size: 0.8em;
+  padding: 0 4px 0 4px;
+  text-decoration: none;
+}
+body a.headerlink:hover { {
+  background-color: #c60f0f;
+  color: white;
+}
+
+tt {
+  background-color: #ecf0f3;
+  padding: 0 1px 0 1px;
+  font-size: 0.95em;
+}

docs/_static/ie.css

+body { text-align: center; }
+* html body legend { margin: 0px -8px 16px 0; padding: 0; }
+html>body p code { *white-space: normal; }
+
+.container { text-align: left; }
+
+ol { margin-left: 2em; }
+
+sup { vertical-align: text-top; }
+
+sub { vertical-align: text-bottom; }
+
+hr { margin: -8px auto 11px; }
+
+img { -ms-interpolation-mode: bicubic; }
+
+fieldset { padding-top: 0; }
+
+input.text { margin: 0.5em 0; background-color: #fff; border: 1px solid #bbb; }
+input.text:focus { border: 1px solid #666; }
+input.title { margin: 0.5em 0; background-color: #fff; border: 1px solid #bbb; }
+input.title:focus { border: 1px solid #666; }
+input.checkbox { position: relative; top: 0.25em; }
+input.radio { position: relative; top: 0.25em; }
+input.button { position: relative; top: 0.25em; }
+
+textarea { margin: 0.5em 0; }
+
+select { margin: 0.5em 0; }
+
+button { position: relative; top: 0.25em; }

docs/_static/print.css

+body { line-height: 1.5; font-family: Helvetica Neue, Arial, Helvetica, sans-serif; color: #000; background: none; font-size: 10pt; }
+
+.container { background: none; }
+
+hr { background: #ccc; color: #ccc; width: 100%; height: 2px; margin: 2em 0; padding: 0; border: none; }
+hr.space { background: #fff; color: #fff; }
+
+h1, h2, h3, h4, h5, h6 { font-family: Helvetica Neue, Arial, Helvetica, sans-serif; }
+
+code { font-size: .9em; font-family: 'andale mono', 'lucida console', monospace; }
+
+img { display: inline; float: left; margin: 1.5em 1.5em 1.5em 0; }
+
+a img { border: none; }
+a:link, a:visited { background: transparent; font-weight: 700; text-decoration: underline; }
+
+p img.top { margin-top: 0; }
+
+blockquote { margin: 1.5em; padding: 1em; font-style: italic; font-size: .9em; }
+
+.small { font-size: .9em; }
+
+.large { font-size: 1.1em; }
+
+.quiet { color: #999; }
+
+.hide { display: none; }
Add a comment to this file

docs/_static/quantumcore.png

Added
New image

docs/_templates/layout.html

+{% extends "!layout.html" %}
+
+{%- macro myrelbar() %}
+    <div class="related">
+      <ul>
+        {%- for rellink in rellinks %}
+        <li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}>
+          <a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}"
+             {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
+        </li>
+        {%- endfor %}
+        {%- for parent in parents %}
+          <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a></li>
+        {%- endfor %}
+        {%- block relbaritems %} {% endblock %}
+      </ul>
+    </div>
+{%- endmacro %}
+
+{% block header %}
+    <div id="header">
+        <a id="masterlink" href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
+        <a id="logo" href="/"><img src="_static/quantumcore.png" width="200" /></a>
+    </div>
+{% endblock %}
+
+
+{%- block relbar1 %}{{ myrelbar() }}{% endblock %}
+{%- block relbar2 %}{{ myrelbar() }}{% endblock %}
+
+{%- block document %}
+      <div id="documentwrapper">
+        <div id="body">
+          {% block body %} {% endblock %}
+        </div>
+      </div>
+{%- endblock %}
+
+
+
+# -*- coding: utf-8 -*-
+#
+# quantumcore.dynamicpage documentation build configuration file, created by
+# sphinx-quickstart on Sat Dec 19 23:20:37 2009.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.append(os.path.abspath('.'))
+
+# -- General configuration -----------------------------------------------------
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.txt'
+
+# The encoding of source files.
+#source_encoding = 'utf-8'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'quantumcore.dynamicpage'
+copyright = u'2009, Christian Scholz'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '0.9'
+# The full version, including alpha/beta/rc tags.
+release = '0.9'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of documents that shouldn't be included in the build.
+#unused_docs = []
+
+# List of directories, relative to source directory, that shouldn't be searched
+# for source files.
+exclude_trees = ['_build']
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  Major themes that come with
+# Sphinx are currently 'default' and 'sphinxdoc'.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = { } 
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_use_modindex = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = ''
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'quantumcoredynamicpagedoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('index', 'quantumcoredynamicpage.tex', u'quantumcore.dynamicpage Documentation',
+   u'Christian Scholz', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_use_modindex = True
+
+
+# Example configuration for intersphinx: refer to the Python standard library.
+intersphinx_mapping = {'http://docs.python.org/': None}

docs/design/config.rb

+# Require any additional compass plugins here.
+project_type = :stand_alone
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = "../_static"
+sass_dir = "src"
+images_dir = "images"
+output_style = :expanded
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
Add a comment to this file

docs/design/images/grid.png

Added
New image

docs/design/src/default.sass

+//
+// Variables
+//
+
+!bgcolor = #ccc
+!docbg = #f0f0f0
+!blueprint_font_size = 14px
+
+// This import applies a global reset to any page that imports this stylesheet.
+@import blueprint/reset.sass
+// To configure blueprint, edit the partials/base.sass file.
+@import partials/base.sass
+// Import all the default blueprint modules so that we can access their mixins.
+@import blueprint
+// Import the non-default scaffolding module.
+@import blueprint/modules/scaffolding.sass
+@import compass/utilities.sass
+@import blueprint/modules/fancy_type
+
+// To generate css equivalent to the blueprint css but with your configuration applied, uncomment:
+// +blueprint
+
+//Recommended Blueprint configuration with scoping and semantic layout:
++blueprint-typography("body")
+
+
+// 
+// Macros
+//
+
+=button(!color = #222, !fontsize = 8pt, !bgcolor = #adf, !step = #444)
+  !startcolor = !bgcolor - !step
+  background-color = !bgcolor
+  background= "-webkit-gradient(linear, left top, left bottom, from("!startcolor"), to("!bgcolor"))"
+  background: -moz-gradient(linear, left top, left bottom, from(rgb(100,100,100)), to(rgb(80,80,80)))
+  display: inline-block
+  padding: 2px 10px 3px
+  line-height: 1
+  -moz-border-radius: 20px
+  -webkit-border-radius: 20px
+  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5)
+  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5)
+  text-shadow: 0 -1px 1px rgba(0,0,0,0.25)
+  border-bottom: 1px solid rgba(0,0,0,0.25)
+  position: relative
+  margin: 0px 4px
+  font-size = !fontsize
+  color = !color
+  cursor: pointer
+  text-decoration: none
+  font-weight: normal
+  
+=buttonhighlight(!bgcolor = #0af, !step = #444)
+  !endcolor = !bgcolor + #333
+  !startcolor = !endcolor - !step
+  background= "-webkit-gradient(linear, left top, left bottom, from("!startcolor"), to("!endcolor"))"
+  
+=bg(!startcolor=#ccc, !endcolor=#fff, !defaultcolor=#fff)
+  background-color = !defaultcolor
+  background= "-webkit-gradient(linear, left top, left bottom, from("!startcolor"), to("!endcolor"))"
+  background: -moz-linear-gradient(left top, left bottom, from(rgb(200,220,255)), to(rgb(180,200,230)))
+
+=shadow(!hoffset=0px,!voffset=3px,!blur=6px,!color=rgba(0,0,0,0.25))  
+  -webkit-box-shadow= !hoffset !voffset !blur !color
+  -moz-box-shadow= !hoffset !voffset !blur !color  
+
+=border-radius(!radius)
+  -webkit-border-radius= !radius
+  -moz-border-radius= !radius
+
+html
+  background = !bgcolor
+  
+form
+  +blueprint-form
+
+body
+  +bg(#fff,!bgcolor,!bgcolor)  
+  +blueprint-utilities
+  +blueprint-debug
+  color: black
+  
+  a
+    color: #38a
+    font-weight: bold
+    text-decoration: underline
+    
+  a:hover
+    color: #0af
+    
+  h1
+    font-size: 2em
+    color: #222
+    margin-top: 20px
+    border-bottom: 2px solid #aaa
+    line-height: 120%
+    
+  h2
+    margin-top: 20px
+    +caps
+    font-size: 1.7em
+    
+  h3
+    font-size: 1.5em
+    
+  #header
+    +container
+    margin-bottom: 10px
+    border-bottom: 1px solid #a22
+    
+  #logo
+    display: inline
+    margin-right: 30px
+
+  #masterlink
+    float: right
+    display: inline
+    text-decoration: none
+    font-style: italic
+    font-size: 16pt
+    color: #a00000
+    
+  .related,.footer
+    +container
+    padding-bottom: 4px
+    ul
+      +horizontal-list
+      li a
+        text-decoration: none
+        color: #333
+      .right
+        float: right
+
+  .document
+    +container
+    +bg(!docbg,#fff,!docbg)
+    +shadow
+    +border-radius(10px)
+    border: 2px solid #aaa
+
+  #documentwrapper
+    +column(18)
+    
+  #body
+    padding: 10px
+    border-right: 1px solid #aaa
+
+  .sphinxsidebar
+    +column(6,true)
+
+  pre 
+    border: 1px solid #aaa
+    -webkit-box-shadow: 0px 3px 6px rgba(0,0,0,0.10)
+    padding: 5px
+    background-color: #eef
+    font-size: 105%
+    color: #111
+    line-height: 140%
+
+  
+  .simple
+    margin-left: 30px
+    +no-bullets
+    margin-left: 0
+    
+  .sphinxsidebarwrapper
+    padding-top: 21px
+        
+  .sphinxsidebarwrapper ul
+    +no-bullets
+    margin-left: 0
+ 
+  a.headerlink 
+    visibility: hidden
+
+  h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, h4:hover > a.headerlink, h5:hover > a.headerlink, h6:hover > a.headerlink, dt:hover > a.headerlink 
+    visibility: visible
+
+  a.headerlink
+    color: #c60f0f
+    font-size: 0.8em
+    padding: 0 4px 0 4px
+    text-decoration: none
+
+  a.headerlink:hover {
+    background-color: #c60f0f
+    color: white
+
+
+tt
+  background-color: #ecf0f3
+  padding: 0 1px 0 1px
+  font-size: 0.95em
+

docs/design/src/ie.sass

+@import blueprint.sass
+
++blueprint-ie 
+
+// Note :
+//
+// Compass will center text to fix IE6 container centering.
+// This means all your texts will be centered under all version of IE by default.
+// Please don't forget to restore the correct behavior to your main container (but not the body tag!)
+//
+// Example :
+//
+// .container, .footer
+//   :text-align left
+

docs/design/src/partials/_base.sass

+// Here is where you can define your constants for your application and to configure the blueprint framework.
+// Feel free to delete these if you want keep the defaults:
+
+!blueprint_grid_columns = 24
+!blueprint_container_size = 950px
+!blueprint_grid_margin  = 10px
+
+// Use this to calculate the width based on the total width.
+// Or you can set !blueprint_grid_width to a fixed value and unset !blueprint_container_size -- it will be calculated for you.
+!blueprint_grid_width   = (!blueprint_container_size + !blueprint_grid_margin) / !blueprint_grid_columns - !blueprint_grid_margin
+

docs/design/src/print.sass

+@import blueprint.sass
+
++blueprint-print

docs/glossary.txt

+.._ glossary:
+
+========
+Glossary
+========
+
+.. glossary::
+    
+    Ajax
+        Ajax stands for "asynchronous JavaScript and XML" and is a web development technique used on the client-side to create interactive web applications. For more information read the `Wikipedia article on AJAX <http://en.wikipedia.org/wiki/Ajax_(programming)>`_
+    Comet
+        Comet is a web development technique to push data from a server to a web page by utilizing some sort of long polling. This usually means that a HTTP connection is held open on a request which is only answered as soon as data needs to be send to the client. For more information read the `Wikipedia article on Comet <http://en.wikipedia.org/wiki/Comet_(programming)>`_ or check out `Comet Daily <http://cometdaily.com/>`_
+    Page
+        A Page is the represenation of data on a web client. It can consists of multiple :term:`Slots` which can be filled and dynamically replaced by slot handlers.
+    Slots
+        to be defined
+    
+
+.. quantumcore.dynamicpage documentation master file, created by
+   sphinx-quickstart on Sat Dec 19 23:20:37 2009.
+   You can adapt this file completely to your liking, but it should at least
+   contain the root `toctree` directive.
+
+Welcome to quantumcore.dynamicpage's documentation!
+===================================================
+
+Contents
+********
+
+.. toctree::
+   :maxdepth: 2
+   
+   intro
+   
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
+Motivation
+==========
+
+Traditionally in Zope, Plone or BFG there is the notion of a model and views on that model
+which represents how to display a model instance inside a web browser.
+
+This view is then usually implemented using a template engine which knows how to display 
+that object. Often some sort of master template is used in this approach which defines how
+pages look like and which usually has some "content slot" where the derived template can
+inject the view of that model instance.
+
+This works quite well if those model instances are the main thing on the page and not many
+other dynamic things are present. 
+
+More and more though a page contains not only one object to display but many sources of
+dynamic information such as other objects or simply portlets which in themselves can obtain information from a number of sources. 
+
+Another problem comes into play if you want to update certain parts of the page on certain
+events be it via :term:`Ajax` or :term:`Comet`. 
+
+In order to help with these kind of setup the :mod:`quantumcore.dynamicpage` defines the 
+concept of a :term:`Page` which is not directly bound to a model instance but instead can
+render information in so-called :term:`slots` and even update them without page reloads.
+
+The page model 
+**************
+@ECHO OFF
+
+REM Command file for Sphinx documentation
+
+set SPHINXBUILD=sphinx-build
+set BUILDDIR=_build
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
+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 (%BUILDDIR%\*) do rmdir /q /s %%i
+	del /q /s %BUILDDIR%\*
+	goto end
+)
+
+if "%1" == "html" (
+	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+	goto end
+)
+
+if "%1" == "dirhtml" (
+	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+	echo.
+	echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+	goto end
+)
+
+if "%1" == "pickle" (
+	%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+	echo.
+	echo.Build finished; now you can process the pickle files.
+	goto end
+)
+
+if "%1" == "json" (
+	%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+	echo.
+	echo.Build finished; now you can process the JSON files.
+	goto end
+)
+
+if "%1" == "htmlhelp" (
+	%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+	echo.
+	echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+	goto end
+)
+
+if "%1" == "qthelp" (
+	%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+	echo.
+	echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+	echo.^> qcollectiongenerator %BUILDDIR%\qthelp\quantumcoredynamicpage.qhcp
+	echo.To view the help file:
+	echo.^> assistant -collectionFile %BUILDDIR%\qthelp\quantumcoredynamicpage.ghc
+	goto end
+)
+
+if "%1" == "latex" (
+	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+	echo.
+	echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+	goto end
+)
+
+if "%1" == "changes" (
+	%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+	echo.
+	echo.The overview file is in %BUILDDIR%/changes.
+	goto end
+)
+
+if "%1" == "linkcheck" (
+	%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+	echo.
+	echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+	goto end
+)
+
+if "%1" == "doctest" (
+	%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+	echo.
+	echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+	goto end
+)
+
+:end

quantumcore/__init__.py

+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__)
Add a comment to this file

quantumcore/dynamicpage/__init__.py

Empty file added.

+[egg_info]
+tag_build = dev
+tag_svn_revision = true
+from setuptools import setup, find_packages
+import os
+
+version = '0.9'
+
+setup(name='quantumcore.dynamicpage',
+      version=version,
+      description="A dynamic HTML page",
+      long_description=open("README.txt").read() + "\n" +
+                       open(os.path.join("docs", "HISTORY.txt")).read(),
+      # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
+      classifiers=[
+        "Programming Language :: Python",
+        "Topic :: Software Development :: Libraries :: Python Modules",
+        ],
+      keywords='quantumcore ajax html web webdevelopment comet slots',
+      author='Christian Scholz',
+      author_email='cs@comlounge.net',
+      url='http://quantumcore.net',
+      license='MIT',
+      packages=find_packages(exclude=['ez_setup']),
+      namespace_packages=['quantumcore'],
+      include_package_data=True,
+      zip_safe=False,
+      install_requires=[
+          'setuptools',
+          # -*- Extra requirements: -*-
+      ],
+      entry_points="""
+      # -*- Entry points: -*-
+      """,
+      )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.