<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/formencode/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/formencode/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 07 Dec 2010 06:09:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/formencode/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>estonian translation</title><link>https://sourceforge.net/p/formencode/patches/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Please update Estonian translation files in FormEncode. Updated files&lt;br /&gt;
are attached.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">greg</dc:creator><pubDate>Tue, 07 Dec 2010 06:09:09 -0000</pubDate><guid>https://sourceforge.netc534cb26a30f12e15746ac3cebc64c5e72d33bf7</guid></item><item><title>htmlfill - form:iferror missing name error</title><link>https://sourceforge.net/p/formencode/patches/10/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If the "name" parameter is missing from form:iferror, name is None and an exception is raised before we even reach the proper assert a couple lines below. This patch moves the assert at the right place and updates the error string.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bertrand Janin</dc:creator><pubDate>Tue, 30 Mar 2010 02:56:09 -0000</pubDate><guid>https://sourceforge.net878b0da99047b0fe6f650da074023d1d3781e4bc</guid></item><item><title>Deprecation warnings under Python 2.6</title><link>https://sourceforge.net/p/formencode/patches/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Two modules use the deprecated Sets module, leading to a warning:&lt;/p&gt;
&lt;p&gt;$ /home/tseaver/projects/agendaless/OSI/karlsample/eggs/FormEncode-1.0.1-py2.6.egg/formencode/foreach.py:8: \
DeprecationWarning: the sets module is deprecated&lt;br /&gt;
from sets import Set&lt;/p&gt;
&lt;p&gt;The attached patch prefers the new 'set' builtin (available since Python 2.4), falling back to the import.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tres Seaver</dc:creator><pubDate>Tue, 12 Jan 2010 20:22:38 -0000</pubDate><guid>https://sourceforge.netb6e8abdfde3768294faf2832a8322ca48f56f33f</guid></item><item><title>DateValidator bug happening only in March under Windows :)</title><link>https://sourceforge.net/p/formencode/patches/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have just stumbled over a crazy FormEncode DateValidator bug that only appears on Windows systems in March:&lt;/p&gt;
&lt;p&gt;----------------------------------------------------&lt;/p&gt;
&lt;p&gt;import sys&lt;br /&gt;
import locale&lt;br /&gt;
from datetime import datetime&lt;br /&gt;
from formencode.validators import DateValidator&lt;/p&gt;
&lt;p&gt;locale.setlocale(locale.LC_ALL, 'german')&lt;br /&gt;
print "Python", sys.version&lt;br /&gt;
print "Platform", sys.platform&lt;br /&gt;
print "Encoding", locale.getlocale()[1]&lt;br /&gt;
print "Month", datetime.now().strftime("%B")&lt;/p&gt;
&lt;p&gt;# Only on a German Win XP systems in March, we get&lt;br /&gt;
# a UnicodeDecodeError instead of an Invalid Exception&lt;br /&gt;
# because Win XP uses the "cp1252" encoding&lt;br /&gt;
# and the month March has an Umlaut in German.&lt;/p&gt;
&lt;p&gt;d = DateValidator(today_or_after=True)&lt;br /&gt;
try:&lt;br /&gt;
d.to_python(datetime(2000, 1, 1))&lt;br /&gt;
except Exception, e:&lt;br /&gt;
print "Error", e&lt;/p&gt;
&lt;p&gt;----------------------------------------------------&lt;/p&gt;
&lt;p&gt;The reason is that FormEncode tries to decode the output of strftime() with utf-8, but Win XP uses cp1252. Now the month March has an umlaut in German (März), so FormEncode tries to decode the cp1252 Umlaut as utf-8, which fails with a UnicodeDecodeError.&lt;/p&gt;
&lt;p&gt;The reason why FormEncode decodes the strftime() value is that it needs to be merged into the messages which are Unicode (see also bug #1693684 at &lt;a href="http://sf.net/tracker2/index.php?func=detail&amp;amp;aid=1693684&amp;amp;group_id=91231&amp;amp;atid=596416\"&gt;http://sf.net/tracker2/index.php?func=detail&amp;amp;aid=1693684&amp;amp;group_id=91231&amp;amp;atid=596416\&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The solution is to take the encoding from the current locale setting that is used by strftime() instead of always assuming utf-8.&lt;/p&gt;
&lt;p&gt;See attached patch.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Zwerschke</dc:creator><pubDate>Thu, 05 Mar 2009 20:33:56 -0000</pubDate><guid>https://sourceforge.netdcd16c6c5a4fa1b1ce86d4149d09c8084f83accf</guid></item><item><title>Update of German translations</title><link>https://sourceforge.net/p/formencode/patches/7/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Find attached an update of the German .po file (for FormEncode r3788).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Zwerschke</dc:creator><pubDate>Tue, 24 Feb 2009 11:06:31 -0000</pubDate><guid>https://sourceforge.netccd36eb8c1815996c913fac8a5fb49857a727112</guid></item><item><title>FormEncode Localization Patch - Turkish</title><link>https://sourceforge.net/p/formencode/patches/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Turkish language support patch for FormEncode messages.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oktay Sancak</dc:creator><pubDate>Fri, 14 Nov 2008 19:52:49 -0000</pubDate><guid>https://sourceforge.netbd3c5cf5f89b9f093a36bdad3440062b704f8a3a</guid></item><item><title>i18n ja message file</title><link>https://sourceforge.net/p/formencode/patches/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;i18n message file(po and mo) for Japanese.&lt;br /&gt;
these files are under PSF license or FormEncode's license.&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kazuok</dc:creator><pubDate>Sat, 29 Sep 2007 10:28:34 -0000</pubDate><guid>https://sourceforge.neted1ad2c0a2f4448e14abddcc81d9a0cb7e292d70</guid></item><item><title>FE 0.5 break SQLObject's Pickle Validator</title><link>https://sourceforge.net/p/formencode/patches/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The recent 0.5 version of FE breaks PickleValidator and&lt;br /&gt;
probably other validators lacking a not_empty&lt;br /&gt;
attribute. The following patch fixes (or works around&lt;br /&gt;
it) by making the check more defensively. &lt;/p&gt;
&lt;p&gt;There's some discussion on this in the turbogears-trunk&lt;br /&gt;
ML: &lt;a href="http://tinyurl.com/kwjrw" rel="nofollow"&gt;http://tinyurl.com/kwjrw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;
Alberto&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 21 Apr 2006 10:30:37 -0000</pubDate><guid>https://sourceforge.netc6d4066c9e770935da8b9963728d7a1c8a5904a1</guid></item><item><title>FormEncode localization patch</title><link>https://sourceforge.net/p/formencode/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;From Dan Jacobs&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ian Bicking</dc:creator><pubDate>Thu, 26 Jan 2006 20:05:18 -0000</pubDate><guid>https://sourceforge.netcc021e38a8d630278e43a50dd032b7b7625f3736</guid></item><item><title>Patch for Bug #1362549</title><link>https://sourceforge.net/p/formencode/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Patch for Bug #1362549, #1362566 &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Tanner</dc:creator><pubDate>Mon, 21 Nov 2005 07:22:51 -0000</pubDate><guid>https://sourceforge.netb3dceddcf442d6fa1e58889512f8bb8b75ad229d</guid></item></channel></rss>