[Checkins] SVN: zope.schema/branches/jinty-native_string/ Changelog entry and some tweaks
Brian Sutherland
cvs-admin at zope.org
Mon Apr 9 16:51:47 UTC 2012
Log message for revision 125122:
Changelog entry and some tweaks
Changed:
U zope.schema/branches/jinty-native_string/CHANGES.txt
U zope.schema/branches/jinty-native_string/src/zope/schema/README.txt
U zope.schema/branches/jinty-native_string/src/zope/schema/interfaces.py
-=-
Modified: zope.schema/branches/jinty-native_string/CHANGES.txt
===================================================================
--- zope.schema/branches/jinty-native_string/CHANGES.txt 2012-04-09 16:31:27 UTC (rev 125121)
+++ zope.schema/branches/jinty-native_string/CHANGES.txt 2012-04-09 16:51:43 UTC (rev 125122)
@@ -2,12 +2,16 @@
CHANGES
=======
-4.1.2 (unreleased)
+4.2.0 (unreleased)
------------------
-- Nothing changed yet.
+- Introduce NativeString and NativeStringLine which are equal to Bytes and
+ BytesLine on Python 2 and Text and TextLine on Python 3.
+- Change IURI from a Bytes string to a "native" string. This is a backwards
+ incompatibility which only affects Python 3.
+
4.1.1 (2012-03-23)
------------------
Modified: zope.schema/branches/jinty-native_string/src/zope/schema/README.txt
===================================================================
--- zope.schema/branches/jinty-native_string/src/zope/schema/README.txt 2012-04-09 16:31:27 UTC (rev 125121)
+++ zope.schema/branches/jinty-native_string/src/zope/schema/README.txt 2012-04-09 16:51:43 UTC (rev 125122)
@@ -86,11 +86,6 @@
If the validation is successful, ``None`` is returned. If a validation error
occurs a ``ValidationError`` will be raised; for example:
- >>> url_bound.validate(u('http://zope.org/foo'))
- Traceback (most recent call last):
- ...
- WrongType: (u'http://zope.org/foo', <type 'str'>, 'url')
-
>>> url_bound.validate('foo.bar')
Traceback (most recent call last):
...
Modified: zope.schema/branches/jinty-native_string/src/zope/schema/interfaces.py
===================================================================
--- zope.schema/branches/jinty-native_string/src/zope/schema/interfaces.py 2012-04-09 16:31:27 UTC (rev 125121)
+++ zope.schema/branches/jinty-native_string/src/zope/schema/interfaces.py 2012-04-09 16:51:43 UTC (rev 125122)
@@ -373,7 +373,7 @@
return True
-class IURI(IBytesLine):
+class IURI(_IStrLine):
"""A field containing an absolute URI
"""
More information about the checkins
mailing list