comparison rhodecode/lib/utils.py @ 1406:a773087f5e42 beta

fixes #220 repos groups are not detected on Windows
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 02 Jul 2011 00:10:49 +0200
parents b7563ad4e7ee
children 90eebc0f040c
comparison
equal deleted inserted replaced
1405:9c6f39430aff 1406:a773087f5e42
378 sa = meta.Session() 378 sa = meta.Session()
379 rm = RepoModel() 379 rm = RepoModel()
380 user = sa.query(User).filter(User.admin == True).first() 380 user = sa.query(User).filter(User.admin == True).first()
381 added = [] 381 added = []
382 for name, repo in initial_repo_list.items(): 382 for name, repo in initial_repo_list.items():
383 group = map_groups(name.split('/')) 383 group = map_groups(name.split(os.sep))
384 if not rm.get_by_repo_name(name, cache=False): 384 if not rm.get_by_repo_name(name, cache=False):
385 log.info('repository %s not found creating default', name) 385 log.info('repository %s not found creating default', name)
386 added.append(name) 386 added.append(name)
387 form_data = { 387 form_data = {
388 'repo_name': name, 388 'repo_name': name,