pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

dirty doesnt work for lists. #32

Closed pythononwheels closed 5 years ago

pythononwheels commented 6 years ago

dirty object tracking does not work for lists (maybe all Iterables dont work as of now)

pythononwheels commented 6 years ago

same for dicts.

Reason:
is that several changes to an list/dict attribute of a python object dont triggert __setattr__. Only direct assignments do. But l[index]=d or a.append(x) dont trigger __setattr__ so dirty is not informed.

Solution: Need list/dict observers for that which send changes to the model and track dirty changes..

tackling this in a new branch.

pythononwheels commented 5 years ago

dirty feature will be postponed ....