Files
@ ffd45b185016
Branch filter:
Location: kallithea/rhodecode/lib/exceptions.py - annotation
ffd45b185016
2.3 KiB
text/x-python
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
This imports changes between changesets 21af6c4eab3d and 6177597791c2 in
RhodeCode's original repository, including only changes to Python files and HTML.
RhodeCode clearly licensed its changes to these files under GPLv3
in their /LICENSE file, which states the following:
The Python code and integrated HTML are licensed under the GPLv3 license.
(See:
https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE
or
http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE
for an online copy of that LICENSE file)
Conservancy reviewed these changes and confirmed that they can be licensed as
a whole to the Kallithea project under GPLv3-only.
While some of the contents committed herein are clearly licensed
GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the
statement above from RhodeCode indicates that they intend GPLv3-only as their
license, per GPLv3§14 and other relevant sections of GPLv3.
This imports changes between changesets 21af6c4eab3d and 6177597791c2 in
RhodeCode's original repository, including only changes to Python files and HTML.
RhodeCode clearly licensed its changes to these files under GPLv3
in their /LICENSE file, which states the following:
The Python code and integrated HTML are licensed under the GPLv3 license.
(See:
https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE
or
http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE
for an online copy of that LICENSE file)
Conservancy reviewed these changes and confirmed that they can be licensed as
a whole to the Kallithea project under GPLv3-only.
While some of the contents committed herein are clearly licensed
GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the
statement above from RhodeCode indicates that they intend GPLv3-only as their
license, per GPLv3§14 and other relevant sections of GPLv3.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | c1516b35f91d a671db5bdd58 a671db5bdd58 a671db5bdd58 a671db5bdd58 6832ef664673 26237de9b613 26237de9b613 26237de9b613 26237de9b613 6832ef664673 26237de9b613 a671db5bdd58 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 ffd45b185016 c1516b35f91d aa17c7a1b8a5 aa17c7a1b8a5 c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d 26237de9b613 c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d 1bb0fcdec895 c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d c1516b35f91d a62af7d509ee 89efedac4e6c fa6ba6727475 a62af7d509ee 4fbbc65e8cd5 4fbbc65e8cd5 4fbbc65e8cd5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 b44979649915 b44979649915 b44979649915 b44979649915 d9b89874edf9 d9b89874edf9 d9b89874edf9 d9b89874edf9 dc4644865e8b dc4644865e8b dc4644865e8b dc4644865e8b aa17c7a1b8a5 aa17c7a1b8a5 7174ee850baa 7174ee850baa aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 7174ee850baa 7174ee850baa 7174ee850baa 7174ee850baa aa17c7a1b8a5 aa17c7a1b8a5 aa17c7a1b8a5 008e460c5b9d 008e460c5b9d 008e460c5b9d 008e460c5b9d 3b136af34329 3b136af34329 3b136af34329 3b136af34329 3b136af34329 3b136af34329 3b136af34329 3b136af34329 7676606f7622 7676606f7622 7676606f7622 7676606f7622 | # -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
rhodecode.lib.exceptions
~~~~~~~~~~~~~~~~~~~~~~~~
Set of custom exceptions used in RhodeCode
:created_on: Nov 17, 2010
:author: marcink
:copyright: (c) 2013 RhodeCode GmbH.
:license: GPLv3, see LICENSE for more details.
"""
from webob.exc import HTTPClientError
class LdapUsernameError(Exception):
pass
class LdapPasswordError(Exception):
pass
class LdapConnectionError(Exception):
pass
class LdapImportError(Exception):
pass
class DefaultUserException(Exception):
pass
class UserOwnsReposException(Exception):
pass
class UserGroupsAssignedException(Exception):
pass
class StatusChangeOnClosedPullRequestError(Exception):
pass
class AttachedForksError(Exception):
pass
class RepoGroupAssignmentError(Exception):
pass
class NonRelativePathError(Exception):
pass
class HTTPLockedRC(HTTPClientError):
"""
Special Exception For locked Repos in RhodeCode, the return code can
be overwritten by _code keyword argument passed into constructors
"""
code = 423
title = explanation = 'Repository Locked'
def __init__(self, reponame, username, *args, **kwargs):
from rhodecode import CONFIG
from rhodecode.lib.utils2 import safe_int
_code = CONFIG.get('lock_ret_code')
self.code = safe_int(_code, self.code)
self.title = self.explanation = ('Repository `%s` locked by '
'user `%s`' % (reponame, username))
super(HTTPLockedRC, self).__init__(*args, **kwargs)
class IMCCommitError(Exception):
pass
class UserCreationError(Exception):
pass
class RepositoryCreationError(Exception):
pass
class HgsubversionImportError(Exception):
pass
|