Mercurial > kallithea
diff rhodecode/model/forms.py @ 1361:87ca17540603 beta
fixed #47 adding a new repo that have a group chosen had wrong paths.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 04 Jun 2011 22:57:22 +0200 |
parents | d5c7b21ff54a |
children | 923d2f699bd7 |
line wrap: on
line diff
--- a/rhodecode/model/forms.py Sat Jun 04 20:34:30 2011 +0200 +++ b/rhodecode/model/forms.py Sat Jun 04 22:57:22 2011 +0200 @@ -227,8 +227,7 @@ def to_python(self, value, state): try: - self.user_db = User.query()\ - .filter(User.active == True)\ + User.query().filter(User.active == True)\ .filter(User.username == value).one() except Exception: raise formencode.Invalid(_('This username is not valid'), @@ -251,7 +250,8 @@ gr = Group.get(value.get('repo_group')) group_path = gr.full_path # value needs to be aware of group name in order to check - # db key + # db key This is an actuall just the name to store in the + # database repo_name_full = group_path + Group.url_sep() + repo_name else: group_path = ''