1
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
3
# Copyright (C) 2016 Canonical Ltd
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License version 3 as
7
# published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
"""Store snapcraft constants"""
19
from __future__ import absolute_import, unicode_literals
23
SCAN_STATUS_POLL_DELAY = 5
24
SCAN_STATUS_POLL_RETRIES = 5
26
# Messages and warnings.
27
MISSING_AGREEMENT = 'Developer has not signed agreement.'
28
MISSING_NAMESPACE = 'Developer profile is missing short namespace.'
30
'You must agree to the developer terms and conditions to upload snaps.')
32
'You need to set a username. It will appear in the developer field '
33
'alongside the other details for your snap. Please visit {} and login '
35
AGREEMENT_INPUT_MSG = (
36
'Do you agree to the developer terms and conditions. ({})? [y/N] ')
37
AGREEMENT_SIGN_ERROR = (
38
'Unexpected error encountered during signing the developer terms and '
39
'conditions. Please visit {} and agree to the terms and conditions before '
41
TWO_FACTOR_WARNING = (
42
'We strongly recommend enabling multi-factor authentication: '
43
'https://help.ubuntu.com/community/SSO/FAQs/2FA')
44
INVALID_CREDENTIALS = 'Invalid credentials supplied.'
45
AUTHENTICATION_ERROR = ('Problems encountered when authenticating your '
47
ACCOUNT_INFORMATION_ERROR = ('Unexpected error when obtaining your account '