annotate docs/changelog.rst @ 5326:7557da2252a3

auth: construct AuthUser from either user_id or db.User object If the caller already has the database User object, there's no reason for AuthUser to look it up again. The `api_key` lookup functionality is dropped, because 1) it's only used in one place, and 2) it's simple enough for the caller to do the lookup itself. The `user_id` lookup functionality is kept, because 1) it's frequently used, and 2) far from a simple `User.get(id)` lookup, it has a complex interaction with UserModel. (That cleanup will have to wait for another day.) All calls of the form `AuthUser(user_id=x.user_id)` can be replaced with `AuthUser(dbuser=x)`, assuming `x` is a db.User. However, verifying that assumption requires a manual audit of every call site, since `x` might also be another `AuthUser` object, for instance. Therefore, only the most obvious call sites have been fixed here.
author Søren Løvborg <kwi@kwi.dk>
date Sun, 26 Jul 2015 14:10:16 +0200
parents ad49bbd8f984
children 5ae8e644aa88
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
585
42a87338035a Version bump.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 .. _changelog:
42a87338035a Version bump.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2
2095
Marcin Kuzminski <marcin@python-works.com>
parents: 2093
diff changeset
3 =========
585
42a87338035a Version bump.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 Changelog
42a87338035a Version bump.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 =========
42a87338035a Version bump.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6
4177
ad49bbd8f984 changelog - should refer to Mercurial repository logs instead
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4114
diff changeset
7 Kallithea project doesn't keep its changelog here. We refer you to our Mercurial logs_ .
2041
d533249e7d55 docs updates for release
Marcin Kuzminski <marcin@python-works.com>
parents: 2020
diff changeset
8
4177
ad49bbd8f984 changelog - should refer to Mercurial repository logs instead
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4114
diff changeset
9 .. _logs: https://kallithea-scm.org/repos/kallithea/changelog