BitsDevelopmentTeam / bits-server

Presence and logging daemon for BITS system.
GNU General Public License v3.0
5 stars 2 forks source link

Making JSON dict-wrap default in models. #14

Closed esseks closed 11 years ago

esseks commented 11 years ago

Each model has a .jsondict() method for returning a JSON-serializable dictionary. 90% of times you will want such data wrapped in a dictionary, because the client message loop expects this and because it's secured against JS exploits. Hence, I have made wrap=True the default behaviour.