BitsDevelopmentTeam / bits-server

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

Externalize and make explicit DB session management, introducing user ID. #13

Closed esseks closed 11 years ago

esseks commented 11 years ago

Session management is pushed up to the user with this commit. This allows for lazy loading of attributes and relations, since the session will be handler-wise (and not operation-wise).

The new primary key for users is a numeric ID, which offers better perfomances and will allow for more privacy in cookies (no username inside). This second change is closely coupled to the one above and is contained in file bitsd/persistence/model.py.

esseks commented 11 years ago

Id in cookies is still a WIP