Mercurial > public > src > rhodecode
comparison pylons_app/controllers/admin/settings.py @ 490:a977818fbc6d demo
Merge with default branch ac21f018f6befd7a09e11596074a0fb77ccbfc79
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Sep 2010 09:24:16 +0200 |
parents | 05f985964a96 a0a93357f954 |
children | b5e1a66b4aac |
comparison
equal
deleted
inserted
replaced
484:c3e28b44454b | 490:a977818fbc6d |
---|---|
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 |