diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2011-06-04 22:57:22 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2011-06-04 22:57:22 +0200 |
commit | 99bb77ab101c3c75843878b6174aa1894737ddfd (patch) | |
tree | b95a5fcd53b78727e35a91bedd053ce65fd8531b /rhodecode/model/forms.py | |
parent | beb2fab08a6f72edf1594eeb9221aead5469d876 (diff) |
fixed #47 adding a new repo that have a group chosen had wrong paths.
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/forms.py')
-rw-r--r-- | rhodecode/model/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py index 46535285..103f9758 100644 --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -227,8 +227,7 @@ class ValidRepoUser(formencode.validators.FancyValidator): 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 @@ def ValidRepoName(edit, old_data): 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 = '' |