Mercurial > kallithea
comparison rhodecode/lib/utils.py @ 1557:ad6f892f3134 beta
fixes issue with auto create of groups on windows
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 13 Oct 2011 04:32:19 +0200 |
parents | fbc762ae3496 |
children | 752b0a7b7679 2c0d35e336b5 |
comparison
equal
deleted
inserted
replaced
1556:1efca2908ae4 | 1557:ad6f892f3134 |
---|---|
393 # TODO: remove this in future | 393 # TODO: remove this in future |
394 for g in Group.query().all(): | 394 for g in Group.query().all(): |
395 g.group_name = g.get_new_name(g.name) | 395 g.group_name = g.get_new_name(g.name) |
396 sa.add(g) | 396 sa.add(g) |
397 for name, repo in initial_repo_list.items(): | 397 for name, repo in initial_repo_list.items(): |
398 group = map_groups(name.split(os.sep)) | 398 group = map_groups(name.split(Repository.url_sep())) |
399 if not rm.get_by_repo_name(name, cache=False): | 399 if not rm.get_by_repo_name(name, cache=False): |
400 log.info('repository %s not found creating default', name) | 400 log.info('repository %s not found creating default', name) |
401 added.append(name) | 401 added.append(name) |
402 form_data = { | 402 form_data = { |
403 'repo_name': name, | 403 'repo_name': name, |