Mercurial > kallithea
diff rhodecode/controllers/summary.py @ 674:99875a8f2ad1 beta
#49 Enabled anonymous access push and pull commands
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 11 Nov 2010 01:21:33 +0100 |
parents | 9dc1d92d82ed |
children | 7486da5f0628 |
line wrap: on
line diff
--- a/rhodecode/controllers/summary.py Thu Nov 11 01:05:43 2010 +0100 +++ b/rhodecode/controllers/summary.py Thu Nov 11 01:21:33 2010 +0100 @@ -62,9 +62,15 @@ e = request.environ - uri = u'%(protocol)s://%(user)s@%(host)s%(prefix)s/%(repo_name)s' % { + if self.rhodecode_user.username == 'default': + password = ':default' + else: + password = '' + + uri = u'%(protocol)s://%(user)s%(password)s@%(host)s%(prefix)s/%(repo_name)s' % { 'protocol': e.get('wsgi.url_scheme'), 'user':str(c.rhodecode_user.username), + 'password':password, 'host':e.get('HTTP_HOST'), 'prefix':e.get('SCRIPT_NAME'), 'repo_name':c.repo_name, }