|
From: <sub...@co...> - 2006-10-10 20:14:25
|
Author: ianb Date: 2006-10-10 14:14:22 -0600 (Tue, 10 Oct 2006) New Revision: 2003 Modified: FormEncode/trunk/docs/news.txt FormEncode/trunk/formencode/validators.py Log: #1373485 -- from formencode.validators import * will import Invalid Modified: FormEncode/trunk/docs/news.txt =================================================================== --- FormEncode/trunk/docs/news.txt 2006-10-10 20:12:08 UTC (rev 2002) +++ FormEncode/trunk/docs/news.txt 2006-10-10 20:14:22 UTC (rev 2003) @@ -12,6 +12,9 @@ * Fixes `#1559918 Schema fails to accept unicode errors <http://sourceforge.net/tracker/index.php?func=detail&aid=1559918&group_id=91231&atid=596416>`_ +* ``from formencode.validators import *`` will import the ``Invalid`` + exception now. + 0.6 --- Modified: FormEncode/trunk/formencode/validators.py =================================================================== --- FormEncode/trunk/formencode/validators.py 2006-10-10 20:12:08 UTC (rev 2002) +++ FormEncode/trunk/formencode/validators.py 2006-10-10 20:14:22 UTC (rev 2003) @@ -2474,7 +2474,7 @@ } -__all__ = [] +__all__ = ['Invalid'] for name, value in globals().items(): if isinstance(value, type) and issubclass(value, Validator): __all__.append(name) |