# HG changeset patch # User Thomas De Schampheleire # Date 1422995971 -3600 # Node ID 53d766fc9782d53bc8521996d69da272629eecc4 # Parent b8c69e4deacd4c54c7db8f65d073b06be87aff62 spelling: consistent capitalization of URL Change Url / url into URL. Additionally, convert the sole use of 'Uri' to URL. diff -r b8c69e4deacd -r 53d766fc9782 kallithea/model/validators.py --- a/kallithea/model/validators.py Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/model/validators.py Tue Feb 03 21:39:31 2015 +0100 @@ -471,9 +471,9 @@ class _validator(formencode.validators.FancyValidator): messages = { - 'clone_uri': _(u'invalid clone url'), - 'invalid_clone_uri': _(u'Invalid clone url, provide a ' - 'valid clone http(s)/svn+http(s)/ssh url') + 'clone_uri': _(u'invalid clone URL'), + 'invalid_clone_uri': _(u'Invalid clone URL, provide a ' + 'valid clone http(s)/svn+http(s)/ssh URL') } def validate_python(self, value, state): @@ -486,7 +486,7 @@ try: url_handler(repo_type, url, make_ui('db', clear_session=False)) except Exception: - log.exception('Url validation failed') + log.exception('URL validation failed') msg = M(self, 'clone_uri') raise formencode.Invalid(msg, value, state, error_dict=dict(clone_uri=msg) diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/admin/repos/repo_add_base.html --- a/kallithea/templates/admin/repos/repo_add_base.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/admin/repos/repo_add_base.html Tue Feb 03 21:39:31 2015 +0100 @@ -24,7 +24,7 @@
${h.text('clone_uri',class_="small")} - ${_('Optional url from which repository should be cloned.')} + ${_('Optional URL from which repository should be cloned.')}
diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/admin/repos/repo_edit_remote.html --- a/kallithea/templates/admin/repos/repo_edit_remote.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/admin/repos/repo_edit_remote.html Tue Feb 03 21:39:31 2015 +0100 @@ -1,6 +1,6 @@ %if c.repo_info.clone_uri:
- ${_('Remote url')}: ${c.repo_info.clone_uri_hidden} + ${_('Remote URL')}: ${c.repo_info.clone_uri_hidden}
${h.form(url('edit_repo_remote', repo_name=c.repo_name), method='put')}
@@ -11,6 +11,6 @@ ${h.end_form()} %else:
- ${_('This repository does not have a remote url set.')} + ${_('This repository does not have a remote URL set.')}
%endif diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/admin/repos/repo_edit_settings.html --- a/kallithea/templates/admin/repos/repo_edit_settings.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/admin/repos/repo_edit_settings.html Tue Feb 03 21:39:31 2015 +0100 @@ -11,14 +11,14 @@ ${_('Non-changeable id')}: `_${c.repo_info.repo_id}` ${_('What is that?')} + ${_('''In case this repository is renamed or moved into another group the repository URL changes. + Using the above URL guarantees that this repository will always be accessible under such URL. + Useful for CI systems, or any other cases that you need to hardcode the URL into 3rd party service.''')}
- +
%if c.repo_info.clone_uri: @@ -34,7 +34,7 @@ ${h.text('clone_uri',class_="medium")} ${h.hidden('clone_uri_change', 'NEW')} %endif - ${_('Url used for doing remote pulls.')} + ${_('URL used for doing remote pulls.')}
diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/admin/settings/settings_system.html --- a/kallithea/templates/admin/settings/settings_system.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/admin/settings/settings_system.html Tue Feb 03 21:39:31 2015 +0100 @@ -6,7 +6,7 @@ (_('Platform'), c.platform, ''), (_('Git version'), c.git_version, ''), (_('Git path'), c.ini.get('git_path'), ''), - (_('Upgrade info endpoint'), h.literal('%s
%s.' % (c.update_url, _('Note: please make sure this server can access this url'))), '') + (_('Upgrade info endpoint'), h.literal('%s
%s.' % (c.update_url, _('Note: please make sure this server can access this URL'))), '') ] %> diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/admin/settings/settings_visual.html --- a/kallithea/templates/admin/settings/settings_visual.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/admin/settings/settings_visual.html Tue Feb 03 21:39:31 2015 +0100 @@ -27,8 +27,8 @@
${h.text('gravatar_url', size=80)} - ${_('''Gravatar url allows you to use another avatar server application. - The following variables of the url will be replaced accordingly. + ${_('''Gravatar URL allows you to use another avatar server application. + The following variables of the URL will be replaced accordingly. {scheme} 'http' or 'https' sent from running Kallithea server, {email} user email, {md5email} md5 hash of the user email (like at gravatar.com), @@ -39,7 +39,7 @@
${h.text('clone_uri_tmpl', size=80)} - ${_('''Schema of clone url construction eg. '{scheme}://{user}@{netloc}/{repo}'. + ${_('''Schema of clone URL construction eg. '{scheme}://{user}@{netloc}/{repo}'. The following variables are available: {scheme} 'http' or 'https' sent from running Kallithea server, {user} current user username, diff -r b8c69e4deacd -r 53d766fc9782 kallithea/templates/summary/summary.html --- a/kallithea/templates/summary/summary.html Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/templates/summary/summary.html Tue Feb 03 21:39:31 2015 +0100 @@ -72,7 +72,7 @@
- +
diff -r b8c69e4deacd -r 53d766fc9782 kallithea/tests/functional/test_admin_repos.py --- a/kallithea/tests/functional/test_admin_repos.py Sat Jan 24 22:07:35 2015 +0100 +++ b/kallithea/tests/functional/test_admin_repos.py Tue Feb 03 21:39:31 2015 +0100 @@ -339,7 +339,7 @@ repo_type=self.REPO_TYPE, repo_description=description, clone_uri='http://127.0.0.1/repo')) - response.mustcontain('invalid clone url') + response.mustcontain('invalid clone URL') def test_create_remote_repo_wrong_clone_uri_hg_svn(self): @@ -352,7 +352,7 @@ repo_type=self.REPO_TYPE, repo_description=description, clone_uri='svn+http://127.0.0.1/repo')) - response.mustcontain('invalid clone url') + response.mustcontain('invalid clone URL') def test_delete(self):