Mercurial > kallithea
comparison rhodecode/model/forms.py @ 1346:cf78d302d441 beta
#47 implemented deleting of empty groups. Fixed problem with full paths on nested groups
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 23 May 2011 02:46:43 +0200 |
parents | 3bce31f026b8 |
children | 43b8e161be3f |
comparison
equal
deleted
inserted
replaced
1345:3bce31f026b8 | 1346:cf78d302d441 |
---|---|
235 | 235 |
236 | 236 |
237 if value.get('repo_group'): | 237 if value.get('repo_group'): |
238 gr = Group.get(value.get('repo_group')) | 238 gr = Group.get(value.get('repo_group')) |
239 group_path = gr.full_path | 239 group_path = gr.full_path |
240 # value needs to be aware of group name | 240 # value needs to be aware of group name in order to check |
241 # it has to use '/' | 241 # db key |
242 repo_name_full = group_path + '/' + repo_name | 242 repo_name_full = group_path + Group.url_sep() + repo_name |
243 else: | 243 else: |
244 group_path = '' | 244 group_path = '' |
245 repo_name_full = repo_name | 245 repo_name_full = repo_name |
246 | 246 |
247 | 247 |