pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-wtforms Update py-wtforms to 1.0.5.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/528da9c4cdd7
branches:  trunk
changeset: 625917:528da9c4cdd7
user:      kleink <kleink%pkgsrc.org@localhost>
date:      Sun Oct 27 21:51:02 2013 +0000

description:
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.

diffstat:

 www/py-wtforms/Makefile                              |   5 +-
 www/py-wtforms/PLIST                                 |   6 +-
 www/py-wtforms/distinfo                              |   9 +-
 www/py-wtforms/patches/patch-ext_appengine_fields.py |  51 --------------------
 4 files changed, 11 insertions(+), 60 deletions(-)

diffs (103 lines):

diff -r 4f01f8da1a24 -r 528da9c4cdd7 www/py-wtforms/Makefile
--- a/www/py-wtforms/Makefile   Sun Oct 27 21:22:59 2013 +0000
+++ b/www/py-wtforms/Makefile   Sun Oct 27 21:51:02 2013 +0000
@@ -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 -r 4f01f8da1a24 -r 528da9c4cdd7 www/py-wtforms/PLIST
--- a/www/py-wtforms/PLIST      Sun Oct 27 21:22:59 2013 +0000
+++ b/www/py-wtforms/PLIST      Sun Oct 27 21:51:02 2013 +0000
@@ -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/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 -r 4f01f8da1a24 -r 528da9c4cdd7 www/py-wtforms/distinfo
--- a/www/py-wtforms/distinfo   Sun Oct 27 21:22:59 2013 +0000
+++ b/www/py-wtforms/distinfo   Sun Oct 27 21:51:02 2013 +0000
@@ -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 -r 4f01f8da1a24 -r 528da9c4cdd7 www/py-wtforms/patches/patch-ext_appengine_fields.py
--- a/www/py-wtforms/patches/patch-ext_appengine_fields.py      Sun Oct 27 21:22:59 2013 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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):



Home | Main Index | Thread Index | Old Index