Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: python-formencode

python-formencode (1.3.0-6ubuntu1) groovy; urgency=low * Merge from Debian unstable. Remaining changes: - d/p/fix-tld-regex.diff: Drop overly aggressive TLD regex, since admins frequently define their own. LP: #1569077 - d/p/ubuntu-disable-tests.diff: Disable some tests to allow formencode to build. - d/p/*: Handle CRLF differences in patches as the Ubuntu package's upstream source contains CRLFs. - d/watch: Update to use pypi.debian.net. - d/python-formencode.examples: Dropped as the current Ubuntu package doesn't have the upstream examples/ directory. * Dropped changes, included in Debian: - Disable tests that use python-pycountry. - Remove python-pycountry from Build-Depends (Closes: #944034). -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 07 May 2020 17:15:45 -0700

Modifications :
  1. Download patch formencode/i18n/sv/LC_MESSAGES/FormEncode.po
  2. Download patch docs/modules/foreach.txt

    --- 1.3.0-6/docs/modules/foreach.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/foreach.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,10 +1,10 @@ -:mod:`formencode.foreach` -- Validate items in a list -===================================================== - -.. automodule:: formencode.foreach - -Module Contents ---------------- - -.. autoclass:: ForEach - +:mod:`formencode.foreach` -- Validate items in a list +===================================================== + +.. automodule:: formencode.foreach + +Module Contents +--------------- + +.. autoclass:: ForEach +
  3. Download patch formencode/i18n/es/LC_MESSAGES/FormEncode.po
  4. Download patch debian/patches/0003-Fix-a-collection-of-errors-from-msgfmt.patch
  5. Download patch formencode/i18n/da/LC_MESSAGES/FormEncode.po
  6. Download patch formencode/htmlfill_schemabuilder.py
  7. Download patch docs/Makefile

    --- 1.3.0-6/docs/Makefile 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/Makefile 1970-01-01 00:00:00.000000000 +0000 @@ -1,130 +0,0 @@ -# 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 singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man 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 " singlehtml to make a single large HTML file" - @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 " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " text to make text files" - @echo " man to make manual pages" - @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." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -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/FormEncode.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/FormEncode.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/FormEncode" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/FormEncode" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - make -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -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."
  8. Download patch docs/index.txt

    --- 1.3.0-6/docs/index.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/index.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,80 +1,80 @@ -FormEncode -========== - - -Introduction ------------- - -FormEncode is a validation and form generation package. The -validation can be used separately from the form generation. The -validation works on compound data structures, with all parts being -nestable. It is separate from HTTP or any other input mechanism. - -`Ian Bicking`_ is the author of FormEncode. - -.. _Ian Bicking: http://ianbicking.org - - -What's New ----------- - -.. toctree:: - :maxdepth: 1 - - whatsnew-1.3 - whatsnew-1.2.5 - whatsnew-0-to-1.2.4 - - -Documentation -------------- - -.. toctree:: - :maxdepth: 1 - - Validator - htmlfill - ToDo - Design - history - i18n - modules - - -Other Links ------------ - -.. toctree:: - :maxdepth: 1 - - community - download - - -Indices and Search ------------------- - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` - - -Project Hosting ---------------- - -.. image:: _static/sourceforge.png - :align: left - :height: 40 - :width: 150 - :alt: Hosted by SourceForge - -.. image:: _static/bitbucket.png - :align: left - :height: 40 - :width: 127 - :alt: Hosted by Bitbucket - -.. image:: _static/github.png - :height: 40 - :width: 90 - :alt: Hosted by GitHub +FormEncode +========== + + +Introduction +------------ + +FormEncode is a validation and form generation package. The +validation can be used separately from the form generation. The +validation works on compound data structures, with all parts being +nestable. It is separate from HTTP or any other input mechanism. + +`Ian Bicking`_ is the author of FormEncode. + +.. _Ian Bicking: http://ianbicking.org + + +What's New +---------- + +.. toctree:: + :maxdepth: 1 + + whatsnew-1.3 + whatsnew-1.2.5 + whatsnew-0-to-1.2.4 + + +Documentation +------------- + +.. toctree:: + :maxdepth: 1 + + Validator + htmlfill + ToDo + Design + history + i18n + modules + + +Other Links +----------- + +.. toctree:: + :maxdepth: 1 + + community + download + + +Indices and Search +------------------ + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + + +Project Hosting +--------------- + +.. image:: _static/sourceforge.png + :align: left + :height: 40 + :width: 150 + :alt: Hosted by SourceForge + +.. image:: _static/bitbucket.png + :align: left + :height: 40 + :width: 127 + :alt: Hosted by Bitbucket + +.. image:: _static/github.png + :height: 40 + :width: 90 + :alt: Hosted by GitHub
  9. Download patch formencode/i18n/nb_NO/LC_MESSAGES/FormEncode.po
  10. Download patch formencode/i18n/de/LC_MESSAGES/FormEncode.po
  11. Download patch examples/webware_example.ini

    --- 1.3.0-6/examples/webware_example.ini 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/examples/webware_example.ini 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -# To use this example install Paste: http://svn.pythonpaste.org -# and run: -# $ PYTHONPATH=path/to/examples paster serve webware_example.ini -# and open: -# http://localhost:9999/ - -[app:main] -use = egg:PasteWebKit -servlet_directory = WebwareExamples -debug = True - -[server:main] -use = egg:PasteScript#wsgiutils -host = 127.0.0.1 -port = 9999 - -[server:flup] -use = egg:PasteScript#flup_scgi_thread -host = 127.0.0.1 -port = 5050
  12. Download patch formencode/htmlrename.py

    --- 1.3.0-6/formencode/htmlrename.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/htmlrename.py 2012-06-16 12:13:36.000000000 +0000 @@ -1,78 +1,78 @@ -""" -Module to rename form fields -""" - -from formencode.rewritingparser import RewritingParser - -__all__ = ['rename', 'add_prefix'] - - -def rename(form, rename_func): - """ - Rename all the form fields in the form (a string), using rename_func - - rename_func will be called with one argument, the name of the - field, and should return a new name. - """ - p = RenamingParser(rename_func) - p.feed(form) - p.close() - return p.text() - - -def add_prefix(form, prefix, dotted=False): - """ - Add the given prefix to all the fields in the form. - - If dotted is true, then add a dot between prefix and the previous - name. Empty fields will use the prefix as the name (with no dot). - """ - def rename_func(field_name): - if dotted: - if field_name: - return prefix + '.' + field_name - else: - return prefix - else: - return prefix + field_name - return rename(form, rename_func) - - -class RenamingParser(RewritingParser): - - def __init__(self, rename_func): - RewritingParser.__init__(self) - self.rename_func = rename_func - - def close(self): - self.handle_misc(None) - RewritingParser.close(self) - self._text = self._get_text() - - def text(self): - try: - return self._text - except AttributeError: - raise Exception( - "You must .close() a parser instance before getting " - "the text from it") - - def handle_starttag(self, tag, attrs, startend=False): - self.write_pos() - if tag in ('input', 'textarea', 'select'): - self.handle_field(tag, attrs, startend) - else: - return - - def handle_startendtag(self, tag, attrs): - return self.handle_starttag(tag, attrs, True) - - def handle_field(self, tag, attrs, startend): - name = self.get_attr(attrs, 'name', '') - new_name = self.rename_func(name) - if name is None: - self.del_attr(attrs, 'name') - else: - self.set_attr(attrs, 'name', new_name) - self.write_tag(tag, attrs) - self.skip_next = True +""" +Module to rename form fields +""" + +from formencode.rewritingparser import RewritingParser + +__all__ = ['rename', 'add_prefix'] + + +def rename(form, rename_func): + """ + Rename all the form fields in the form (a string), using rename_func + + rename_func will be called with one argument, the name of the + field, and should return a new name. + """ + p = RenamingParser(rename_func) + p.feed(form) + p.close() + return p.text() + + +def add_prefix(form, prefix, dotted=False): + """ + Add the given prefix to all the fields in the form. + + If dotted is true, then add a dot between prefix and the previous + name. Empty fields will use the prefix as the name (with no dot). + """ + def rename_func(field_name): + if dotted: + if field_name: + return prefix + '.' + field_name + else: + return prefix + else: + return prefix + field_name + return rename(form, rename_func) + + +class RenamingParser(RewritingParser): + + def __init__(self, rename_func): + RewritingParser.__init__(self) + self.rename_func = rename_func + + def close(self): + self.handle_misc(None) + RewritingParser.close(self) + self._text = self._get_text() + + def text(self): + try: + return self._text + except AttributeError: + raise Exception( + "You must .close() a parser instance before getting " + "the text from it") + + def handle_starttag(self, tag, attrs, startend=False): + self.write_pos() + if tag in ('input', 'textarea', 'select'): + self.handle_field(tag, attrs, startend) + else: + return + + def handle_startendtag(self, tag, attrs): + return self.handle_starttag(tag, attrs, True) + + def handle_field(self, tag, attrs, startend): + name = self.get_attr(attrs, 'name', '') + new_name = self.rename_func(name) + if name is None: + self.del_attr(attrs, 'name') + else: + self.set_attr(attrs, 'name', new_name) + self.write_tag(tag, attrs) + self.skip_next = True
  13. Download patch formencode/tests/non_empty.txt

    --- 1.3.0-6/formencode/tests/non_empty.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/non_empty.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,81 +1,81 @@ -michele@ionic:~/Progetti/TurboGears/svn/thirdparty/formencode/formencode$ python -Python 2.4.3 (#2, Mar 30 2006, 14:45:01) -[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu3)] on linux2 -Type "help", "copyright", "credits" or "license" for more information. ->>> from formencode import validators ->>> int = validators.Int() ->>> int.not_empty -False ->>> int.to_python('') ->>> int.to_python(None) ->>> int.to_python(0) -0 ->>> int.to_python(False) -0 ->>> int.to_python('1') -1 ->>> int.to_python('1a') -Traceback (most recent call last): - ... -Invalid: Please enter an integer value ->>> int.not_empty = True ->>> int.to_python('') -Traceback (most recent call last): - ... -Invalid: Please enter a value ->>> int.to_python(None) -Traceback (most recent call last): - ... -Invalid: Please enter a value ->>> int.to_python('1') -1 ->>> int.to_python('1a') -Traceback (most recent call last): - ... -Invalid: Please enter an integer value ->>> from formencode import compound ->>> any = compound.Any(validators.Int(), validators.NotEmpty()) ->>> any.not_empty -False ->>> any.to_python('') ->>> any.to_python(None) ->>> any = compound.Any(validators.Int(), validators.Empty()) ->>> any.not_empty -False ->>> any = compound.All(validators.Int(), validators.NotEmpty()) ->>> any.not_empty -True ->>> any.to_python('') -Traceback (most recent call last): - ... -Invalid: Please enter a value ->>> from formencode.foreach import ForEach ->>> from formencode.validators import Int ->>> foreach = ForEach(Int()) ->>> foreach.to_python('') -[] ->>> foreach.to_python(None) -[] ->>> foreach.to_python('1') -[1] ->>> foreach.to_python('2') -[2] ->>> foreach.to_python(['2', '3']) -[2, 3] ->>> foreach.not_empty = True ->>> foreach.to_python('1') -[1] ->>> foreach.to_python('') -Traceback (most recent call last): - ... -Invalid: Please enter a value ->>> foreach.if_empty = [] ->>> foreach.to_python('') -Traceback (most recent call last): - ... -Invalid: Please enter a value ->>> foreach.not_empty = False ->>> foreach.to_python('') -[] ->>> foreach.not_empty = False - +michele@ionic:~/Progetti/TurboGears/svn/thirdparty/formencode/formencode$ python +Python 2.4.3 (#2, Mar 30 2006, 14:45:01) +[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu3)] on linux2 +Type "help", "copyright", "credits" or "license" for more information. +>>> from formencode import validators +>>> int = validators.Int() +>>> int.not_empty +False +>>> int.to_python('') +>>> int.to_python(None) +>>> int.to_python(0) +0 +>>> int.to_python(False) +0 +>>> int.to_python('1') +1 +>>> int.to_python('1a') +Traceback (most recent call last): + ... +Invalid: Please enter an integer value +>>> int.not_empty = True +>>> int.to_python('') +Traceback (most recent call last): + ... +Invalid: Please enter a value +>>> int.to_python(None) +Traceback (most recent call last): + ... +Invalid: Please enter a value +>>> int.to_python('1') +1 +>>> int.to_python('1a') +Traceback (most recent call last): + ... +Invalid: Please enter an integer value +>>> from formencode import compound +>>> any = compound.Any(validators.Int(), validators.NotEmpty()) +>>> any.not_empty +False +>>> any.to_python('') +>>> any.to_python(None) +>>> any = compound.Any(validators.Int(), validators.Empty()) +>>> any.not_empty +False +>>> any = compound.All(validators.Int(), validators.NotEmpty()) +>>> any.not_empty +True +>>> any.to_python('') +Traceback (most recent call last): + ... +Invalid: Please enter a value +>>> from formencode.foreach import ForEach +>>> from formencode.validators import Int +>>> foreach = ForEach(Int()) +>>> foreach.to_python('') +[] +>>> foreach.to_python(None) +[] +>>> foreach.to_python('1') +[1] +>>> foreach.to_python('2') +[2] +>>> foreach.to_python(['2', '3']) +[2, 3] +>>> foreach.not_empty = True +>>> foreach.to_python('1') +[1] +>>> foreach.to_python('') +Traceback (most recent call last): + ... +Invalid: Please enter a value +>>> foreach.if_empty = [] +>>> foreach.to_python('') +Traceback (most recent call last): + ... +Invalid: Please enter a value +>>> foreach.not_empty = False +>>> foreach.to_python('') +[] +>>> foreach.not_empty = False +
  14. Download patch formencode/i18n/FormEncode.pot
  15. Download patch formencode/i18n/pl/LC_MESSAGES/FormEncode.po
  16. Download patch formencode/i18n/ja/LC_MESSAGES/FormEncode.po
  17. Download patch formencode/i18n/it/LC_MESSAGES/FormEncode.po
  18. Download patch debian/patches/fix-tld-regex.diff

    --- 1.3.0-6/debian/patches/fix-tld-regex.diff 1970-01-01 00:00:00.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/fix-tld-regex.diff 2016-04-11 23:12:17.000000000 +0000 @@ -0,0 +1,11 @@ +--- a/formencode/validators.py ++++ b/formencode/validators.py +@@ -1450,7 +1450,7 @@ + (?: # ip or domain + (?P<ip>(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))| + (?P<domain>[a-z0-9][a-z0-9\-]{,62}\.)* # subdomain +- (?P<tld>[a-z]{2,63}|xn--[a-z0-9\-]{2,59}) # top level domain ++ (?P<tld>[a-z]{2,63}|xn--[a-z0-9\-]{2,59}|[a-z0-9]{1,63}|[a-z0-9][a-z0-9\-]{,61}[a-z0-9]) # top level domain + ) + (?::[0-9]{1,5})? # port + # files/delims/etc
  19. Download patch formencode/i18n/pt_BR/LC_MESSAGES/FormEncode.po
  20. Download patch examples/WebwareExamples/__init__.py

    --- 1.3.0-6/examples/WebwareExamples/__init__.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/examples/WebwareExamples/__init__.py 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -#
  21. Download patch examples/WebwareExamples/index.py

    --- 1.3.0-6/examples/WebwareExamples/index.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/examples/WebwareExamples/index.py 1970-01-01 00:00:00.000000000 +0000 @@ -1,101 +0,0 @@ -from formencode import Invalid, htmlfill, Schema, validators - -from WebKit.Page import Page - - -page_style = ''' -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> - <head> - <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <title>Tell me about yourself</title> - <style type="text/css"> - .error {background-color: #ffdddd} - .error-message {border: 2px solid #f00} - </style> - </head> - <body> - - <h1>Tell me about yourself</h1> - <p><i>A FormEncode example</i></p> - - %s - - </body></html>''' - -form_template = ''' -<form action="" method="POST"> - -<p>Your name:<br> -<form:error name="name"> -<input type="text" name="name"></p> - -<p>Your age:<br> -<form:error name="age"> -<input type="text" name="age"></p> - -<p>Your favorite color:<br> -<form:error name="color"> -<input type="checkbox" value="red" name="color"> Red<br> -<input type="checkbox" value="blue" name="color"> Blue<br> -<input type="checkbox" value="black" name="color"> Black<br> -<input type="checkbox" value="green" name="color"> Green<br> -<input type="checkbox" value="pink" name="color"> Pink</p> - -<input type="submit" name="_action_save" value="Submit"> -</form>''' - -response_template = ''' -<h2>Hello, %(name)s!</h2> -<p>You are %(age)d years old -and your favorite color is %(color)s.</p>''' - - -class FormSchema(Schema): - name = validators.String(not_empty=True) - age = validators.Int(min=13, max=99) - color = validators.OneOf(['red', 'blue', 'black', 'green']) - filter_extra_fields = True - allow_extra_fields = True - - -class index(Page): - - def awake(self, trans): - Page.awake(self, trans) - self.rendered_form = None - - def actions(self): - return ['save'] - - def save(self): - fields = self.request().fields() - try: - fields = FormSchema.to_python(fields, self) - except Invalid, e: - errors = dict((k, v.encode('utf-8')) - for k, v in e.unpack_errors().iteritems()) - print "Errors:", errors - self.rendered_form = htmlfill.render(form_template, - defaults=fields, errors=errors) - self.writeHTML() - else: - self.doAction(fields) - - def doAction(self, fields): - print "Fields:", fields - self.rendered_form = response_template % fields - self.writeHTML() - - def writeHTML(self): - if self.rendered_form is None: - self.rendered_form = htmlfill.render(form_template, - defaults=self.getDefaults()) - self.write(page_style % self.rendered_form) - - def getDefaults(self): - return dict(age='enter your age', color=['blue']) - - def preAction(self, trans): - pass - postAction = preAction
  22. Download patch docs/modules.txt

    --- 1.3.0-6/docs/modules.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,21 +1,21 @@ -Reference -========= - -.. toctree:: - - modules/api - modules/compound - modules/declarative - modules/doctest_xml_compare - modules/exc - modules/foreach - modules/htmlrename - modules/htmlfill - modules/htmlfill_schemabuilder - modules/htmlgen - modules/national - modules/schema - modules/validators - modules/variabledecode - - +Reference +========= + +.. toctree:: + + modules/api + modules/compound + modules/declarative + modules/doctest_xml_compare + modules/exc + modules/foreach + modules/htmlrename + modules/htmlfill + modules/htmlfill_schemabuilder + modules/htmlgen + modules/national + modules/schema + modules/validators + modules/variabledecode + + Binary files 1.3.0-6/docs/_static/bitbucket.png and 1.3.0-6ubuntu1/docs/_static/bitbucket.png differ Binary files 1.3.0-6/docs/_static/github.png and 1.3.0-6ubuntu1/docs/_static/github.png differ Binary files 1.3.0-6/docs/_static/sourceforge.png and 1.3.0-6ubuntu1/docs/_static/sourceforge.png differ
  23. Download patch docs/modules/exc.txt

    --- 1.3.0-6/docs/modules/exc.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/exc.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,9 +1,9 @@ -:mod:`formencode.exc` -- Custom exceptions and warnings -=============================================================== - -.. automodule:: formencode.exc - -Module Contents ---------------- - -.. autoclass:: FERuntimeWarning +:mod:`formencode.exc` -- Custom exceptions and warnings +=============================================================== + +.. automodule:: formencode.exc + +Module Contents +--------------- + +.. autoclass:: FERuntimeWarning
  24. Download patch debian/patches/remove-dns-tests.diff

    --- 1.3.0-6/debian/patches/remove-dns-tests.diff 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/remove-dns-tests.diff 2020-01-13 03:44:39.000000000 +0000 @@ -13,46 +13,46 @@ index c332ec9..cfba7c8 100644 --- a/formencode/validators.py +++ b/formencode/validators.py @@ -1288,20 +1288,6 @@ class Email(FancyValidator): - 'nobody@xn--m7r7ml7t24h.com' - >>> e.to_python('o*reilly@test.com') - 'o*reilly@test.com' -- >>> e = Email(resolve_domain=True) -- >>> e.resolve_domain -- True -- >>> e.to_python('doesnotexist@colorstudy.com') -- 'doesnotexist@colorstudy.com' -- >>> e.to_python('test@nyu.edu') -- 'test@nyu.edu' -- >>> # NOTE: If you do not have dnspython installed this example won't work: -- >>> e.to_python('test@thisdomaindoesnotexistithinkforsure.com') -- Traceback (most recent call last): -- ... -- Invalid: The domain of the email address does not exist (the portion after the @: thisdomaindoesnotexistithinkforsure.com) -- >>> e.to_python(u'test@google.com') -- u'test@google.com' - >>> e = Email(not_empty=False) - >>> e.to_python('') - + 'nobody@xn--m7r7ml7t24h.com' + >>> e.to_python('o*reilly@test.com') + 'o*reilly@test.com' +- >>> e = Email(resolve_domain=True) +- >>> e.resolve_domain +- True +- >>> e.to_python('doesnotexist@colorstudy.com') +- 'doesnotexist@colorstudy.com' +- >>> e.to_python('test@nyu.edu') +- 'test@nyu.edu' +- >>> # NOTE: If you do not have dnspython installed this example won't work: +- >>> e.to_python('test@thisdomaindoesnotexistithinkforsure.com') +- Traceback (most recent call last): +- ... +- Invalid: The domain of the email address does not exist (the portion after the @: thisdomaindoesnotexistithinkforsure.com) +- >>> e.to_python(u'test@google.com') +- u'test@google.com' + >>> e = Email(not_empty=False) + >>> e.to_python('') + @@ -1429,22 +1415,6 @@ class URL(FancyValidator): - Traceback (most recent call last): - ... - Invalid: That is not a valid URL -- >>> u = URL(add_http=False, check_exists=True) -- >>> u.to_python('http://google.com') -- 'http://google.com' -- >>> u.to_python('google.com') -- Traceback (most recent call last): -- ... -- Invalid: You must start your URL with http://, https://, etc -- >>> u.to_python('http://www.formencode.org/does/not/exist/page.html') -- Traceback (most recent call last): -- ... -- Invalid: The server responded that the page could not be found -- >>> u.to_python('http://this.domain.does.not.exist.example.org/test.html') -- ... # doctest: +ELLIPSIS -- Traceback (most recent call last): -- ... -- Invalid: An error occured when trying to connect to the server: ... - - If you want to allow addresses without a TLD (e.g., ``localhost``) you can do:: - + Traceback (most recent call last): + ... + Invalid: That is not a valid URL +- >>> u = URL(add_http=False, check_exists=True) +- >>> u.to_python('http://google.com') +- 'http://google.com' +- >>> u.to_python('google.com') +- Traceback (most recent call last): +- ... +- Invalid: You must start your URL with http://, https://, etc +- >>> u.to_python('http://www.formencode.org/does/not/exist/page.html') +- Traceback (most recent call last): +- ... +- Invalid: The server responded that the page could not be found +- >>> u.to_python('http://this.domain.does.not.exist.example.org/test.html') +- ... # doctest: +ELLIPSIS +- Traceback (most recent call last): +- ... +- Invalid: An error occured when trying to connect to the server: ... + + If you want to allow addresses without a TLD (e.g., ``localhost``) you can do:: +
  25. Download patch docs/make.bat

    --- 1.3.0-6/docs/make.bat 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/make.bat 1970-01-01 00:00:00.000000000 +0000 @@ -1,170 +0,0 @@ -@ECHO OFF - -REM Command file for Sphinx documentation - -if "%SPHINXBUILD%" == "" ( - 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. singlehtml to make a single large HTML file - 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. devhelp to make HTML files and a Devhelp project - echo. epub to make an epub - echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter - echo. text to make text files - echo. man to make manual pages - 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 - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/html. - goto end -) - -if "%1" == "dirhtml" ( - %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. - goto end -) - -if "%1" == "singlehtml" ( - %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. - goto end -) - -if "%1" == "pickle" ( - %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the pickle files. - goto end -) - -if "%1" == "json" ( - %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can process the JSON files. - goto end -) - -if "%1" == "htmlhelp" ( - %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp - if errorlevel 1 exit /b 1 - 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 - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; now you can run "qcollectiongenerator" with the ^ -.qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\FormEncode.qhcp - echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\FormEncode.ghc - goto end -) - -if "%1" == "devhelp" ( - %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. - goto end -) - -if "%1" == "epub" ( - %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The epub file is in %BUILDDIR%/epub. - goto end -) - -if "%1" == "latex" ( - %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex - if errorlevel 1 exit /b 1 - echo. - echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. - goto end -) - -if "%1" == "text" ( - %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The text files are in %BUILDDIR%/text. - goto end -) - -if "%1" == "man" ( - %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man - if errorlevel 1 exit /b 1 - echo. - echo.Build finished. The manual pages are in %BUILDDIR%/man. - goto end -) - -if "%1" == "changes" ( - %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes - if errorlevel 1 exit /b 1 - echo. - echo.The overview file is in %BUILDDIR%/changes. - goto end -) - -if "%1" == "linkcheck" ( - %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck - if errorlevel 1 exit /b 1 - 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 - if errorlevel 1 exit /b 1 - echo. - echo.Testing of doctests in the sources finished, look at the ^ -results in %BUILDDIR%/doctest/output.txt. - goto end -) - -:end
  26. Download patch formencode/fieldstorage.py

    --- 1.3.0-6/formencode/fieldstorage.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/fieldstorage.py 2013-03-11 22:27:30.000000000 +0000 @@ -1,11 +1,11 @@ -## FormEncode, a Form processor -## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.com> -""" -Wrapper class for use with cgi.FieldStorage types for file uploads -""" - -import cgi - - -def convert_fieldstorage(fs): - return fs if fs.filename else None +## FormEncode, a Form processor +## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.com> +""" +Wrapper class for use with cgi.FieldStorage types for file uploads +""" + +import cgi + + +def convert_fieldstorage(fs): + return fs if fs.filename else None
  27. Download patch docs/modules/variabledecode.txt

    --- 1.3.0-6/docs/modules/variabledecode.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/variabledecode.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,12 +1,12 @@ -:mod:`formencode.variabledecode` -- Turn flat HTML form submissions into nested structures -========================================================================================== - -.. automodule:: formencode.variabledecode - -Module Contents ---------------- - -.. autofunction:: variable_decode -.. autofunction:: variable_encode -.. autoclass:: NestedVariables - +:mod:`formencode.variabledecode` -- Turn flat HTML form submissions into nested structures +========================================================================================== + +.. automodule:: formencode.variabledecode + +Module Contents +--------------- + +.. autofunction:: variable_decode +.. autofunction:: variable_encode +.. autoclass:: NestedVariables +
  28. Download patch formencode/htmlfill.py
  29. Download patch docs/modules/doctest_xml_compare.txt

    --- 1.3.0-6/docs/modules/doctest_xml_compare.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/doctest_xml_compare.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,11 +1,11 @@ -:mod:`formencode.doctest_xml_compare` -- XML-based comparison of Doctest output -=============================================================================== - -.. automodule:: formencode.doctest_xml_compare - -Module Contents ---------------- - -.. autofunction:: xml_compare -.. autofunction:: install - +:mod:`formencode.doctest_xml_compare` -- XML-based comparison of Doctest output +=============================================================================== + +.. automodule:: formencode.doctest_xml_compare + +Module Contents +--------------- + +.. autofunction:: xml_compare +.. autofunction:: install +
  30. Download patch debian/control

    --- 1.3.0-6/debian/control 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/control 2020-05-08 00:15:45.000000000 +0000 @@ -9,7 +9,8 @@ Build-Depends: python3-pycountry <!nocheck>, python3-nose <!nocheck>, python3-setuptools, -Maintainer: Fabio Tranchitella <kobold@debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Fabio Tranchitella <kobold@debian.org> Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>, Piotr Ożarowski <piotr@debian.org>,
  31. Download patch docs/i18n.txt

    --- 1.3.0-6/docs/i18n.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/i18n.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,35 +1,35 @@ -FormEncode Internationalization (gettext) -+++++++++++++++++++++++++++++++++++++++++ - -:author: Gregor Horvath <gh at gregor-horvath dot com> 2006 - -There are different translation options available: - -Domain "FormEncode" -^^^^^^^^^^^^^^^^^^^ - -for standalone use of FormEncode. The language to use is determined out of the local system (see gettext documentation http://docs.python.org/lib/node733.html). Optionally you can also set the language or the domain explicitly with the function. - -example: -formencode.api.set_stdtranslation(domain="FormEncode", languages=["de"]) - -The mo files are located in the i18n subdirectory of the formencode installation. - -state._ -^^^^^^^ -A custom _ gettext function provided as attribute of the state object. - -__builtins__._ -^^^^^^^^^^^^^^ -A custom _ gettext function provided in the builtin namespace. -This function is only used when: - -Validator.use_builtin_gettext == True (True is default) - - -Without translation -^^^^^^^^^^^^^^^^^^^ - -If no translation mechanism is found a fallback returns the plain string. - - +FormEncode Internationalization (gettext) ++++++++++++++++++++++++++++++++++++++++++ + +:author: Gregor Horvath <gh at gregor-horvath dot com> 2006 + +There are different translation options available: + +Domain "FormEncode" +^^^^^^^^^^^^^^^^^^^ + +for standalone use of FormEncode. The language to use is determined out of the local system (see gettext documentation http://docs.python.org/lib/node733.html). Optionally you can also set the language or the domain explicitly with the function. + +example: +formencode.api.set_stdtranslation(domain="FormEncode", languages=["de"]) + +The mo files are located in the i18n subdirectory of the formencode installation. + +state._ +^^^^^^^ +A custom _ gettext function provided as attribute of the state object. + +__builtins__._ +^^^^^^^^^^^^^^ +A custom _ gettext function provided in the builtin namespace. +This function is only used when: + +Validator.use_builtin_gettext == True (True is default) + + +Without translation +^^^^^^^^^^^^^^^^^^^ + +If no translation mechanism is found a fallback returns the plain string. + +
  32. Download patch docs/modules/htmlfill_schemabuilder.txt

    --- 1.3.0-6/docs/modules/htmlfill_schemabuilder.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/htmlfill_schemabuilder.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,10 +1,10 @@ -:mod:`formencode.htmlfill_schemabuilder` -- Read a Schema from an HTML Form -=========================================================================== - -.. automodule:: formencode.htmlfill_schemabuilder - -Module Contents ---------------- - -.. autofunction:: parse_schema -.. autoclass:: SchemaBuilder +:mod:`formencode.htmlfill_schemabuilder` -- Read a Schema from an HTML Form +=========================================================================== + +.. automodule:: formencode.htmlfill_schemabuilder + +Module Contents +--------------- + +.. autofunction:: parse_schema +.. autoclass:: SchemaBuilder
  33. Download patch formencode/tests/htmlfill_data/data-form-last-element.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-form-last-element.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-form-last-element.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,7 +1,7 @@ -<select name='num'><option -value='1'>ONE</option></select> ----- -<select name="num"><option value="1" -selected="selected">ONE</option></select> ----- -defaults={"num":"1"} +<select name='num'><option +value='1'>ONE</option></select> +---- +<select name="num"><option value="1" +selected="selected">ONE</option></select> +---- +defaults={"num":"1"}
  34. Download patch docs/whatsnew-1.3.txt

    --- 1.3.0-6/docs/whatsnew-1.3.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/whatsnew-1.3.txt 2015-02-07 13:07:20.000000000 +0000 @@ -1,32 +1,32 @@ -What's New In FormEncode 1.3 -============================== - -This article explains the latest changes in `FormEncode` version 1.3 -compared to its predecessor, `FormEncode` 1.2.5. - - -Feature Additions ------------------ - - - Support validation of email addresses with unicode domain names. - - -Backwards Incompatibilities ---------------------------- - - - `FormEncode` 1.3 is no longer compatible with Python 2.3, 2.4, or 2.5. - - The reason? We could not easily "straddle" Python 2 and 3 versions and support Python 2 versions older than Python 2.6. You will need Python 2.6 or better to run this version of FormEncode. If you need to use Python 2.5, you should use the most recent 1.2.X release of FormEncode. - -- `FormEncode` now also runs under Python 3.2 and 3.3. - - Note that under Python 3, the `String` validator is now identical to the `UnicodeString` validator. If you really want to convert to byte strings, use the `ByteString` validator instead. - - - Validation of email addresses using `resolve_domain` option now requires the dnspython third party library instead of pyDNS. pyDNS also does not support Python 3. - - - The `FancyValidator` methods `_to_python`, `_from_python`, `validate_python` and `validate_other` have been renamed to `_convert_to_python`, `_convert_from_python`, `_validate_python` and `_validate_other`, respectively. This has been done to clarify that while these methods are meant to be overridden by custom validators, they are not part of the external API. They are only helper methods that are called internally by the external methods `to_python` and `from_python`, which constitute the external API. Particularly, do not assume that `_validate_python` catches all validation errors that a call of `to_python` will catch. Please have a look at the `FancyValidator` docstring and source if you're unsure how these methods work together. For the same reason, the `CompoundValidator` method `attempt_convert` has been renamed to `_attempt_convert`. For now, the old method names will still work, but they will output deprecation warnings. - - -Documentation Enhancements --------------------------- - +What's New In FormEncode 1.3 +============================== + +This article explains the latest changes in `FormEncode` version 1.3 +compared to its predecessor, `FormEncode` 1.2.5. + + +Feature Additions +----------------- + + - Support validation of email addresses with unicode domain names. + + +Backwards Incompatibilities +--------------------------- + + - `FormEncode` 1.3 is no longer compatible with Python 2.3, 2.4, or 2.5. + + The reason? We could not easily "straddle" Python 2 and 3 versions and support Python 2 versions older than Python 2.6. You will need Python 2.6 or better to run this version of FormEncode. If you need to use Python 2.5, you should use the most recent 1.2.X release of FormEncode. + +- `FormEncode` now also runs under Python 3.2 and 3.3. + + Note that under Python 3, the `String` validator is now identical to the `UnicodeString` validator. If you really want to convert to byte strings, use the `ByteString` validator instead. + + - Validation of email addresses using `resolve_domain` option now requires the dnspython third party library instead of pyDNS. pyDNS also does not support Python 3. + + - The `FancyValidator` methods `_to_python`, `_from_python`, `validate_python` and `validate_other` have been renamed to `_convert_to_python`, `_convert_from_python`, `_validate_python` and `_validate_other`, respectively. This has been done to clarify that while these methods are meant to be overridden by custom validators, they are not part of the external API. They are only helper methods that are called internally by the external methods `to_python` and `from_python`, which constitute the external API. Particularly, do not assume that `_validate_python` catches all validation errors that a call of `to_python` will catch. Please have a look at the `FancyValidator` docstring and source if you're unsure how these methods work together. For the same reason, the `CompoundValidator` method `attempt_convert` has been renamed to `_attempt_convert`. For now, the old method names will still work, but they will output deprecation warnings. + + +Documentation Enhancements +-------------------------- +
  35. Download patch formencode/exc.py

    --- 1.3.0-6/formencode/exc.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/exc.py 2012-06-16 12:13:36.000000000 +0000 @@ -1,10 +1,10 @@ -""" -Custom exceptions and warnings. -""" - -__all__ = ['FERunTimeWarning'] - - -class FERuntimeWarning(RuntimeWarning): - """ Run time warning. """ - pass +""" +Custom exceptions and warnings. +""" + +__all__ = ['FERunTimeWarning'] + + +class FERuntimeWarning(RuntimeWarning): + """ Run time warning. """ + pass
  36. Download patch formencode/tests/htmlfill_data/data-schema1.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-schema1.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-schema1.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,24 +1,24 @@ -<form> -<input type="text" form:required=t name="v"> -<input type="text" form:required="no" name="v2"> -<input type="text" form:validate="regex:[a-z]*" name="username" - form:message="lower case only!"> -<input type="text" form:validate="email" form:required="no" - name="email"> -<input type="text" form:validate="dateconverter" name="birth"> -<input type="text" name="whatever"> -</form> ----- -<form> -<input type="text" name="v" value=""> -<input type="text" name="v2" value=""> -<input type="text" name="username" value=""> -<input type="text" name="email" value=""> -<input type="text" name="birth" value=""> -<input type="text" name="whatever" value=""> -</form> ----- -def check(parser, schema): - assert schema - names = sorted(schema.fields) - assert names == 'birth email username v v2 whatever'.split() +<form> +<input type="text" form:required=t name="v"> +<input type="text" form:required="no" name="v2"> +<input type="text" form:validate="regex:[a-z]*" name="username" + form:message="lower case only!"> +<input type="text" form:validate="email" form:required="no" + name="email"> +<input type="text" form:validate="dateconverter" name="birth"> +<input type="text" name="whatever"> +</form> +---- +<form> +<input type="text" name="v" value=""> +<input type="text" name="v2" value=""> +<input type="text" name="username" value=""> +<input type="text" name="email" value=""> +<input type="text" name="birth" value=""> +<input type="text" name="whatever" value=""> +</form> +---- +def check(parser, schema): + assert schema + names = sorted(schema.fields) + assert names == 'birth email username v v2 whatever'.split()
  37. Download patch formencode/tests/htmlfill_data/data-fill2.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-fill2.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-fill2.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,15 +1,15 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html> -<form action=""> -<input type="text" name="test"> -</form> -</html> ----- -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> -<html> -<form action=""> -<input type="text" name="test" value="whatever"> -</form> -</html> ----- -defaults={'test': 'whatever'} +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<html> +<form action=""> +<input type="text" name="test"> +</form> +</html> +---- +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<html> +<form action=""> +<input type="text" name="test" value="whatever"> +</form> +</html> +---- +defaults={'test': 'whatever'}
  38. Download patch formencode/i18n/zh_TW/LC_MESSAGES/FormEncode.po
  39. Download patch formencode/i18n/cs/LC_MESSAGES/FormEncode.po
  40. Download patch docs/modules/htmlgen.txt

    --- 1.3.0-6/docs/modules/htmlgen.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/htmlgen.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,11 +1,11 @@ -:mod:`formencode.htmlgen` -- Convenient building of ElementTree nodes -===================================================================== - -.. automodule:: formencode.htmlgen - -Module Contents ---------------- - -.. autoclass:: _HTML -.. autoclass:: Element - +:mod:`formencode.htmlgen` -- Convenient building of ElementTree nodes +===================================================================== + +.. automodule:: formencode.htmlgen + +Module Contents +--------------- + +.. autoclass:: _HTML +.. autoclass:: Element +
  41. Download patch formencode/tests/htmlfill_data/data-fill4.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-fill4.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-fill4.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,30 +1,30 @@ -<form> -<input type="text" name="name" value="fill"> -<select name="occupation" multiple="multiple"> - <option value="">Default</option> - <option value="Crazy Cultist">Crazy cultist</option> - <option value="Crazy">Crazy</option> -</select> -<textarea cols=20 style="width: 100%" name="address">An address</textarea> -<input type="radio" name="living" value="yes"> -<input type="radio" name="living" value="no"> -<input type="checkbox" name="nice_guy" checked="checked"> ----- -<form> -<input type="text" name="name" value="Bob Jones"> -<select name="occupation" multiple="multiple"> - <option value="">Default</option> - <option value="Crazy Cultist" selected="selected">Crazy cultist</option> - <option value="Crazy" selected="selected">Crazy</option> -</select> -<textarea cols="20" style="width: 100%" name="address">14 W. Canal -New Guinea</textarea> -<input type="radio" name="living" value="yes"> -<input type="radio" name="living" value="no" checked="checked"> -<input type="checkbox" name="nice_guy"> ----- -defaults = {'name': 'Bob Jones', - 'occupation': ['Crazy Cultist','Crazy'], - 'address': '14 W. Canal\nNew Guinea', - 'living': 'no', - 'nice_guy': 0} +<form> +<input type="text" name="name" value="fill"> +<select name="occupation" multiple="multiple"> + <option value="">Default</option> + <option value="Crazy Cultist">Crazy cultist</option> + <option value="Crazy">Crazy</option> +</select> +<textarea cols=20 style="width: 100%" name="address">An address</textarea> +<input type="radio" name="living" value="yes"> +<input type="radio" name="living" value="no"> +<input type="checkbox" name="nice_guy" checked="checked"> +---- +<form> +<input type="text" name="name" value="Bob Jones"> +<select name="occupation" multiple="multiple"> + <option value="">Default</option> + <option value="Crazy Cultist" selected="selected">Crazy cultist</option> + <option value="Crazy" selected="selected">Crazy</option> +</select> +<textarea cols="20" style="width: 100%" name="address">14 W. Canal +New Guinea</textarea> +<input type="radio" name="living" value="yes"> +<input type="radio" name="living" value="no" checked="checked"> +<input type="checkbox" name="nice_guy"> +---- +defaults = {'name': 'Bob Jones', + 'occupation': ['Crazy Cultist','Crazy'], + 'address': '14 W. Canal\nNew Guinea', + 'living': 'no', + 'nice_guy': 0}
  42. Download patch formencode/i18n/ko/LC_MESSAGES/FormEncode.po
  43. Download patch docs/modules/national.txt

    --- 1.3.0-6/docs/modules/national.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/national.txt 2013-03-11 22:26:58.000000000 +0000 @@ -1,41 +1,41 @@ -:mod:`formencode.national` -- Country specific validators -========================================================= - -.. automodule:: formencode.national - -.. contents:: - -Module Contents ---------------- - -.. admonition:: Note - - To use CountryValidator and LanguageValidator, install either - `pycountry <http://pypi.python.org/pypi/pycountry/>`__ or - `TurboGears <http://turbogears.org>`__ Version 1.x. - -Country, State, and Postal Codes -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. autoclass:: DelimitedDigitsPostalCode -.. autofunction:: USPostalCode -.. autofunction:: GermanPostalCode -.. autofunction:: FourDigitsPostalCode -.. autofunction:: PolishPostalCode -.. autoclass:: ArgentinianPostalCode -.. autoclass:: CanadianPostalCode -.. autoclass:: UKPostalCode -.. autoclass:: CountryValidator -.. autoclass:: PostalCodeInCountryFormat -.. autoclass:: USStateProvince - -Phones and Addresses -~~~~~~~~~~~~~~~~~~~~ - -.. autoclass:: USPhoneNumber -.. autoclass:: InternationalPhoneNumber - -Language Codes and Names -~~~~~~~~~~~~~~~~~~~~~~~~ -.. autoclass:: LanguageValidator - +:mod:`formencode.national` -- Country specific validators +========================================================= + +.. automodule:: formencode.national + +.. contents:: + +Module Contents +--------------- + +.. admonition:: Note + + To use CountryValidator and LanguageValidator, install either + `pycountry <http://pypi.python.org/pypi/pycountry/>`__ or + `TurboGears <http://turbogears.org>`__ Version 1.x. + +Country, State, and Postal Codes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. autoclass:: DelimitedDigitsPostalCode +.. autofunction:: USPostalCode +.. autofunction:: GermanPostalCode +.. autofunction:: FourDigitsPostalCode +.. autofunction:: PolishPostalCode +.. autoclass:: ArgentinianPostalCode +.. autoclass:: CanadianPostalCode +.. autoclass:: UKPostalCode +.. autoclass:: CountryValidator +.. autoclass:: PostalCodeInCountryFormat +.. autoclass:: USStateProvince + +Phones and Addresses +~~~~~~~~~~~~~~~~~~~~ + +.. autoclass:: USPhoneNumber +.. autoclass:: InternationalPhoneNumber + +Language Codes and Names +~~~~~~~~~~~~~~~~~~~~~~~~ +.. autoclass:: LanguageValidator +
  44. Download patch formencode/i18n/sk/LC_MESSAGES/FormEncode.po
  45. Download patch formencode/api.py
  46. Download patch docs/ToDo.txt

    --- 1.3.0-6/docs/ToDo.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/ToDo.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,36 +1,36 @@ -++++++++++++ -Things To Do -++++++++++++ - -:version: |release| -:date: |today| - -* Add a parallel to Pipe for the Any compound validator that performs - validation for each validator to python from left to right. - -* Make a test fixture for validators, to make testing really easy. - -* Consider moving htmlfill to ElementTree or another DOM-ish - structure, instead of HTMLParser. Or re-implement with another - parser but same interface. - -* Generate Javascript for validators, for client-side validation (when - possible). - -* Relatedly, test and give recipes for Ajax-ish validation, when fully - client-side validation doesn't work. - -* Better tests for ``htmlfill`` and ``htmlfill_schemabuilder``. - -* Include at least one good documented form generator. Consider - including rich widgets (Javascript). - -* Seperate out ``doctest_xml_compare``, maybe (useful in any doctested - web test). - -* Make ``doctest_xml_compare`` work with wildcards/ellipses. Maybe - with non-XHTML. - -* Some more ways to build validation. Validation from docstrings or - method signatures. - +++++++++++++ +Things To Do +++++++++++++ + +:version: |release| +:date: |today| + +* Add a parallel to Pipe for the Any compound validator that performs + validation for each validator to python from left to right. + +* Make a test fixture for validators, to make testing really easy. + +* Consider moving htmlfill to ElementTree or another DOM-ish + structure, instead of HTMLParser. Or re-implement with another + parser but same interface. + +* Generate Javascript for validators, for client-side validation (when + possible). + +* Relatedly, test and give recipes for Ajax-ish validation, when fully + client-side validation doesn't work. + +* Better tests for ``htmlfill`` and ``htmlfill_schemabuilder``. + +* Include at least one good documented form generator. Consider + including rich widgets (Javascript). + +* Seperate out ``doctest_xml_compare``, maybe (useful in any doctested + web test). + +* Make ``doctest_xml_compare`` work with wildcards/ellipses. Maybe + with non-XHTML. + +* Some more ways to build validation. Validation from docstrings or + method signatures. +
  47. Download patch docs/conf.py
  48. Download patch formencode/i18n/el/LC_MESSAGES/FormEncode.po
  49. Download patch formencode/compound.py
  50. Download patch docs/_themes/old/static/old.css
  51. Download patch formencode/i18n/nl/LC_MESSAGES/FormEncode.po
  52. Download patch docs/modules/htmlrename.txt

    --- 1.3.0-6/docs/modules/htmlrename.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/htmlrename.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,11 +1,11 @@ -:mod:`formencode.htmlrename` -- Rename fields in an HTML form -============================================================= - -.. automodule:: formencode.htmlrename - -Module Contents ---------------- - -.. autofunction:: rename -.. autofunction:: add_prefix - +:mod:`formencode.htmlrename` -- Rename fields in an HTML form +============================================================= + +.. automodule:: formencode.htmlrename + +Module Contents +--------------- + +.. autofunction:: rename +.. autofunction:: add_prefix +
  53. Download patch docs/Validator.txt
  54. Download patch docs/history.txt

    --- 1.3.0-6/docs/history.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/history.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,41 +1,41 @@ -On Intentions And History -========================= - -:author: Ian Bicking - -I'm the author of FunFormKit_, a form generation and validation -package for Webware_. I considered FunFormKit (FFK) to be a very -powerful and complete package, with features that few other form -validation packages for Python had (as to other languages, I haven't -researched enough to know). It supported repeating and compound -fields (which most packages do not), and had a very expressive -validation system. - -However, this is not FFK. In fact, it is a deprecation of FFK and -does not provide backward compatibility. Why? - -Probably the biggest problem was that FFK didn't support compound -and repeating fields. Adding them made everything *much* more -difficult -- it was a sort of clever hack (maybe not even clever), and -the result was very hard for anyone else to understand. Ultimately -hard for me to understand. - -Ontop of this was a structure that had too much coupling. Testing was -difficult. I only came to like unit testing after FFK had gone -through several revisions. FFK was not made with testability in mind. -It can be hard to add later. - -Also, I wanted to use pieces of FFK without the entire framework. -Validation without the form generation was the biggest one. Alternate -kinds of forms also interested me -- making it easier to do highly -granual templating, or non-HTML/HTTP forms. Alternate data sources, -like SQL or XMLRPC, also seemed important. All of these were not easy -within the interfaces that FFK used. - -So... FormEncode! FormEncode takes a lot of ideas from FFK, and a lot -of the code is just modified FFK code. All of it is reviewed and -actively inserted into FormEncode, I'm not transferring anything -wholesale. - -.. _FunFormKit: http://funformkit.sf.net -.. _Webware: http://webware.sf.net +On Intentions And History +========================= + +:author: Ian Bicking + +I'm the author of FunFormKit_, a form generation and validation +package for Webware_. I considered FunFormKit (FFK) to be a very +powerful and complete package, with features that few other form +validation packages for Python had (as to other languages, I haven't +researched enough to know). It supported repeating and compound +fields (which most packages do not), and had a very expressive +validation system. + +However, this is not FFK. In fact, it is a deprecation of FFK and +does not provide backward compatibility. Why? + +Probably the biggest problem was that FFK didn't support compound +and repeating fields. Adding them made everything *much* more +difficult -- it was a sort of clever hack (maybe not even clever), and +the result was very hard for anyone else to understand. Ultimately +hard for me to understand. + +Ontop of this was a structure that had too much coupling. Testing was +difficult. I only came to like unit testing after FFK had gone +through several revisions. FFK was not made with testability in mind. +It can be hard to add later. + +Also, I wanted to use pieces of FFK without the entire framework. +Validation without the form generation was the biggest one. Alternate +kinds of forms also interested me -- making it easier to do highly +granual templating, or non-HTML/HTTP forms. Alternate data sources, +like SQL or XMLRPC, also seemed important. All of these were not easy +within the interfaces that FFK used. + +So... FormEncode! FormEncode takes a lot of ideas from FFK, and a lot +of the code is just modified FFK code. All of it is reviewed and +actively inserted into FormEncode, I'm not transferring anything +wholesale. + +.. _FunFormKit: http://funformkit.sf.net +.. _Webware: http://webware.sf.net
  55. Download patch debian/patches/0004-Remove-tests-from-test_email-that-require-dns.patch

    --- 1.3.0-6/debian/patches/0004-Remove-tests-from-test_email-that-require-dns.patch 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/0004-Remove-tests-from-test_email-that-require-dns.patch 2020-01-13 03:44:39.000000000 +0000 @@ -12,21 +12,21 @@ diff --git a/formencode/tests/test_email index 3ebf120..2305454 100644 --- a/formencode/tests/test_email.py +++ b/formencode/tests/test_email.py -@@ -65,17 +65,3 @@ class TestEmail(unittest.TestCase): - - for email, expected in valid_email_addresses: - self.assertEqual(self.validate(email), expected) -- -- --class TestUnicodeEmailWithResolveDomain(unittest.TestCase): -- -- def setUp(self): -- self.validator = Email(resolve_domain=True) -- -- def test_unicode_ascii_subgroup(self): -- self.assertEqual(self.validator.to_python( -- u'foo@yandex.com'), 'foo@yandex.com') -- -- def test_cyrillic_email(self): -- self.assertEqual(self.validator.to_python( -- u'me@письмо.рф'), u'me@письмо.рф') +@@ -65,17 +65,3 @@ + + for email, expected in valid_email_addresses: + self.assertEqual(self.validate(email), expected) +- +- +-class TestUnicodeEmailWithResolveDomain(unittest.TestCase): +- +- def setUp(self): +- self.validator = Email(resolve_domain=True) +- +- def test_unicode_ascii_subgroup(self): +- self.assertEqual(self.validator.to_python( +- u'foo@yandex.com'), 'foo@yandex.com') +- +- def test_cyrillic_email(self): +- self.assertEqual(self.validator.to_python( +- u'me@письмо.рф'), u'me@письмо.рф')
  56. Download patch docs/modules/validators.txt

    --- 1.3.0-6/docs/modules/validators.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/validators.txt 2015-02-07 13:07:20.000000000 +0000 @@ -1,80 +1,80 @@ -:mod:`formencode.validators` -- lots of useful validators -========================================================= - -.. automodule:: formencode.validators - -.. contents:: - -Module Contents ---------------- - -Basic Types -~~~~~~~~~~~ - -.. autoclass:: ByteString -.. autoclass:: StringBool -.. autoclass:: Bool -.. autoclass:: Int -.. autoclass:: Number -.. autoclass:: UnicodeString -.. autoclass:: Set - -Basic Validator/Converters -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. autoclass:: ConfirmType -.. autoclass:: Wrapper -.. autoclass:: Constant -.. autoclass:: StripField -.. autoclass:: OneOf -.. autoclass:: DictConverter -.. autoclass:: IndexListConverter - -Simple Validators -~~~~~~~~~~~~~~~~~ - -.. autoclass:: MaxLength -.. autoclass:: MinLength -.. autoclass:: NotEmpty -.. autoclass:: Empty -.. autoclass:: Regex -.. autoclass:: PlainText - -Dates and Times -~~~~~~~~~~~~~~~ - -.. autoclass:: DateValidator -.. autoclass:: DateConverter -.. autoclass:: TimeConverter - - -HTML Form Helpers -~~~~~~~~~~~~~~~~~ - -.. autoclass:: SignedString -.. autoclass:: FieldStorageUploadConverter -.. autoclass:: FileUploadKeeper - -URLs, Email, etc. -~~~~~~~~~~~~~~~~~ - -.. autoclass:: Email -.. autoclass:: URL -.. autoclass:: IPAddress -.. autoclass:: CIDR -.. autoclass:: MACAddress - -Form-wide Validation -~~~~~~~~~~~~~~~~~~~~ - -.. autoclass:: FormValidator -.. autoclass:: RequireIfMissing -.. autoclass:: RequireIfMatching -.. autoclass:: FieldsMatch - -Credit Cards -~~~~~~~~~~~~ - -.. autoclass:: CreditCardValidator -.. autoclass:: CreditCardExpires -.. autoclass:: CreditCardSecurityCode +:mod:`formencode.validators` -- lots of useful validators +========================================================= + +.. automodule:: formencode.validators + +.. contents:: + +Module Contents +--------------- + +Basic Types +~~~~~~~~~~~ + +.. autoclass:: ByteString +.. autoclass:: StringBool +.. autoclass:: Bool +.. autoclass:: Int +.. autoclass:: Number +.. autoclass:: UnicodeString +.. autoclass:: Set + +Basic Validator/Converters +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. autoclass:: ConfirmType +.. autoclass:: Wrapper +.. autoclass:: Constant +.. autoclass:: StripField +.. autoclass:: OneOf +.. autoclass:: DictConverter +.. autoclass:: IndexListConverter + +Simple Validators +~~~~~~~~~~~~~~~~~ + +.. autoclass:: MaxLength +.. autoclass:: MinLength +.. autoclass:: NotEmpty +.. autoclass:: Empty +.. autoclass:: Regex +.. autoclass:: PlainText + +Dates and Times +~~~~~~~~~~~~~~~ + +.. autoclass:: DateValidator +.. autoclass:: DateConverter +.. autoclass:: TimeConverter + + +HTML Form Helpers +~~~~~~~~~~~~~~~~~ + +.. autoclass:: SignedString +.. autoclass:: FieldStorageUploadConverter +.. autoclass:: FileUploadKeeper + +URLs, Email, etc. +~~~~~~~~~~~~~~~~~ + +.. autoclass:: Email +.. autoclass:: URL +.. autoclass:: IPAddress +.. autoclass:: CIDR +.. autoclass:: MACAddress + +Form-wide Validation +~~~~~~~~~~~~~~~~~~~~ + +.. autoclass:: FormValidator +.. autoclass:: RequireIfMissing +.. autoclass:: RequireIfMatching +.. autoclass:: FieldsMatch + +Credit Cards +~~~~~~~~~~~~ + +.. autoclass:: CreditCardValidator +.. autoclass:: CreditCardExpires +.. autoclass:: CreditCardSecurityCode
  57. Download patch formencode/rewritingparser.py
  58. Download patch formencode/national.py
  59. Download patch docs/whatsnew-0-to-1.2.4.txt
  60. Download patch formencode/foreach.py
  61. Download patch docs/modules/schema.txt

    --- 1.3.0-6/docs/modules/schema.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/schema.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,10 +1,10 @@ -:mod:`formencode.schema` -- Validate complete forms -=================================================== - -.. automodule:: formencode.schema - -Module Contents ---------------- - -.. autoclass:: Schema - +:mod:`formencode.schema` -- Validate complete forms +=================================================== + +.. automodule:: formencode.schema + +Module Contents +--------------- + +.. autoclass:: Schema +
  62. Download patch docs/modules/compound.txt

    --- 1.3.0-6/docs/modules/compound.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/compound.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,11 +1,11 @@ -:mod:`formencode.compound` -- Validate with multiple validators -=============================================================== - -.. automodule:: formencode.compound - -Module Contents ---------------- - -.. autoclass:: All -.. autoclass:: Any -.. autoclass:: Pipe +:mod:`formencode.compound` -- Validate with multiple validators +=============================================================== + +.. automodule:: formencode.compound + +Module Contents +--------------- + +.. autoclass:: All +.. autoclass:: Any +.. autoclass:: Pipe
  63. Download patch debian/python3-formencode.examples

    --- 1.3.0-6/debian/python3-formencode.examples 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/python3-formencode.examples 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -examples/*
  64. Download patch formencode/tests/htmlfill_data/data-error1.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-error1.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-error1.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,47 +1,47 @@ -<form> -<form:error name="" format="none"> - -<form:iferror name="t1"> -!!!<form:error format="escape">!!! -</form:iferror> -<input type="text" name="t1"> - -<form:error name="t2"> -<select name="t2"> -<option value="1">1</option> -<option value="2">2</option> -</select> - -<form:error name="t3"> -<textarea name="t3">hey</textarea> - -<form:iferror name="X"> -This should not display -</form:iferror> - ----- -<form> -<test!> - - -!!!&lt;HEY&gt;!!! - -<input type="text" name="t1" class="error" value=""> - -<span class="error-message">&lt;error</span><br /> - -<select name="t2" class="error"> -<option value="1">1</option> -<option value="2">2</option> -</select> - -<span class="error-message">last</span><br /> - -<textarea name="t3" class="error"></textarea> ----- -defaults = {} -errors = dict( - t1='<HEY>', - t2='<error', - t3='last') -errors[''] = '<test!>' +<form> +<form:error name="" format="none"> + +<form:iferror name="t1"> +!!!<form:error format="escape">!!! +</form:iferror> +<input type="text" name="t1"> + +<form:error name="t2"> +<select name="t2"> +<option value="1">1</option> +<option value="2">2</option> +</select> + +<form:error name="t3"> +<textarea name="t3">hey</textarea> + +<form:iferror name="X"> +This should not display +</form:iferror> + +---- +<form> +<test!> + + +!!!&lt;HEY&gt;!!! + +<input type="text" name="t1" class="error" value=""> + +<span class="error-message">&lt;error</span><br /> + +<select name="t2" class="error"> +<option value="1">1</option> +<option value="2">2</option> +</select> + +<span class="error-message">last</span><br /> + +<textarea name="t3" class="error"></textarea> +---- +defaults = {} +errors = dict( + t1='<HEY>', + t2='<error', + t3='last') +errors[''] = '<test!>'
  65. Download patch formencode/i18n/fr/LC_MESSAGES/FormEncode.po
  66. Download patch debian/watch

    --- 1.3.0-6/debian/watch 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/watch 2020-01-13 03:44:39.000000000 +0000 @@ -1,3 +1,3 @@ version=3 -opts=uversionmangle=s/(.*\d)[_\.\-\+]?((RC|rc|pre|dev|b|a)\d*)$/$1~$2/,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/formencode-$1\.tar\.gz/ \ - https://github.com/formencode/formencode/tags .*/v?(\d\S*)\.tar\.gz +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +http://pypi.debian.net/FormEncode/FormEncode-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
  67. Download patch formencode/i18n/ru/LC_MESSAGES/FormEncode.po
  68. Download patch formencode/interfaces.py

    --- 1.3.0-6/formencode/interfaces.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/interfaces.py 2015-02-07 13:07:20.000000000 +0000 @@ -1,72 +1,72 @@ -""" -Interfaces for FormEncode (for documentation purposes only) -""" - - -class Attribute(object): - - def __init__(self, description, name=None): - self.description = description - self.name = name - - -class Interface(object): - pass - - -class IDeclarative(Interface): - - def __init__(**kw): - """ - Instantiates this class with all the keywords being used to - update the instance variables. - """ - - def __call__(**kw): - """ - Returns a copy with all attributes using the given keywords, - being updated. - """ - - -class IValidator(IDeclarative): - - messages = Attribute(""" - A dictionary of messages (with formatting strings) for error - responses""", name='messages') - if_missing = Attribute(""" - If the source that this validator would handle is missing (e.g., - a field that was not specified), use this value. If - Validator.NoDefault, then if the field is missing an exception - should be raised.""", name='ifMissing') - repeating = Attribute(""" - A boolean; this object accepts lists if true, subvalidators can be - found in the validators attribute.""", name='repeating') - compound = Attribute(""" - A boolean; this object has a dictionary of validators if this is - true, subvalidators can be found in the field attribute (a - dictionary).""", name='compound') - - def to_python(value, state=None): - """ - Convert `value` from its foreign representation to its Python - representation. `state` is for application-specific hooks. - """ - - def from_python(value, state=None): - """ - Convert `value` from its Python representation to the foreign - representation. `state` is for application-specific hooks. - """ - - def message(name, default): - """ - Return the message (from the `messages` attribute) that goes - with `name`, or return default if `name` not found `default`. - """ - - -class ISchema(IValidator): - - fields = Attribute('A dictionary of (field name: validator)', - name='fields') +""" +Interfaces for FormEncode (for documentation purposes only) +""" + + +class Attribute(object): + + def __init__(self, description, name=None): + self.description = description + self.name = name + + +class Interface(object): + pass + + +class IDeclarative(Interface): + + def __init__(**kw): + """ + Instantiates this class with all the keywords being used to + update the instance variables. + """ + + def __call__(**kw): + """ + Returns a copy with all attributes using the given keywords, + being updated. + """ + + +class IValidator(IDeclarative): + + messages = Attribute(""" + A dictionary of messages (with formatting strings) for error + responses""", name='messages') + if_missing = Attribute(""" + If the source that this validator would handle is missing (e.g., + a field that was not specified), use this value. If + Validator.NoDefault, then if the field is missing an exception + should be raised.""", name='ifMissing') + repeating = Attribute(""" + A boolean; this object accepts lists if true, subvalidators can be + found in the validators attribute.""", name='repeating') + compound = Attribute(""" + A boolean; this object has a dictionary of validators if this is + true, subvalidators can be found in the field attribute (a + dictionary).""", name='compound') + + def to_python(value, state=None): + """ + Convert `value` from its foreign representation to its Python + representation. `state` is for application-specific hooks. + """ + + def from_python(value, state=None): + """ + Convert `value` from its Python representation to the foreign + representation. `state` is for application-specific hooks. + """ + + def message(name, default): + """ + Return the message (from the `messages` attribute) that goes + with `name`, or return default if `name` not found `default`. + """ + + +class ISchema(IValidator): + + fields = Attribute('A dictionary of (field name: validator)', + name='fields')
  69. Download patch formencode/doctest_xml_compare.py
  70. Download patch debian/patches/series

    --- 1.3.0-6/debian/patches/series 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/series 2020-01-13 03:44:39.000000000 +0000 @@ -4,3 +4,5 @@ disable_pkg_resources_in_tests.patch 0003-Fix-a-collection-of-errors-from-msgfmt.patch 0004-Remove-tests-from-test_email-that-require-dns.patch 0005-Use-alpha_2-over-alpha2-for-compatibility-with-newer-.patch +ubuntu-disable-tests.diff +fix-tld-regex.diff
  71. Download patch docs/Design.txt
  72. Download patch docs/modules/htmlfill.txt

    --- 1.3.0-6/docs/modules/htmlfill.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/htmlfill.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,17 +1,17 @@ -:mod:`formencode.htmlfill` -- Fill in HTML forms -================================================ - -.. automodule:: formencode.htmlfill - -Module Contents ---------------- - -.. autofunction:: render -.. autoclass:: htmlliteral -.. autofunction:: default_formatter -.. autofunction: none_formatter -.. autofunction:: escape_formatter -.. autofunction:: escapenl_formatter -.. autofunction:: ignore_formatter -.. autofunction:: ignore_formatter -.. autoclass:: FillingParser +:mod:`formencode.htmlfill` -- Fill in HTML forms +================================================ + +.. automodule:: formencode.htmlfill + +Module Contents +--------------- + +.. autofunction:: render +.. autoclass:: htmlliteral +.. autofunction:: default_formatter +.. autofunction: none_formatter +.. autofunction:: escape_formatter +.. autofunction:: escapenl_formatter +.. autofunction:: ignore_formatter +.. autofunction:: ignore_formatter +.. autoclass:: FillingParser
  73. Download patch docs/_themes/old/theme.conf

    --- 1.3.0-6/docs/_themes/old/theme.conf 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/_themes/old/theme.conf 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -# Old FormEncode theme - -[theme] - -inherit = basic -stylesheet = old.css -pygments_style = sphinx
  74. Download patch formencode/i18n/pt_PT/LC_MESSAGES/FormEncode.po
  75. Download patch formencode/tests/__init__.py

    --- 1.3.0-6/formencode/tests/__init__.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/__init__.py 2013-03-11 22:27:30.000000000 +0000 @@ -1,16 +1,16 @@ -import sys -import os - -sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) - -# Make sure messages are not translated when running the tests -# (setting the environment variable here may be too late already, -# in this case you must set it manually before running the tests). -os.environ['LANGUAGE'] = 'C' - -# Enable deprecation warnings (disabled by default in Python > 2.6). -import warnings -warnings.simplefilter('default') - -import pkg_resources -pkg_resources.require('FormEncode') +import sys +import os + +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) + +# Make sure messages are not translated when running the tests +# (setting the environment variable here may be too late already, +# in this case you must set it manually before running the tests). +os.environ['LANGUAGE'] = 'C' + +# Enable deprecation warnings (disabled by default in Python > 2.6). +import warnings +warnings.simplefilter('default') + +import pkg_resources +pkg_resources.require('FormEncode')
  76. Download patch debian/patches/ubuntu-disable-tests.diff

    --- 1.3.0-6/debian/patches/ubuntu-disable-tests.diff 1970-01-01 00:00:00.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/ubuntu-disable-tests.diff 2019-04-23 20:00:12.000000000 +0000 @@ -0,0 +1,87 @@ +Index: python-formencode-1.3.0/formencode/tests/htmlfill_data/data-fill4.txt +=================================================================== +--- python-formencode-1.3.0.orig/formencode/tests/htmlfill_data/data-fill4.txt ++++ python-formencode-1.3.0/formencode/tests/htmlfill_data/data-fill4.txt +@@ -1,30 +0,0 @@ +-<form> +-<input type="text" name="name" value="fill"> +-<select name="occupation" multiple="multiple"> +- <option value="">Default</option> +- <option value="Crazy Cultist">Crazy cultist</option> +- <option value="Crazy">Crazy</option> +-</select> +-<textarea cols=20 style="width: 100%" name="address">An address</textarea> +-<input type="radio" name="living" value="yes"> +-<input type="radio" name="living" value="no"> +-<input type="checkbox" name="nice_guy" checked="checked"> +----- +-<form> +-<input type="text" name="name" value="Bob Jones"> +-<select name="occupation" multiple="multiple"> +- <option value="">Default</option> +- <option value="Crazy Cultist" selected="selected">Crazy cultist</option> +- <option value="Crazy" selected="selected">Crazy</option> +-</select> +-<textarea cols="20" style="width: 100%" name="address">14 W. Canal +-New Guinea</textarea> +-<input type="radio" name="living" value="yes"> +-<input type="radio" name="living" value="no" checked="checked"> +-<input type="checkbox" name="nice_guy"> +----- +-defaults = {'name': 'Bob Jones', +- 'occupation': ['Crazy Cultist','Crazy'], +- 'address': '14 W. Canal\nNew Guinea', +- 'living': 'no', +- 'nice_guy': 0} +Index: python-formencode-1.3.0/formencode/tests/htmlfill_data/data-error1.txt +=================================================================== +--- python-formencode-1.3.0.orig/formencode/tests/htmlfill_data/data-error1.txt ++++ python-formencode-1.3.0/formencode/tests/htmlfill_data/data-error1.txt +@@ -1,47 +0,0 @@ +-<form> +-<form:error name="" format="none"> +- +-<form:iferror name="t1"> +-!!!<form:error format="escape">!!! +-</form:iferror> +-<input type="text" name="t1"> +- +-<form:error name="t2"> +-<select name="t2"> +-<option value="1">1</option> +-<option value="2">2</option> +-</select> +- +-<form:error name="t3"> +-<textarea name="t3">hey</textarea> +- +-<form:iferror name="X"> +-This should not display +-</form:iferror> +- +----- +-<form> +-<test!> +- +- +-!!!&lt;HEY&gt;!!! +- +-<input type="text" name="t1" class="error" value=""> +- +-<span class="error-message">&lt;error</span><br /> +- +-<select name="t2" class="error"> +-<option value="1">1</option> +-<option value="2">2</option> +-</select> +- +-<span class="error-message">last</span><br /> +- +-<textarea name="t3" class="error"></textarea> +----- +-defaults = {} +-errors = dict( +- t1='<HEY>', +- t2='<error', +- t3='last') +-errors[''] = '<test!>'
  77. Download patch formencode/schema.py
  78. Download patch formencode/i18n/et/LC_MESSAGES/FormEncode.po
  79. Download patch formencode/declarative.py
  80. Download patch formencode/htmlgen.py
  81. Download patch docs/htmlfill.txt
  82. Download patch formencode/i18n/zh_CN/LC_MESSAGES/FormEncode.po
  83. Download patch formencode/i18n/sl/LC_MESSAGES/FormEncode.po
  84. Download patch formencode/i18n/lt/LC_MESSAGES/FormEncode.po
  85. Download patch formencode/i18n/fi/LC_MESSAGES/FormEncode.po
  86. Download patch docs/whatsnew-1.2.5.txt

    --- 1.3.0-6/docs/whatsnew-1.2.5.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/whatsnew-1.2.5.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,37 +1,37 @@ -What's New In FormEncode 1.2.5 -============================== - -This article explains the latest changes in `FormEncode` version 1.2.5 as -compared to its predecessor, `FormEncode` 1.2.4. - -Project Changes ---------------- - -- New official BitBucket code repository at `formencode/official-formencode - <http://bitbucket.org/formencode/official-formencode>`_. - -Feature Additions ------------------ - -- The method `field_is_empty` was added to - :class:`formencode.validators.FormValidator` so subclasses can use the same - logic for emptiness and users can override it if necessary. - -Backwards Incompatibilities ---------------------------- - -- The view attribute is no longer considered special when scanning Compound - validators and Schemas for validators. - -- The :class:`formencode.validators.RequireIfMissing` and `RequireIfPresent` form - validators now use the same empty/missing logic as the `is_empty` method of - :class:`formencode.api.FancyValidator`. - -- Validators can say if they accept containers (list, tuple, set, etc) and schema will - actively refuse those values if a validator does not allow them. - -Documentation Enhancements --------------------------- - -- Superceded news with whatsnew documents that will be archived for each - version. Archived all news prior to 1.2.5 in :doc:`/whatsnew-0-to-1.2.4`. +What's New In FormEncode 1.2.5 +============================== + +This article explains the latest changes in `FormEncode` version 1.2.5 as +compared to its predecessor, `FormEncode` 1.2.4. + +Project Changes +--------------- + +- New official BitBucket code repository at `formencode/official-formencode + <http://bitbucket.org/formencode/official-formencode>`_. + +Feature Additions +----------------- + +- The method `field_is_empty` was added to + :class:`formencode.validators.FormValidator` so subclasses can use the same + logic for emptiness and users can override it if necessary. + +Backwards Incompatibilities +--------------------------- + +- The view attribute is no longer considered special when scanning Compound + validators and Schemas for validators. + +- The :class:`formencode.validators.RequireIfMissing` and `RequireIfPresent` form + validators now use the same empty/missing logic as the `is_empty` method of + :class:`formencode.api.FancyValidator`. + +- Validators can say if they accept containers (list, tuple, set, etc) and schema will + actively refuse those values if a validator does not allow them. + +Documentation Enhancements +-------------------------- + +- Superceded news with whatsnew documents that will be archived for each + version. Archived all news prior to 1.2.5 in :doc:`/whatsnew-0-to-1.2.4`.
  87. Download patch formencode/tests/htmlfill_data/data-fill1.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-fill1.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-fill1.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,7 +1,7 @@ -<test tag> -<html><body> -<blah blah="2"> ----- -<test tag> -<html><body> -<blah blah="2"> +<test tag> +<html><body> +<blah blah="2"> +---- +<test tag> +<html><body> +<blah blah="2">
  88. Download patch debian/patches/test-pycountry-skip.patch

    --- 1.3.0-6/debian/patches/test-pycountry-skip.patch 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/test-pycountry-skip.patch 2020-01-10 19:09:34.000000000 +0000 @@ -3,11 +3,11 @@ Author: Stuart Prescott <stuart@debian.o --- a/formencode/tests/test_doctests.py +++ b/formencode/tests/test_doctests.py @@ -11,7 +11,7 @@ - - - """Modules that will have their doctests tested.""" --modules = [compound, htmlfill, htmlgen, national, schema, validators] -+modules = [compound, htmlfill, htmlgen, schema, validators] - - - """Text files that will have their doctests tested.""" + + + """Modules that will have their doctests tested.""" +-modules = [compound, htmlfill, htmlgen, national, schema, validators] ++modules = [compound, htmlfill, htmlgen, schema, validators] + + + """Text files that will have their doctests tested."""
  89. Download patch formencode/tests/htmlfill_data/data-fill3.txt

    --- 1.3.0-6/formencode/tests/htmlfill_data/data-fill3.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/tests/htmlfill_data/data-fill3.txt 2013-03-11 22:27:30.000000000 +0000 @@ -1,44 +1,44 @@ -<form> -<select name="sel1"> -<option value="1">1 -<option value="2">2 -</select> -<textarea name="test2">this is a test</textarea> -<input type="checkbox" name="check1" checked> -<input type="checkbox" name="check2" value="cc" checked> -<input type="radio" name="radio1" value="a"> -<input type="radio" name="radio1" value="b"> -<input type="radio" name="radio1" value="c"> -<input type="hidden" name="hidden1"> -<input type="text" style="width: 100%" name="text1" value="X"> -<input type="submit" name="submit1"> -<input type="reset" name="reset1"> -</form> ----- -<form> -<select name="sel1"> -<option value="1">1 -<option value="2" selected="selected">2 -</select> -<textarea name="test2">TEXTAREA</textarea> -<input type="checkbox" name="check1" checked="checked"> -<input type="checkbox" name="check2" value="cc"> -<input type="radio" name="radio1" value="a"> -<input type="radio" name="radio1" value="b" checked="checked"> -<input type="radio" name="radio1" value="c"> -<input type="hidden" name="hidden1" value="H"> -<input type="text" style="width: 100%" name="text1" value="T"> -<input type="submit" name="submit1" value="SAVE"> -<input type="reset" name="reset1" value="CANCEL"> -</form> ----- -defaults = dict( - sel1='2', - test2='TEXTAREA', - check1=True, - check2=False, - radio1='b', - hidden1='H', - text1='T', - submit1='SAVE', +<form> +<select name="sel1"> +<option value="1">1 +<option value="2">2 +</select> +<textarea name="test2">this is a test</textarea> +<input type="checkbox" name="check1" checked> +<input type="checkbox" name="check2" value="cc" checked> +<input type="radio" name="radio1" value="a"> +<input type="radio" name="radio1" value="b"> +<input type="radio" name="radio1" value="c"> +<input type="hidden" name="hidden1"> +<input type="text" style="width: 100%" name="text1" value="X"> +<input type="submit" name="submit1"> +<input type="reset" name="reset1"> +</form> +---- +<form> +<select name="sel1"> +<option value="1">1 +<option value="2" selected="selected">2 +</select> +<textarea name="test2">TEXTAREA</textarea> +<input type="checkbox" name="check1" checked="checked"> +<input type="checkbox" name="check2" value="cc"> +<input type="radio" name="radio1" value="a"> +<input type="radio" name="radio1" value="b" checked="checked"> +<input type="radio" name="radio1" value="c"> +<input type="hidden" name="hidden1" value="H"> +<input type="text" style="width: 100%" name="text1" value="T"> +<input type="submit" name="submit1" value="SAVE"> +<input type="reset" name="reset1" value="CANCEL"> +</form> +---- +defaults = dict( + sel1='2', + test2='TEXTAREA', + check1=True, + check2=False, + radio1='b', + hidden1='H', + text1='T', + submit1='SAVE', reset1='CANCEL') \ No newline at end of file
  90. Download patch docs/modules/declarative.txt

    --- 1.3.0-6/docs/modules/declarative.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/declarative.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,10 +1,10 @@ -:mod:`formencode.declarative` -- Base class for Validators -========================================================== - -.. automodule:: formencode.declarative - -Module Contents ---------------- - -.. autoclass:: Declarative -.. autofunction:: classinstancemethod +:mod:`formencode.declarative` -- Base class for Validators +========================================================== + +.. automodule:: formencode.declarative + +Module Contents +--------------- + +.. autoclass:: Declarative +.. autofunction:: classinstancemethod
  91. Download patch formencode/__init__.py

    --- 1.3.0-6/formencode/__init__.py 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/__init__.py 2013-03-11 22:27:30.000000000 +0000 @@ -1,11 +1,11 @@ -# formencode package - -from formencode.api import ( - NoDefault, Invalid, Validator, Identity, - FancyValidator, is_empty, is_validator) -from formencode.schema import Schema -from formencode.compound import CompoundValidator, Any, All, Pipe -from formencode.foreach import ForEach -from formencode import validators -from formencode import national -from formencode.variabledecode import NestedVariables +# formencode package + +from formencode.api import ( + NoDefault, Invalid, Validator, Identity, + FancyValidator, is_empty, is_validator) +from formencode.schema import Schema +from formencode.compound import CompoundValidator, Any, All, Pipe +from formencode.foreach import ForEach +from formencode import validators +from formencode import national +from formencode.variabledecode import NestedVariables
  92. Download patch docs/download.txt

    --- 1.3.0-6/docs/download.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/download.txt 2012-09-10 08:01:20.000000000 +0000 @@ -1,13 +1,13 @@ -Downloads -+++++++++ - -The most current downloads are always available on the `FormEncode -Cheese Shop Page <http://cheeseshop.python.org/pypi/FormEncode>`_. - -The repository can be checked out with:: - - git clone git://github.com/formencode/formencode.git - -Or you can download the repository as a zip file from here:: - +Downloads ++++++++++ + +The most current downloads are always available on the `FormEncode +Cheese Shop Page <http://cheeseshop.python.org/pypi/FormEncode>`_. + +The repository can be checked out with:: + + git clone git://github.com/formencode/formencode.git + +Or you can download the repository as a zip file from here:: + https://github.com/formencode/formencode/zipball/master \ No newline at end of file
  93. Download patch formencode/context.py
  94. Download patch debian/patches/disable_pkg_resources_in_tests.patch

    --- 1.3.0-6/debian/patches/disable_pkg_resources_in_tests.patch 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/disable_pkg_resources_in_tests.patch 2020-01-13 03:44:39.000000000 +0000 @@ -11,11 +11,11 @@ diff --git a/formencode/tests/__init__.p index a380a39..7fa25b4 100644 --- a/formencode/tests/__init__.py +++ b/formencode/tests/__init__.py -@@ -12,5 +12,5 @@ os.environ['LANGUAGE'] = 'C' - import warnings - warnings.simplefilter('default') - --import pkg_resources --pkg_resources.require('FormEncode') -+#import pkg_resources -+#pkg_resources.require('FormEncode') +@@ -12,5 +12,5 @@ + import warnings + warnings.simplefilter('default') + +-import pkg_resources +-pkg_resources.require('FormEncode') ++#import pkg_resources ++#pkg_resources.require('FormEncode')
  95. Download patch formencode/javascript/ordering.js

    --- 1.3.0-6/formencode/javascript/ordering.js 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/formencode/javascript/ordering.js 2012-06-16 12:13:36.000000000 +0000 @@ -1,61 +1,61 @@ -function up(formElement) { - var i, select; - select = getSelect(formElement); - i = select.selectedIndex; - if (i == -1 || i == 0) { - return; - } - swapOptions(select, i, i-1); - select.selectedIndex = i-1; - saveValue(select); -} -function down(formElement) { - var i, select; - select = getSelect(formElement); - i = select.selectedIndex; - if (i == -1 || i == select.length-1) { - return; - } - swapOptions(select, i, i+1); - select.selectedIndex = i+1; - saveValue(select); -} -function getSelect(formElement) { - return formElement.form['%(name)s'] -} -function swapOptions(select, op1, op2) { - var tmpValue, tmpText; - tmpValue = select.options[op1].value; - tmpText = select.options[op1].text; - select.options[op1].value = select.options[op2].value; - select.options[op1].text = select.options[op2].text; - select.options[op2].value = tmpValue; - select.options[op2].text = tmpText; -} -function saveValue(select) { - if (origValues == false) { - saveOrigValues(select); - } - var s = "", i; - for (i=0; i < select.length; i++) { - s = s + escape(select.options[i].value) + " "; - } - select.form['%(hidden_name)s'].value = s; -} -function saveOrigValues(select) { - origValues = new Array(); - for (i=0; i<select.length; i++) { - origValues[i*2] = select.options[i].value; - origValues[i*2+1] = select.options[i].text; - } -} -origValues = false; -function resetEntries(formElement) { - var select; - select = getSelect(formElement); - for (i=0; i<origValues.length; i+=2) { - select.options[Math.floor(i/2)] = new Option(origValues[i+1], origValues[i], false, false); - select.options[Math.floor(i/2)].selected = false; - } - saveValue(select); -} +function up(formElement) { + var i, select; + select = getSelect(formElement); + i = select.selectedIndex; + if (i == -1 || i == 0) { + return; + } + swapOptions(select, i, i-1); + select.selectedIndex = i-1; + saveValue(select); +} +function down(formElement) { + var i, select; + select = getSelect(formElement); + i = select.selectedIndex; + if (i == -1 || i == select.length-1) { + return; + } + swapOptions(select, i, i+1); + select.selectedIndex = i+1; + saveValue(select); +} +function getSelect(formElement) { + return formElement.form['%(name)s'] +} +function swapOptions(select, op1, op2) { + var tmpValue, tmpText; + tmpValue = select.options[op1].value; + tmpText = select.options[op1].text; + select.options[op1].value = select.options[op2].value; + select.options[op1].text = select.options[op2].text; + select.options[op2].value = tmpValue; + select.options[op2].text = tmpText; +} +function saveValue(select) { + if (origValues == false) { + saveOrigValues(select); + } + var s = "", i; + for (i=0; i < select.length; i++) { + s = s + escape(select.options[i].value) + " "; + } + select.form['%(hidden_name)s'].value = s; +} +function saveOrigValues(select) { + origValues = new Array(); + for (i=0; i<select.length; i++) { + origValues[i*2] = select.options[i].value; + origValues[i*2+1] = select.options[i].text; + } +} +origValues = false; +function resetEntries(formElement) { + var select; + select = getSelect(formElement); + for (i=0; i<origValues.length; i+=2) { + select.options[Math.floor(i/2)] = new Option(origValues[i+1], origValues[i], false, false); + select.options[Math.floor(i/2)].selected = false; + } + saveValue(select); +}
  96. Download patch formencode/i18n/tr/LC_MESSAGES/FormEncode.po
  97. Download patch docs/modules/api.txt

    --- 1.3.0-6/docs/modules/api.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/modules/api.txt 2012-06-16 12:13:36.000000000 +0000 @@ -1,15 +1,15 @@ -:mod:`formencode.api` -- Core classes for validation -=========================================================================== - -.. automodule:: formencode.api - -Module Contents ---------------- - -.. autofunction:: is_empty -.. autofunction:: is_validator -.. autoclass:: NoDefault -.. autoclass:: Invalid -.. autoclass:: Validator -.. autoclass:: Identity -.. autoclass:: FancyValidator +:mod:`formencode.api` -- Core classes for validation +=========================================================================== + +.. automodule:: formencode.api + +Module Contents +--------------- + +.. autofunction:: is_empty +.. autofunction:: is_validator +.. autoclass:: NoDefault +.. autoclass:: Invalid +.. autoclass:: Validator +.. autoclass:: Identity +.. autoclass:: FancyValidator
  98. Download patch formencode/i18n/sr/LC_MESSAGES/FormEncode.po
  99. Download patch docs/community.txt

    --- 1.3.0-6/docs/community.txt 2015-02-07 18:33:52.000000000 +0000 +++ 1.3.0-6ubuntu1/docs/community.txt 2012-09-10 08:01:20.000000000 +0000 @@ -1,28 +1,28 @@ -FormEncode Community -++++++++++++++++++++ - -Discussion takes place on the mailing list, -formencode-discuss@lists.sf.net: - -* `Subcribe - <http://lists.sourceforge.net/mailman/listinfo/formencode-discuss>`__ - -* `Archives - <http://sourceforge.net/mailarchive/forum.php?forum_name=formencode-discuss>`__ - -Updates to the repository are emailed to the (inaccurately named) -mailing list formencode-cvs@lists.sf.net: - -* `Subscribe - <http://lists.sourceforge.net/mailman/listinfo/formencode-cvs>`__ - -The repository can be checked out with:: - - git clone git://github.com/formencode/formencode.git - -Note: the SourceForge CVS repository and svn.colorstudy.com Subversion -repositories and bitbucket Mercurial repositories are out of date and no longer used. - -Bugs can be reported in the `github bug tracker -<https://github.com/formencode/formencode/issues>`_. - +FormEncode Community +++++++++++++++++++++ + +Discussion takes place on the mailing list, +formencode-discuss@lists.sf.net: + +* `Subcribe + <http://lists.sourceforge.net/mailman/listinfo/formencode-discuss>`__ + +* `Archives + <http://sourceforge.net/mailarchive/forum.php?forum_name=formencode-discuss>`__ + +Updates to the repository are emailed to the (inaccurately named) +mailing list formencode-cvs@lists.sf.net: + +* `Subscribe + <http://lists.sourceforge.net/mailman/listinfo/formencode-cvs>`__ + +The repository can be checked out with:: + + git clone git://github.com/formencode/formencode.git + +Note: the SourceForge CVS repository and svn.colorstudy.com Subversion +repositories and bitbucket Mercurial repositories are out of date and no longer used. + +Bugs can be reported in the `github bug tracker +<https://github.com/formencode/formencode/issues>`_. +
  100. Download patch debian/patches/0005-Use-alpha_2-over-alpha2-for-compatibility-with-newer-.patch

    --- 1.3.0-6/debian/patches/0005-Use-alpha_2-over-alpha2-for-compatibility-with-newer-.patch 2020-01-13 01:00:46.000000000 +0000 +++ 1.3.0-6ubuntu1/debian/patches/0005-Use-alpha_2-over-alpha2-for-compatibility-with-newer-.patch 2020-01-13 03:44:39.000000000 +0000 @@ -11,28 +11,28 @@ diff --git a/formencode/national.py b/fo index a8514ab..5a55fab 100644 --- a/formencode/national.py +++ b/formencode/national.py -@@ -85,19 +85,19 @@ elif pycountry: - _l = lambda t: gettext.dgettext('iso639', t) - - def get_countries(): -- c1 = set([(e.alpha2, _c(e.name)) for e in pycountry.countries]) -+ c1 = set([(e.alpha_2, _c(e.name)) for e in pycountry.countries]) - ret = c1.union(country_additions + fuzzy_countrynames) - return ret - - def get_country(code): -- return _c(pycountry.countries.get(alpha2=code).name) -+ return _c(pycountry.countries.get(alpha_2=code).name) - - def get_languages(): -- return [(e.alpha2, _l(e.name)) for e in pycountry.languages -- if e.name and getattr(e, 'alpha2', None)] -+ return [(e.alpha_2, _l(e.name)) for e in pycountry.languages -+ if e.name and getattr(e, 'alpha_2', None)] - - def get_language(code): -- return _l(pycountry.languages.get(alpha2=code).name) -+ return _l(pycountry.languages.get(alpha_2=code).name) - - - ############################################################ +@@ -85,19 +85,19 @@ + _l = lambda t: gettext.dgettext('iso639', t) + + def get_countries(): +- c1 = set([(e.alpha2, _c(e.name)) for e in pycountry.countries]) ++ c1 = set([(e.alpha_2, _c(e.name)) for e in pycountry.countries]) + ret = c1.union(country_additions + fuzzy_countrynames) + return ret + + def get_country(code): +- return _c(pycountry.countries.get(alpha2=code).name) ++ return _c(pycountry.countries.get(alpha_2=code).name) + + def get_languages(): +- return [(e.alpha2, _l(e.name)) for e in pycountry.languages +- if e.name and getattr(e, 'alpha2', None)] ++ return [(e.alpha_2, _l(e.name)) for e in pycountry.languages ++ if e.name and getattr(e, 'alpha_2', None)] + + def get_language(code): +- return _l(pycountry.languages.get(alpha2=code).name) ++ return _l(pycountry.languages.get(alpha_2=code).name) + + + ############################################################
  101. ...
  1. python-formencode