vlead / feedback-portal

This is the portal, where all kinds of feedback related to a lab or an experiment is filled in.
Other
0 stars 11 forks source link

Build the API using delegation for persistence object insted of deep copy #31

Open travula opened 7 years ago

travula commented 7 years ago

The API that allows "get" works on the state variable that is a dictionary that stores all the attributes of an object. To provide the same API to a persistent object retrieved by sqlalchemy, currently the attributes are copied to the state variable. This is a deep copy. Instead a delegate should be provided for a persistence object that does not do a deep copy but still retrieves the attribute.