New property Entity._deprecated_methods added to reduce efforts when defining
deprecated methods.
Support of pytsite-9.0.
- New method
field.Base.set_storable_val()added. - Expected behaviour of
field.Base._on_add()andfield.Base._on_sub()changed. - Errors in
field.RefsListfixed.
- New arg
forceadded toFinder.delete(). Entity.__repr__()implemented.- Entities relationship management fixed.
- Errors in
ListandString'srst_val()fixed.
Initial default value of field.DateTime removed.
Missing fields skip added in MultiModelFinder.
Fields values history added.
Call order of model.Entity._on_f_modified() moved to pre_save stage.
- New hook method
model.Entity._on_f_modified()added. reflect_prev_valarg removed fromfield.Base.set_val().
New properties minimum and maximum added to Integer and Decimal
fields.
Support of multiple values of model property of field.Ref and
fieldRefsList.
New method model.Entity.replace_field() added.
field.Abstractclass renamed toBase.field.Base.requiredprop renamed tois_required.field.List.uniqueprop renamed tois_unique.- New method
field.Base.get_prev_val()added. - New args
skip_hooksandreflect_prev_valadded tofield.Base.set_val(). - All
model.Entityhook methods got prefixon. model.Entity._deleted()hook method removed in favour of usage_on_after_delete()method.- Default indexes added for
_createdand_modifiedfields ofmodel.Entity.
Deletion hooks call order fixed.
References checking fixed in model.Entity.delete().
Tracking of changes of entities' fields fixed #2.
Tracking of changes of entities' fields fixed.
New hook model.Entity._deleted().
New model.Entity's hooks: _created() and _modified().
New properties in model.Entity: is_saved
Missing reset of fields is_modified status fixed.
- New property
field.Abstract.is_modifiedadded. - New method
model.Entity.f_is_modified()added.
Support of pytsite-8.11.
field.Abstract.rst_val() fixed.
field.Abstract.default setter fixed.
Fixed Entity._depth field definition.
Overriding of field.Integer.is_empty removed.
New field.RefsList.model_cls property added.
New method Finder.no_cache() added.
Unused obsolete cache arg removed from all Finder's methods.
New Finder.rm() method added.
- Support of
pytsite-8.8andquery-1.1. - New
mfind()API function. Finderclass separated in two classes:SingleModelFinderandMultiModelFinder.- Support for multiple
modelarg's value infield.Ref. - Finders result caching strategy improved.
Entity.http_api_* hooks removed.
Entity.http_api_finder() forbids operation by default.
http_api_finder() and http_api_get() implemented in Entity.
New kwarg fast added to Entity.save().
Entity DB data loading issue fixed.
New attribute storable added to the field.Abstract.
field.Abstract.on_entity_delete()made private and gotentityparameter.
- New method
Entity.lang_package_name()added. Entity.get_package_name()renamed topackage_name().Entity.resolve_msg_id()renamed toresolve_lang_msg_id().
Support of pytsite-8.x.
New argument force in Entity.delete().
get_by_ref() fixed.
get_by_ref() fixed.
get_by_ref() fixed.
- DBRefs removed in favour of manual refs.
errormodule cleaned up.
strip_html and tidyfy_html properties of the field.String are now
True by default.
Exception usage fixed.
Model checking fixed in find().
- Automatic referenced entities deletion detection added.
- New exception
InvalidReferenceadded.
New argument name added to Entity.define_index().
- Properties added to
Aggregator:model,mock,pipeline. Aggregatoris iterable now.- New
processargument added toResult.__init()__. - New
result_processorargument added toFinder.__init()__. - Colection names ends with 'y' letter building issue fixed.
Finder argument sanitization fixed in some fields.
Support of pytsite-7.23.
fields.Enum changed:
valid_valuesproperty and contructor's argument renamed tovalues.valid_typescontructor's argument removed.
Support of pytsite-7.20.
- New API function:
clear_cache(). - Events related shortcut API functions added.
clear_finder_cache()removed.odm@registerevent renamed to[email protected].odm@finder_cache.clearevent renamed to[email protected].
_pre_save() hook calling order shifted.
Entity ID sanitizing added in dispense().
Query building logic moved to separate plugin named query.
field.Abstract.get_raw_val()renamed tofield.Abstract.get_storable_val().- New hook method added:
field._on_get_storable().
Entities relation check fixed
Entities relation check fixed in entity.children_count.
New properties: Entity.children_count and Entity.has_children.
Relations check fixed.
Entity.parent setter added.
New API function: reindex().
Fields bugfix.
- Support for nested entities added.
- Finder improved.
- Caching error fixed.
Finder.__len__()method added.FinderResultrenamed toResult.Entityadded to the public API.
Non-blocking saving and deletion made blocking.
Error in field.ManualRef fixed.
Error in resolve_manual_ref() fixed.
Finder cache management issue fixed.
Finder cache management issue fixed.
Registry key names fixed.
- New fields added:
ObjectId,ManualRef,ManualRefsList,ManualRefsUniqueList. - New aggregation methods added:
sort(),limit().
Entities cache initialization fixed.
Events names refactoring.
Support for pytsite-7.0.
Init code fixed.
Init code fixed.
Support for caching subsystem changes of pytsite-6.1.
Support for pytsite-6.1.
First release.