Browse files

- Moved to GitHub (https://github.com/Pylons/deform).

- Added tox.ini for testing purposes.
  • Loading branch information...
1 parent be69b40 commit 7b8a5218764a488b87537dbe9a276d8cc9430176 @mcdonc mcdonc committed Feb 16, 2011
Showing with 177 additions and 214 deletions.
  1. +19 −111 .gitignore
  2. +4 −0 CHANGES.txt
  3. +2 −2 COPYRIGHT.txt
  4. +2 −2 README.txt
  5. +2 −0 docs/.gitignore
  6. +40 −22 docs/Makefile
  7. +4 −6 docs/app.rst
  8. +10 −11 docs/basics.rst
  9. +5 −5 docs/components.rst
  10. +9 −5 docs/conf.py
  11. +4 −4 docs/glossary.rst
  12. +17 −18 docs/index.rst
  13. +4 −4 docs/serialization.rst
  14. +16 −18 docs/templates.rst
  15. +11 −6 setup.py
  16. +28 −0 tox.ini
View
130 .gitignore
@@ -1,111 +1,19 @@
-deform/static/scripts/jquery-autocomplete/changelog.txt
-deform/static/scripts/jquery-autocomplete/demo/bg.gif
-deform/static/scripts/jquery-autocomplete/demo/emails.php
-deform/static/scripts/jquery-autocomplete/demo/emails.phps
-deform/static/scripts/jquery-autocomplete/demo/images.php
-deform/static/scripts/jquery-autocomplete/demo/images/Amsterdam Van-Gogh Museum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Amsterdam.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Antwerpen Rubenshaus.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Antwerpen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Appenzell.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Arnhem Historisches Museum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bled.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bled_Die Burg von Bled.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bogojina_Die Pfarrkirche.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BolognaBasilicadiSanPetronio.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BolognaFontanadelNettuno.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BolognaPiazzaMaggiore.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bolsward Martinikerk.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bolsward Stadhuis.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bolsward.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BordeauxND.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BordeauxPlaceB.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/BotanischerGartenZuerich.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Bouillon.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Gent Hotel de Ville2.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Gent.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/GenuaStrand.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/GenuabeiNacht.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Giessbachfaelle Brienz.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Giethoorn.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Gnesen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Gornij Grad_KATHEDRALE.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Gossensass.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Grad_Burg Grad2.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/GrandDixence.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/GrenoblePanorama.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Groningen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/GrottenvonReclere.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Guebwiller.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Kamnik_Die Franziskaner Bibliothek.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Karlsbad Muehlbrunnkolonnade.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Kazimierz.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/KirchbergAltesRathaus1.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/KlagenfurtDom.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/KleineMeerjungfreu.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/LazienkiparkWarschau.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/LeHavreHafen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/LeMans.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Lednice.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Leeuwarden Fries Museum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Leeuwarden.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Lelystad.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Lemmer.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Leper Halles aux draps.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Leuven Museum fuer Kirchenkunst.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Leuven.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Luxemburg.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/LuzernAltstadt.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/LuzernPicassoMuseum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Lyon.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Maastricht Onze Lieve Vrou...jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Maastricht St Servaasbasiliek.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Maastricht Walmuur.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Maastricht.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/MagiatalMaggia.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Mailand3.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Metlika_Bela Krajina Museum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/MilanoCastelloSforzesco.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/MilanoDom.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/MilazzoBurg.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Novo Mesto_Das Museum.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/ObervellachBurgFalkenstein.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/OdenseeAndersen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Olimje_Kirche und Apotheke in Olimje.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Olomouc.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/OlympischesMuseumLausanne.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/OrleansMaisonJeannedArc.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/OrleansParcFloraldelaSource.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/OstiaAntica.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Ostrow Tumski.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/PoertschachSchlossLeonstain.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Portoroz.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Posen.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Postojna.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Prag Altstaedter Ring.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Prag Waldsteinpalais.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/RouenNotreDame.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/Salzbergwerk Bex.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/SalzbergwerkWieliczka.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/SalzburgFestungHohensalzburg.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/SalzburgResidenz.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/WienMuseumsQuartier.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/WienMusikverein.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/WienRiesenrad.jpg
-deform/static/scripts/jquery-autocomplete/demo/images/WienRingstrasse.jpg
-deform/static/scripts/jquery-autocomplete/demo/index.html
-deform/static/scripts/jquery-autocomplete/demo/indicator.gif
-deform/static/scripts/jquery-autocomplete/demo/json.html
-deform/static/scripts/jquery-autocomplete/demo/localdata.js
-deform/static/scripts/jquery-autocomplete/demo/main.css
-deform/static/scripts/jquery-autocomplete/demo/search.php
-deform/static/scripts/jquery-autocomplete/demo/search.phps
-deform/static/scripts/jquery-autocomplete/jquery.autocomplete.css
-deform/static/scripts/jquery-autocomplete/jquery.autocomplete.js
-deform/static/scripts/jquery-autocomplete/jquery.autocomplete.pack.js
-deform/static/scripts/jquery-autocomplete/lib/jquery.ajaxQueue.js
-deform/static/scripts/jquery-autocomplete/lib/jquery.bgiframe.min.js
-deform/static/scripts/jquery-autocomplete/lib/jquery.js
-deform/static/scripts/jquery-autocomplete/lib/thickbox-compressed.js
-deform/static/scripts/jquery-autocomplete/lib/thickbox.css
-deform/static/scripts/jquery-autocomplete/todo
+*.egg
+*.egg-info
+*.pyc
+*$py.class
+*.pt.py
+*.txt.py
+*~
+.coverage
+.tox/
+nosetests.xml
+env26/
+env25/
+env24/
+env27/
+jyenv/
+pypyenv/
+build/
+dist/
+deform/coverage.xml
View
4 CHANGES.txt
@@ -4,6 +4,10 @@ Changes
Next release
------------
+- Moved to GitHub (https://github.com/Pylons/deform).
+
+- Added tox.ini for testing purposes.
+
- Fix select dropdown behavior on Firefox by fixing CSS (closes
http://bugs.repoze.org/issue152).
View
4 COPYRIGHT.txt
@@ -1,5 +1,5 @@
-Copyright (c) 2010 `Agendaless Consulting and Contributors
+Copyright (c) 2011 `Agendaless Consulting and Contributors
<http://www.agendaless.com>`_, All Rights Reserved
-Portions (c) 2010 `Wufoo <http://wufoo.com>`_, All Rights Reserved
+Portions (c) 2011 `Wufoo <http://wufoo.com>`_, All Rights Reserved
View
4 README.txt
@@ -1,6 +1,6 @@
Deform
======
-A Python HTML form library. Please see `http://docs.repoze.org/deform
-<http://docs.repoze.org/deform>`_ for the documentation.
+A Python HTML form library. Please see
+http://docs.pylonsproject.org/deform/dev/ for the documentation.
View
2 docs/.gitignore
@@ -0,0 +1,2 @@
+_themes/
+_build/
View
62 docs/Makefile
@@ -9,7 +9,7 @@ PAPER =
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d .build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
@@ -23,48 +23,66 @@ help:
@echo " linkcheck to check all external links for integrity"
clean:
- -rm -rf .build/*
+ -rm -rf _build/*
-html:
- mkdir -p .build/html .build/doctrees
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) .build/html
+html: _themes/
+ mkdir -p _build/html _build/doctrees
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
@echo
- @echo "Build finished. The HTML pages are in .build/html."
+ @echo "Build finished. The HTML pages are in _build/html."
+
+text:
+ mkdir -p _build/text _build/doctrees
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) _build/text
+ @echo
+ @echo "Build finished. The HTML pages are in _build/text."
pickle:
- mkdir -p .build/pickle .build/doctrees
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle
+ mkdir -p _build/pickle _build/doctrees
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
@echo
@echo "Build finished; now you can process the pickle files or run"
- @echo " sphinx-web .build/pickle"
+ @echo " sphinx-web _build/pickle"
@echo "to start the sphinx-web server."
web: pickle
-htmlhelp:
- mkdir -p .build/htmlhelp .build/doctrees
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) .build/htmlhelp
+htmlhelp: _themes
+ mkdir -p _build/htmlhelp _build/doctrees
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in .build/htmlhelp."
+ ".hhp project file in _build/htmlhelp."
latex:
- mkdir -p .build/latex .build/doctrees
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex
+ mkdir -p _build/latex _build/doctrees
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
+ cp _static/*.png _build/latex
+ ./convert_images.sh
+ cp _static/latex-warning.png _build/latex
+ cp _static/latex-note.png _build/latex
@echo
- @echo "Build finished; the LaTeX files are in .build/latex."
+ @echo "Build finished; the LaTeX files are in _build/latex."
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
"run these through (pdf)latex."
changes:
- mkdir -p .build/changes .build/doctrees
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) .build/changes
+ mkdir -p _build/changes _build/doctrees
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
@echo
- @echo "The overview file is in .build/changes."
+ @echo "The overview file is in _build/changes."
linkcheck:
- mkdir -p .build/linkcheck .build/doctrees
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) .build/linkcheck
+ mkdir -p _build/linkcheck _build/doctrees
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
- "or in .build/linkcheck/output.txt."
+ "or in _build/linkcheck/output.txt."
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) _build/epub
+ @echo
+ @echo "Build finished. The epub file is in _build/epub."
+
+_themes:
+ git clone git://github.com/Pylons/pylons_sphinx_theme.git _themes
View
10 docs/app.rst
@@ -1,11 +1,11 @@
Example App
===========
-An example is worth a thousand words. Here's an example `repoze.bfg
-<http://bfg.repoze.org>`_ application demonstrating how one might use
+An example is worth a thousand words. Here's an example `Pyramid
+<http://pylonsproject.org>`_ application demonstrating how one might use
:mod:`deform` to render a form.
-.. warning:: :mod:`deform` is not dependent on :mod:`repoze.bfg` at
+.. warning:: :mod:`deform` is not dependent on :mod:`Pyramid` at
all; we use BFG in the examples below only to facilitate
demonstration of an actual end-to-end working application that uses
Deform.
@@ -16,7 +16,7 @@ Here's the Python code:
:linenos:
from paste.httpserver import serve
- from repoze.bfg.configuration import Configurator
+ from pyramid.config import Configurator
from colander import MappingSchema
from colander import SequenceSchema
@@ -76,10 +76,8 @@ Here's the Python code:
if __name__ == '__main__':
settings = dict(reload_templates=True)
config = Configurator(settings=settings)
- config.begin()
config.add_view(form_view, renderer='form.pt')
config.add_static_view('static', 'deform:static')
- config.end()
app = config.make_wsgi_app()
serve(app)
View
21 docs/basics.rst
@@ -97,12 +97,11 @@ Here's a schema that will help us meet those requirements:
schema = Schema()
-The schemas used by Deform come from a package named :term:`Colander`.
-The canonical documentation for Colander exists at
-`http://docs.repoze.org/colander <http://docs.repoze.org/colander>`_.
-To compose complex schemas, you'll need to read it to get comfy with
-the documentation of the default Colander data types. But for now, we
-can play it by ear.
+The schemas used by Deform come from a package named :term:`Colander`. The
+canonical documentation for Colander exists at
+http://docs.pylonsproject.org/colander/dev . To compose complex schemas,
+you'll need to read it to get comfy with the documentation of the default
+Colander data types. But for now, we can play it by ear.
For ease of reading, we've actually defined *three* schemas above, but
we coalesce them all into a single schema instance as ``schema`` in
@@ -123,8 +122,7 @@ Schema Node Objects
documentation about schema nodes in order to prevent you from
needing to switch away from this page to another while trying to
learn about forms. But you can also get much the same information
- at `http://docs.repoze.org/colander
- <http://docs.repoze.org/colander>`_
+ at http://docs.pylonsproject.org/colander/dev/
A schema is composed of one or more *schema node* objects, each
typically of the class :class:`colander.SchemaNode`, usually in a
@@ -206,8 +204,9 @@ which has a *type* value of :class:`colander.Sequence`.
Creating Schemas Without Using a Class Statement (Imperatively)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-See `http://docs.repoze.org/colander/basics.html#defining-a-schema-imperatively
-<http://docs.repoze.org/colander/basics.html#defining-a-schema-imperatively>`_
+See
+`http://docs.pylonsproject.org/colander/dev/basics.html#defining-a-schema-imperatively
+<http://docs.pylonsproject.org/colander/dev/basics.html#defining-a-schema-imperatively>`_
for information about how to create schemas without using a ``class``
statement.
@@ -359,7 +358,7 @@ as the page which serves up the form itself. For example, the URL
``close.png`` image in the ``static/images`` directory in the
:mod:`deform` package and ``/static/scripts/deform.js`` as
``image/png`` content . How you arrange to do this is dependent on
-your web framework. It's done in :mod:`repoze.bfg` imperative
+your web framework. It's done in :mod:`Pyramid` imperative
configuration via:
.. code-block:: python
View
10 docs/components.rst
@@ -34,11 +34,11 @@ as follows:
is used.
.. note:: The `Colander documentation
- <http://docs.repoze.org/colander>` is a resource useful to Deform
- developers. In particular, it details how a :term:`schema` is
- created and used. Deform schemas are Colander schemas. The
- Colander documentation about how they work applies to creating
- Deform schemas as well.
+ <http://docs.pylonsproject.org/colander/dev/>` is a resource useful to
+ Deform developers. In particular, it details how a :term:`schema` is
+ created and used. Deform schemas are Colander schemas. The Colander
+ documentation about how they work applies to creating Deform schemas as
+ well.
A widget is related to one or more :term:`schema node` type objects.
For example, a notional "TextInputWidget" may be responsible for
View
14 docs/conf.py
@@ -48,7 +48,7 @@
# General substitutions.
project = 'deform'
-copyright = '2010, Repoze Developers <repoze-dev@lists.repoze.org>'
+copyright = '2011, Agendaless Consulting <pylons-discuss@googlegroups.com>'
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
@@ -93,10 +93,14 @@
# Options for HTML output
# -----------------------
+sys.path.append(os.path.abspath('_themes'))
+html_theme_path = ['_themes']
+html_theme = 'pylons'
+
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
-html_style = 'repoze.css'
+#html_style = 'pylons.css'
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
@@ -108,7 +112,7 @@
# The name of an image file (within the static path) to place at the top of
# the sidebar.
-html_logo = '.static/logo_hi.gif'
+#html_logo = '.static/logo_hi.gif'
# 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
@@ -119,7 +123,7 @@
# 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']
+#html_static_path = ['.static']
# If not '', a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format.
@@ -175,7 +179,7 @@
# author, document class [howto/manual]).
latex_documents = [
('index', 'deform.tex', 'deform Documentation',
- 'Repoze Developers', 'manual'),
+ 'Pylons Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the
View
8 docs/glossary.rst
@@ -25,12 +25,12 @@ Glossary
A raw application data structure (complex Python objects).
Colander
- A `schema package <http://docs.repoze.org/colander>`_ used by Deform
- to provide serialization and validation facilities.
+ A `schema package <http://docs.pylonsproject.org/colander/dev/>`_ used
+ by Deform to provide serialization and validation facilities.
Peppercorn
- A `package <http://docs.repoze.org/peppercorn>`_ used by Deform
- for strutured form submission value deserialization.
+ A `package <http://docs.pylonsproject.org/peppercorn/dev/>`_ used by
+ Deform for strutured form submission value deserialization.
schema
A nested collection of :term:`schema node` objects representing
View
35 docs/index.rst
@@ -44,32 +44,31 @@ Topics
Demonstration Site
==================
-Visit `deformdemo.repoze.org <http://deformdemo.repoze.org>`_ to view
-an application which demonstrates most of Deform's features. The
-source code for this application is also available in the `deform
-package within the Repoze SVN repository
-<http://svn.repoze.org/deform/trunk/deformdemo>`_.
+Visit `deformdemo.repoze.org <http://deformdemo.repoze.org>`_ to view an
+application which demonstrates most of Deform's features. The source code
+for this application is also available in the `deform package on GitHub
+<https://github.com/Pylons/deform>`_.
Support and Development
=======================
-To report bugs, use the `bug tracker <http://bfg.repoze.org/trac>`_.
+To report bugs, use the `bug tracker
+<https://github.com/Pylons/deform/issues>`_.
-If you've got questions that aren't answered by this documentation,
-contact the `Repoze-dev maillist
-<http://lists.repoze.org/listinfo/repoze-dev>`_ or join the `#repoze
-IRC channel <irc://irc.freenode.net/#repoze>`_.
+If you've got questions that aren't answered by this documentation, contact
+the `Pylons-discuss maillist
+<http://groups.google.com/group/pylons-discuss>`_ or join the `#pylons IRC
+channel <irc://irc.freenode.net/#pylons>`_.
-Browse and check out tagged and trunk versions of :mod:`deform`
-via the `Repoze Subversion repository
-<http://svn.repoze.org/deform/>`_. To check out the trunk
-via Subversion, use this command::
+Browse and check out tagged and trunk versions of :mod:`deform` via the
+`deform package on GitHub <https://github.com/Pylons/deform>`_. To check out
+the trunk, use this command::
- svn co http://svn.repoze.org/deform/trunk deform
+ git clone git://github.com/Pylons/deform.git
-To find out how to become a contributor to :mod:`deform`, please see
-the `Repoze hacking documentation <http://docs.repoze.org/hacking/>`_
-or the `contributor's page <http://repoze.org/contributing.html>`_.
+To find out how to become a contributor to :mod:`deform`, please see the
+`Pylons Project contributor documentation
+<http://docs.pylonsproject.org/#contributing/>`_.
Index and Glossary
==================
View
8 docs/serialization.rst
@@ -94,8 +94,8 @@ widget is completely equivalent to one form control, it doesn't need
to use any Peppercorn structure markers in its rendering.
.. note:: See the `Peppercorn documentation
- <http://docs.repoze.org/peppercorn>`_ for more information about
- using peppercorn structure markers in HTML.
+ <http://docs.pylonsproject.org/peppercorn/dev/>`_ for more information
+ about using peppercorn structure markers in HTML.
Deserialization
---------------
@@ -162,8 +162,8 @@ There would be a ``date`` key in the root of the pstruct mapping which
held three keys: ``day``, ``month``, and ``year``.
.. note:: See the `Peppercorn documentation
- <http://docs.repoze.org/peppercorn>`_ for more information about
- the result of the ``peppercorn.parse`` method and how it relates to
+ <http://docs.pylonsproject.org/peppercorn/dev/>`_ for more information
+ about the result of the ``peppercorn.parse`` method and how it relates to
form control data.
The bits of code that are "closest" to the browser are called
View
34 docs/templates.rst
@@ -58,13 +58,11 @@ See also the :class:`deform.ZPTRendererFactory` class and the
Creating A Renderer (Using an Alternative Templating System)
------------------------------------------------------------
-A :term:`renderer` is used by the each widget implementation in
-:mod:`deform` to render HTML from a templates. By default, each of
-the default Deform widgets uses a template written in the Chameleon
-ZPT templating language. This is usually an appropriate templating
-language choice for users of other "Repoze" software. However, if
-you'd rather use a different templating system for your widgets, you
-can. To do so, you need to:
+A :term:`renderer` is used by the each widget implementation in :mod:`deform`
+to render HTML from a templates. By default, each of the default Deform
+widgets uses a template written in the Chameleon ZPT templating language. If
+you'd rather use a different templating system for your widgets, you can. To
+do so, you need to:
- Write an alternate renderer that uses the templating system of your
choice.
@@ -113,9 +111,10 @@ created for it.
Converting the Default Deform Templates
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The :mod:`deform` package contains a directory named ``templates``.
-You can see the current trunk contents of this directory by `browsing
-SVN <http://svn.repoze.org/deform/trunk/deform/templates>`_. Each file
+The :mod:`deform` package contains a directory named ``templates``. You can
+see the current trunk contents of this directory by `browsing the source
+repository
+<https://github.com/Pylons/deform/tree/master/deform/templates>`_. Each file
within this directory and any of its subdirectories is a Chameleon ZPT
template that is used by a default Deform widget.
@@ -170,14 +169,13 @@ to be used by Deform. In startup code, add something like:
The deform widget system will now use your renderer as the default
renderer.
-Note that calling :meth:`deform.Field.set_default_renderer` will cause
-this renderer to be used by default by all consumer of Repoze in the
-process it's invoked in. This is potentially undesirable: you may
-need the same process to use more than one renderer perhaps because
-that same process houses two different Deform-using systems. In this
-case, instead of using the ``set_default_renderer`` method, you can
-write your application in such a way that it passes a renderer to the
-Form constructor:
+Note that calling :meth:`deform.Field.set_default_renderer` will cause this
+renderer to be used by default by all consumers in the process it's invoked
+in. This is potentially undesirable: you may need the same process to use
+more than one renderer perhaps because that same process houses two different
+Deform-using systems. In this case, instead of using the
+``set_default_renderer`` method, you can write your application in such a way
+that it passes a renderer to the Form constructor:
.. code-block:: python
:linenos:
View
17 setup.py
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2010 Agendaless Consulting and Contributors.
+# Copyright (c) 2011 Agendaless Consulting and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the BSD-like license at
@@ -19,8 +19,13 @@
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.txt')).read()
-CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+
+try:
+ README = open(os.path.join(here, 'README.txt')).read()
+ CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+except:
+ README = ''
+ CHANGES = ''
requires = [
'Chameleon>=1.2.3', # debug arg
@@ -42,9 +47,9 @@
"Programming Language :: Python",
],
keywords='web forms form generation schema validation',
- author="Agendaless Consulting",
- author_email="repoze-dev@lists.repoze.org",
- url="http://www.repoze.org",
+ author="Chris McDonough, Agendaless Consulting",
+ author_email="pylons-discuss@googlegroups.com",
+ url="http://pylonsproject.org",
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
packages=find_packages(),
include_package_data=True,
View
28 tox.ini
@@ -0,0 +1,28 @@
+[tox]
+envlist =
+ py24,py25,py26,py27,jython,cover
+
+# chameleon fails on pypy
+
+[testenv]
+commands =
+ python setup.py test -q
+deps =
+ BeautifulSoup
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ BeautifulSoup
+ nose
+ coverage<3.4
+ nosexcover
+
+# we separate coverage into its own testenv because a) "last run wins" wrt
+# cobertura jenkins reporting and b) pypy and jython can't handle any
+# combination of versions of coverage and nosexcover that i can find.
+# coverage <3.4 is required by nosexcover 1.0.4.
+

0 comments on commit 7b8a521

Please sign in to comment.