Skip to content

Commit

Permalink
Pony ORM Release 0.6.5 (2016-04-04)
Browse files Browse the repository at this point in the history
# Improvements

* Fixes ponyorm#172: Query prefetch() method should load specified lazy attributes right in the main query if possible

# Bugfixes

* Fixes ponyorm#168: Incorrect caching when slicing the same query multiple times
* Fixes ponyorm#169: When py_check() returns False, Pony should truncate too large values in resulting ValueError message
* Fixes ponyorm#171: AssertionError when saving changes of multiple objects
* Fixes ponyorm#176: Autostripped strings are not validated correctly for Required attributes

See blog post for more detailed information: https://blog.ponyorm.com/2016/04/04/pony-orm-release-0-6-5/
  • Loading branch information
kozlovsky committed Apr 4, 2016
2 parents 01c9e6a + 3da836c commit e96fccb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Pony ORM Release 0.6.5 (2016-04-04)

## Improvements

* Fixes #172: Query prefetch() method should load specified lazy attributes right in the main query if possible

## Bugfixes

* Fixes #168: Incorrect caching when slicing the same query multiple times
* Fixes #169: When py_check() returns False, Pony should truncate too large values in resulting ValueError message
* Fixes #171: AssertionError when saving changes of multiple objects
* Fixes #176: Autostripped strings are not validated correctly for Required attributes

See blog post for more detailed information: https://blog.ponyorm.com/2016/04/04/pony-orm-release-0-6-5/


# Pony ORM Release 0.6.4 (2016-02-10)

This release brings no new features, has no backward incompatible changes, only bug fixes.
Expand Down
2 changes: 1 addition & 1 deletion pony/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from os.path import dirname

__version__ = '0.6.5-dev'
__version__ = '0.6.5'

def detect_mode():
try: import google.appengine
Expand Down
8 changes: 5 additions & 3 deletions pony/orm/tests/test_diagram_attribute.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import absolute_import, print_function, division

from pony.py23compat import PY2
from datetime import date
import unittest

Expand Down Expand Up @@ -525,8 +525,10 @@ class Entity2(db.Entity):
a = Set('Entity1', py_check=lambda val: True)
db.generate_mapping(create_tables=True)

@raises_exception(ValueError, "Check for attribute Entity1.a failed. Value: "
"u'12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345...")
@raises_exception(ValueError, "Check for attribute Entity1.a failed. Value: " + (
"u'12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345..." if PY2
else "'123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456..."
))
def test_py_check_truncate(self):
db = Database('sqlite', ':memory:')
class Entity1(db.Entity):
Expand Down

0 comments on commit e96fccb

Please sign in to comment.