Files
@ cdf10b3df899
Branch filter:
Location: kallithea/rhodecode/config/rcextensions/__init__.py - annotation
cdf10b3df899
4.0 KiB
text/x-python
Allow RhodeCode maintainers to specify a custom bug tracker.
This allows people who maintain large RhodeCode installations to setup their
own bug tracker and respond to requests against their specific installation.
The maintainer is then free to forward problems with RhodeCode to the
canonical issue tracker on bitbucket.
If the config option "bugtracker" is present, its value will be used with the
"Report a bug" button. If left blank, this disables the button. If no value is
present, then the default is used. This is so that the new config option
doesn't break installations of RhodeCode upgrading to a newer version and to
allow easier installation for the common use case.
This allows people who maintain large RhodeCode installations to setup their
own bug tracker and respond to requests against their specific installation.
The maintainer is then free to forward problems with RhodeCode to the
canonical issue tracker on bitbucket.
If the config option "bugtracker" is present, its value will be used with the
"Report a bug" button. If left blank, this disables the button. If no value is
present, then the default is used. This is so that the new config option
doesn't break installations of RhodeCode upgrading to a newer version and to
allow easier installation for the common use case.
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 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | 926f55b038bc 926f55b038bc 6418fdb7d807 6418fdb7d807 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 7000fc4aa569 7000fc4aa569 7000fc4aa569 7000fc4aa569 7000fc4aa569 7000fc4aa569 7000fc4aa569 7000fc4aa569 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 1b275d04ac07 926f55b038bc 926f55b038bc 926f55b038bc 5085e51fba3a 5085e51fba3a 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 5085e51fba3a 5085e51fba3a 5085e51fba3a 926f55b038bc 926f55b038bc 5085e51fba3a 926f55b038bc 5085e51fba3a 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 5085e51fba3a 5085e51fba3a 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 5085e51fba3a 5085e51fba3a 5085e51fba3a 926f55b038bc 5085e51fba3a 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc 926f55b038bc | # Additional mappings that are not present in the pygments lexers
# used for building stats
# format is {'ext':['Names']} eg. {'py':['Python']} note: there can be
# more than one name for extension
# NOTE: that this will overide any mappings in LANGUAGES_EXTENSIONS_MAP
# build by pygments
EXTRA_MAPPINGS = {}
# additional lexer definitions for custom files
# it's overrides pygments lexers, and uses defined name of lexer to colorize the
# files. Format is {'ext': 'lexer_name'}
# List of lexers can be printed running:
# python -c "import pprint;from pygments import lexers;pprint.pprint([(x[0], x[1]) for x in lexers.get_all_lexers()]);"
EXTRA_LEXERS = {}
#==============================================================================
# WHOOSH INDEX EXTENSIONS
#==============================================================================
# if INDEX_EXTENSIONS is [] it'll use pygments lexers extensions by default.
# To set your own just add to this list extensions to index with content
INDEX_EXTENSIONS = []
# additional extensions for indexing besides the default from pygments
# those get's added to INDEX_EXTENSIONS
EXTRA_INDEX_EXTENSIONS = []
#==============================================================================
# POST CREATE REPOSITORY HOOK
#==============================================================================
# this function will be executed after each repository is created
def _crhook(*args, **kwargs):
"""
Post create repository HOOK
kwargs available:
:param repo_name:
:param repo_type:
:param description:
:param private:
:param created_on:
:param enable_downloads:
:param repo_id:
:param user_id:
:param enable_statistics:
:param clone_uri:
:param fork_id:
:param group_id:
:param created_by:
"""
return 0
CREATE_REPO_HOOK = _crhook
#==============================================================================
# POST DELETE REPOSITORY HOOK
#==============================================================================
# this function will be executed after each repository deletion
def _dlhook(*args, **kwargs):
"""
Post create repository HOOK
kwargs available:
:param repo_name:
:param repo_type:
:param description:
:param private:
:param created_on:
:param enable_downloads:
:param repo_id:
:param user_id:
:param enable_statistics:
:param clone_uri:
:param fork_id:
:param group_id:
:param deleted_by:
:param deleted_on:
"""
return 0
DELETE_REPO_HOOK = _dlhook
#==============================================================================
# POST PUSH HOOK
#==============================================================================
# this function will be executed after each push it's executed after the
# build-in hook that RhodeCode uses for logging pushes
def _pushhook(*args, **kwargs):
"""
Post push hook
kwargs available:
:param server_url: url of instance that triggered this hook
:param config: path to .ini config used
:param scm: type of VS 'git' or 'hg'
:param username: name of user who pushed
:param ip: ip of who pushed
:param action: push
:param repository: repository name
:param pushed_revs: list of pushed revisions
"""
return 0
PUSH_HOOK = _pushhook
#==============================================================================
# POST PULL HOOK
#==============================================================================
# this function will be executed after each push it's executed after the
# build-in hook that RhodeCode uses for logging pulls
def _pullhook(*args, **kwargs):
"""
Post pull hook
kwargs available::
:param server_url: url of instance that triggered this hook
:param config: path to .ini config used
:param scm: type of VS 'git' or 'hg'
:param username: name of user who pulled
:param ip: ip of who pulled
:param action: pull
:param repository: repository name
"""
return 0
PULL_HOOK = _pullhook
|