python-stdnet v0.8.0 Release Notes
Release Date: 2013-05-24 // almost 11 years ago-
- ๐ This version brings several new functionalities, bug fixes, asynchronous connections and a departure from the global registration of models.
- The API for querying, committing and deleting instances has changed, and it
it is now based on the :class:
stdnet.odm.Router
class. - A :class:
stdnet.odm.Router
is a placeholder of registered models for one's application. Check the :ref:registration tutorial <tutorial-registration>
for more details. - โ Added preliminary support for :ref:
mongoDB backend <mongo-server>
. Pre-alpha at this stage. - โ Added preliminary support for :ref:
Sql backend <sql-server>
. Pre-alpha at this stage. - ๐ง Can handle master/slave server configuration by registering models to a back-end server and read-only server for read operations (queries).
- โ Added :ref:
where <query_where>
selector for ad-hoc queries. The argument is a valid expression (lua_ for redis_ and javascript for mongodb_). - AutoField has been renamed :class:
stdnet.odm.AutoIdField
and it does not inherit from :class:stdnet.odm.IntegerField
so that it can work for different backends. - ๐จ Moved
test
module into the :mod:stdnet.utils.test
module and refactored the main test class for handling tests on multiple back-ends at once. - :class:
stdnet.odm.ManyToManyField
field can perform queries on the whole data-set of the model which maintains the :ref:many-to-many relationship <many-to-many>
. To do so, the manager must be accessed via the class rather than an instance. Also thethrough
attribute has been removed as it was equivalent to themodel
attribute. - ๐ The :ref:
load_only <performance-loadonly>
query method can be applied to field of related models. - ๐ The :ref:
load_related <performance-loadrelated>
query method can now load only theprimary key
of the related element. - ๐ Changed the default value of :attr:
stdnet.odm.ForeignKey.related_name
attribute to accommodate for multiple foreign keys with same related model in the same model. - ๐ Fixed critical bug in :attr:
stdnet.odm.ForeignKey
with attributerequired
set toFalse
. Previously the deletion of instances of the related model caused the deletion of the instances pointing to those deleted objects. - Minor bug fix in lua
odm
script when sorting with respect related model fields which are missing. - Added the new :meth:
stdnet.odm.StdModel.get_attr_value
method for retrieving nested attribute values using the (optional) :ref:double underscore notation <tutorial-underscore>
. - 0๏ธโฃ :attr:
stdnet.odm.Field.default
attribute made read-only. - โก๏ธ :meth:
stdnet.odm.Session.add
acceptforce_update
parameter which can be used to force anupdate
rather than anoverride
when an instance is persistent and fully loaded. - A new asynchronous redis connection for fully asynchronous usage of the api.
Check the :ref:
asynchronous tutorial <tutorial-asynchronous>
for information. - ๐จ Refactored test suite to handle asynchronous and synchronous connections.
- Redis
odm
script is able to fix unique-keys/ids conflicts. - โ 578 regression tests with 93% coverage.
.. _vers07: