Page MenuHomec4science

repo.py
No OneTemporary

File Metadata

Created
Thu, Aug 29, 14:09
import copy
import logging
from ... import export
from ..repos.phabricator import PhabRepo
__author__ = "Nicolas Richart"
__copyright__ = "Copyright (C) 2016, EPFL (Ecole Polytechnique Fédérale " \
"de Lausanne) - SCITAS (Scientific IT and Application " \
"Support)"
__credits__ = ["Nicolas Richart"]
__license__ = "BSD"
__version__ = "0.1"
__maintainer__ = "Nicolas Richart"
__email__ = "nicolas.richart@epfl.ch"
_logger = logging.getLogger(__name__)
@export
class C4ScienceRepo(PhabRepo):
def __init__(self, **kwargs):
args = copy.copy(kwargs)
if 'host' in args and args['host'] != 'https://c4science.ch/':
_msg = 'You cannot specify an \'host\'' + \
' if you use the c4science backend'
_logger.error(_msg)
raise RuntimeError(_msg)
args['host'] = 'https://c4science.ch/'
super().__init__(**args)

Event Timeline