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 the through attribute has been removed as it was equivalent to the model 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 the primary 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 attribute required set to False. 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 accept force_update parameter which can be used to force an update rather than an override 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: