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.RefsList
fixed.
- New arg
force
added toFinder.delete()
. Entity.__repr__()
implemented.- Entities relationship management fixed.
- Errors in
List
andString
'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_val
arg 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.Abstract
class renamed toBase
.field.Base.required
prop renamed tois_required
.field.List.unique
prop renamed tois_unique
.- New method
field.Base.get_prev_val()
added. - New args
skip_hooks
andreflect_prev_val
added tofield.Base.set_val()
. - All
model.Entity
hook methods got prefixon
. model.Entity._deleted()
hook method removed in favour of usage_on_after_delete()
method.- Default indexes added for
_created
and_modified
fields 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_modified
added. - 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.8
andquery-1.1
. - New
mfind()
API function. Finder
class separated in two classes:SingleModelFinder
andMultiModelFinder
.- Support for multiple
model
arg'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 gotentity
parameter.
- 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.
error
module 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
InvalidReference
added.
New argument name
added to Entity.define_index()
.
- Properties added to
Aggregator
:model
,mock
,pipeline
. Aggregator
is iterable now.- New
process
argument added toResult.__init()__
. - New
result_processor
argument 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_values
property and contructor's argument renamed tovalues
.valid_types
contructor's argument removed.
Support of pytsite-7.20
.
- New API function:
clear_cache()
. - Events related shortcut API functions added.
clear_finder_cache()
removed.odm@register
event renamed to[email protected]
.odm@finder_cache.clear
event 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.FinderResult
renamed toResult
.Entity
added 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.