From 9468962d0f7d50ac3d52f9e67352f4ec8f107e68 Mon Sep 17 00:00:00 2001 From: kleink Date: Sun, 27 Oct 2013 21:51:02 +0000 Subject: Update py-wtforms to 1.0.5. Version 1.0.5 ------------- Released September 10, 2013 - Fix a bug in validators which causes translations to happen once then clobber any future translations. - ext.sqlalchemy / ext.appengine: minor cleanups / deprecation. - Allow blank string and the string 'false' to be considered false values for BooleanField (configurable). This is technically a breaking change, but it is not likey to affect the majority of users adversely. - ext.i18n form allows passing LANGUAGES to the constructor. --- www/py-wtforms/Makefile | 5 +-- www/py-wtforms/PLIST | 6 ++- www/py-wtforms/distinfo | 9 ++-- .../patches/patch-ext_appengine_fields.py | 51 ---------------------- 4 files changed, 11 insertions(+), 60 deletions(-) delete mode 100644 www/py-wtforms/patches/patch-ext_appengine_fields.py (limited to 'www') diff --git a/www/py-wtforms/Makefile b/www/py-wtforms/Makefile index 1ef5f7de8ee..29e20d539d0 100644 --- a/www/py-wtforms/Makefile +++ b/www/py-wtforms/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.6 2013/09/23 20:36:27 kleink Exp $ +# $NetBSD: Makefile,v 1.7 2013/10/27 21:51:02 kleink Exp $ -DISTNAME= WTForms-1.0.4 +DISTNAME= WTForms-1.0.5 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} -PKGREVISION= 2 CATEGORIES= www python MASTER_SITES= http://pypi.python.org/packages/source/W/WTForms/ EXTRACT_SUFX= .zip diff --git a/www/py-wtforms/PLIST b/www/py-wtforms/PLIST index 777701c5399..7f442b478cf 100644 --- a/www/py-wtforms/PLIST +++ b/www/py-wtforms/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2013/05/08 08:30:47 kleink Exp $ +@comment $NetBSD: PLIST,v 1.4 2013/10/27 21:51:02 kleink Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -66,6 +66,10 @@ ${PYSITELIB}/wtforms/ext/i18n/__init__.pyo ${PYSITELIB}/wtforms/ext/i18n/form.py ${PYSITELIB}/wtforms/ext/i18n/form.pyc ${PYSITELIB}/wtforms/ext/i18n/form.pyo +${PYSITELIB}/wtforms/ext/i18n/messages/de/LC_MESSAGES/wtforms.mo +${PYSITELIB}/wtforms/ext/i18n/messages/de/LC_MESSAGES/wtforms.po +${PYSITELIB}/wtforms/ext/i18n/messages/de_CH/LC_MESSAGES/wtforms.mo +${PYSITELIB}/wtforms/ext/i18n/messages/de_CH/LC_MESSAGES/wtforms.po ${PYSITELIB}/wtforms/ext/i18n/messages/en/LC_MESSAGES/wtforms.mo ${PYSITELIB}/wtforms/ext/i18n/messages/en/LC_MESSAGES/wtforms.po ${PYSITELIB}/wtforms/ext/i18n/messages/es/LC_MESSAGES/wtforms.mo diff --git a/www/py-wtforms/distinfo b/www/py-wtforms/distinfo index e28e1c34651..6641024783f 100644 --- a/www/py-wtforms/distinfo +++ b/www/py-wtforms/distinfo @@ -1,6 +1,5 @@ -$NetBSD: distinfo,v 1.4 2013/09/23 20:36:27 kleink Exp $ +$NetBSD: distinfo,v 1.5 2013/10/27 21:51:02 kleink Exp $ -SHA1 (WTForms-1.0.4.zip) = e8d97b4c72e805b8e29c5d2e6673c40780490c69 -RMD160 (WTForms-1.0.4.zip) = 93e853ff39c356bf73c01d37b4a38541d2e3e4fb -Size (WTForms-1.0.4.zip) = 345261 bytes -SHA1 (patch-ext_appengine_fields.py) = 3f4eef6d763522a93cabc60aeb5691f359297fad +SHA1 (WTForms-1.0.5.zip) = a76a482fd64d56f7f1f75b1bfae564a8cc6b1244 +RMD160 (WTForms-1.0.5.zip) = 248e078e64b102ce6c786e0988abada7de079115 +Size (WTForms-1.0.5.zip) = 355186 bytes diff --git a/www/py-wtforms/patches/patch-ext_appengine_fields.py b/www/py-wtforms/patches/patch-ext_appengine_fields.py deleted file mode 100644 index 796e5c460e9..00000000000 --- a/www/py-wtforms/patches/patch-ext_appengine_fields.py +++ /dev/null @@ -1,51 +0,0 @@ -$NetBSD: patch-ext_appengine_fields.py,v 1.1 2013/09/23 20:36:27 kleink Exp $ - ---- wtforms/ext/appengine/fields.py.orig 2013-05-03 10:40:00.000000000 +0200 -+++ wtforms/ext/appengine/fields.py 2013-09-23 22:26:20.000000000 +0200 -@@ -114,7 +114,7 @@ - - def __init__(self, label=None, validators=None, reference_class=None, - label_attr=None, get_label=None, allow_blank=False, -- blank_text=u'', **kwargs): -+ blank_text='', **kwargs): - super(KeyPropertyField, self).__init__(label, validators, - **kwargs) - if label_attr is not None: -@@ -149,7 +149,7 @@ - - def iter_choices(self): - if self.allow_blank: -- yield (u'__None', self.blank_text, self.data is None) -+ yield ('__None', self.blank_text, self.data is None) - - for obj in self.query: - key = str(obj.key.id()) -@@ -170,9 +170,9 @@ - if self.data.key == obj.key: - break - else: -- raise ValueError(self.gettext(u'Not a valid choice')) -+ raise ValueError(self.gettext('Not a valid choice')) - elif not self.allow_blank: -- raise ValueError(self.gettext(u'Not a valid choice')) -+ raise ValueError(self.gettext('Not a valid choice')) - - - class StringListPropertyField(fields.TextAreaField): -@@ -203,14 +203,14 @@ - if self.raw_data: - return self.raw_data[0] - else: -- return self.data and unicode("\n".join(self.data)) or u'' -+ return text_type('\n'.join(self.data)) if self.data else '' - - def process_formdata(self, valuelist): - if valuelist: - try: - self.data = [int(value) for value in valuelist[0].splitlines()] - except ValueError: -- raise ValueError(self.gettext(u'Not a valid integer list')) -+ raise ValueError(self.gettext('Not a valid integer list')) - - - class GeoPtPropertyField(fields.TextField): -- cgit v1.2.3