Mercurial > kallithea
comparison pylons_app/controllers/admin/settings.py @ 446:a0a93357f954
started my page rewrite
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Sep 2010 00:46:07 +0200 |
parents | 3ed2d46a2ca7 |
children | 3fc3ce53659b |
comparison
equal
deleted
inserted
replaced
445:946d8a680a1d | 446:a0a93357f954 |
---|---|
223 """ | 223 """ |
224 GET /_admin/my_account Displays info about my account | 224 GET /_admin/my_account Displays info about my account |
225 """ | 225 """ |
226 # url('admin_settings_my_account') | 226 # url('admin_settings_my_account') |
227 c.user = self.sa.query(User).get(c.hg_app_user.user_id) | 227 c.user = self.sa.query(User).get(c.hg_app_user.user_id) |
228 c.user_repos = [] | |
229 for repo in c.cached_repo_list.values(): | |
230 if repo.dbrepo.user.username == c.user.username: | |
231 c.user_repos.append(repo) | |
232 | |
228 if c.user.username == 'default': | 233 if c.user.username == 'default': |
229 h.flash(_("You can't edit this user since it's" | 234 h.flash(_("You can't edit this user since it's" |
230 " crucial for entire application"), category='warning') | 235 " crucial for entire application"), category='warning') |
231 return redirect(url('users')) | 236 return redirect(url('users')) |
232 | 237 |