def test_public(self): self.assertEqual(check_data_writable(), []) # This will generate new key key = get_gpg_public_key() self.assertIsNotNone(key) # Check cache access self.assertEqual(key, get_gpg_public_key())
def check_gpg(app_configs, **kwargs): from weblate.vcs.gpg import get_gpg_public_key get_gpg_public_key() template = "{}: {}" return [ weblate_check("weblate.C036", template.format(key, message)) for key, message in weblate.vcs.gpg.GPG_ERRORS.items() ]
def page_context(self, context): context.update({ 'title': _('Weblate keys'), 'gpg_key_id': get_gpg_sign_key(), 'gpg_key': get_gpg_public_key(), 'ssh_key': get_key_data(), 'allow_index': True, })
def page_context(self, context): context.update({ "title": _("Weblate keys"), "gpg_key_id": get_gpg_sign_key(), "gpg_key": get_gpg_public_key(), "ssh_key": get_key_data(), "allow_index": True, })
def keys(request): """Show keys information.""" return render( request, 'keys.html', { 'title': _('Weblate keys'), 'gpg_key_id': get_gpg_sign_key(), 'gpg_key': get_gpg_public_key(), 'ssh_key': get_key_data(), 'allow_index': True, })
def about(request): """Show about page with version information.""" return render( request, 'about.html', { 'title': _('About Weblate'), 'versions': get_versions() + get_optional_versions(), 'allow_index': True, 'gpg_key_id': get_gpg_sign_key(), 'gpg_key': get_gpg_public_key(), })
def about(request): """Show about page with version information.""" return render( request, 'about.html', { 'title': _('About Weblate'), 'versions': get_versions() + get_optional_versions(), 'allow_index': True, 'gpg_key_id': get_gpg_sign_key(), 'gpg_key': get_gpg_public_key(), } )