Martin Bornhold
d7ee3ddb9b
tests: Add custom header to expected headers
2016-08-09 16:33:38 +02:00
Martin Bornhold
12a8910af2
vcs: Remove 'rhodecode.vcs.skip_error_handling' flag from environ.
2016-08-09 16:05:30 +02:00
Martin Bornhold
6ef4a65cc0
vcs: Use response header to decide if error handling is needed.
2016-08-09 16:04:01 +02:00
Martin Bornhold
1b6f04f8b6
vcs: Add custom response header 'X-RhodeCode-Backend' to indicate VCS responses and which backend is in use.
2016-08-09 16:03:14 +02:00
Martin Bornhold
0015204e38
config: Rename method to clarify what it does.
2016-08-09 09:27:25 +02:00
Martin Bornhold
e5c6c0c63f
tests: Add some test cases for unicode and list separation.
2016-08-09 09:22:14 +02:00
Martin Bornhold
f50ff4a0b7
config: Encode unicode strings before passing it to pyramids asbool function.
2016-08-09 09:21:43 +02:00
Martin Bornhold
a94d087225
config: Use rhodecode aslist if commas included in list settings otherwise pyramids aslist.
2016-08-09 08:52:33 +02:00
Martin Bornhold
3273b9efca
tests: Use settings dict from fixture instead of grabbing it from the WSGI app stack.
2016-08-08 15:03:03 +02:00
Martin Bornhold
24d3455854
tests: Add a fixture to get the settings dict.
2016-08-08 15:02:12 +02:00
Martin Bornhold
753b920fa8
vcs: Skip error handling in case of responses from VCSMiddleware.
2016-08-08 15:01:39 +02:00
Martin Bornhold
0c47e1e8f1
vcs: Add a flag to the environ to skip the error handling for responses from VCSMiddleware
2016-08-08 15:01:10 +02:00
Martin Bornhold
ef608f6b78
config: Use settings from pyramid app init for appenlight.
2016-08-08 10:33:13 +02:00
Martin Bornhold
89ac5b779f
config: Sanitize 'appenlight' and 'gzip_responses' settings.
2016-08-08 09:44:35 +02:00
Martin Bornhold
97b46e09db
config: Set 'gzip_responses' to false by default.
2016-08-08 09:30:14 +02:00
Martin Bornhold
2af09823e6
config: Remove unsused setting 'full_stack' from ini files.
2016-08-08 09:29:49 +02:00
Martin Bornhold
7797d0a8e6
config: Move appenlight wrapping from pylons to pyramid.
2016-08-08 09:28:10 +02:00
Martin Bornhold
de3885bda3
ae: Rely on fully prepared settings in appenlight wrapping function.
2016-08-08 09:00:20 +02:00
Martin Bornhold
af75eea2c8
tests: Add test to check the sanitize settings method in app init.
2016-08-08 08:31:36 +02:00
Martin Bornhold
ebaab4bbd2
tests: Adapt tests to recent changes.
2016-08-08 08:30:34 +02:00
Martin Bornhold
c46ad9f215
vcs: Pass registry to vcs for user authentication.
...
Explicit pass the registry insted of indirectly using it via pyramids
thread locals.
2016-08-08 08:29:10 +02:00
Martin Bornhold
e61c84a72e
config: Use hooks protocol and direc calls seting from vcs settings module.
2016-08-08 08:29:35 +02:00
Martin Bornhold
b466d2779a
vcs: Raise an error in case of unsupported protocol.
2016-08-08 08:24:59 +02:00
Martin Bornhold
1739739bed
config: Move vcs hooks protocol and direct call setting to vcs configure mehod.
2016-08-08 08:23:53 +02:00
Martin Bornhold
8b36c76305
config: Update config files with comment about 'vcs.backends' setting.
2016-08-08 08:20:06 +02:00
Martin Bornhold
ea4b4bfc2e
config: Sanitize 'default encoding' setting.
2016-08-05 17:14:56 +02:00
Martin Bornhold
4bc09a4562
config: Sanitize vcs realted settings during pyramid app init.
2016-08-05 17:14:24 +02:00
Martin Bornhold
a6bc25daf6
config: Add method to sanitize string values from ini file.
2016-08-05 17:12:37 +02:00
Martin Bornhold
ecc63cf8b5
config: Add method to sanitize list values from ini file.
2016-08-05 17:12:07 +02:00
Martin Bornhold
b2edd71976
vcs: Move the setup code for vcs lib from pylons to pyramid layer.
...
The VCS setup code now uses the prepared settings from pyramid layer.
2016-08-05 17:10:33 +02:00
Martin Bornhold
352325bea9
vcs: Move VCSMiddleware up to pyramid layer as wrapper around pylons app.
...
The VCSMiddleware is now moved to the pyramid layer and acts as a fallback
if pyramid does not find a view to handle the request.
2016-08-05 17:07:19 +02:00
Martin Bornhold
9cf62f5f92
config: Move initial repo scan up to the pyramid layer.
...
It is now subscribed to the ApplicationCreated event from pyramid.
2016-08-05 17:01:00 +02:00
Martin Bornhold
8d70188a1f
vcs: Retrieve base path and realm with new helper methods.
2016-08-05 16:56:38 +02:00
Marcin Kuzminski
c7a2b59438
js-log: logger doesn't have warning(), just warn().
2016-08-08 18:54:39 +02:00
Daniel Dourvaris
3eeae59bb6
static: use static_path instead of static_url to account for http vs https
2016-08-08 18:12:55 +03:00
Daniel Dourvaris
95ff761670
celery: create custom celery task class which loads context/threadlocals
...
of the original request required for tasks like create_repo which needs
to generate a url after the repo is created. fixes #4139
2016-08-03 03:59:58 +03:00
Daniel Dourvaris
d5cc2f99f6
jsonalchemy: add pickle support to mutation dict so that json
...
setting values can be pickled and passed to celery tasks
2016-08-03 03:19:12 +03:00
Martin Bornhold
f60d2f0446
svn: Add rhodecode realm to subversion configuration generation.
2016-08-01 15:30:38 +02:00
Martin Bornhold
9eb5871314
svn: Set authentication realm to None in apache config template
...
Inside of the vcs middlewares we are using the empty string as
authentication realm for HTTP basic auth. Because we are proxy
the requestst between svn client and mod_dav_svn wen have to
use the same authentication relam in mod_dav_svn and vcs middleware.
Otherwise auth is impossible because of mismatching realms.
2016-08-01 08:57:27 +02:00
Martin Bornhold
6a8886de2c
svn: Adapt tests to recent changes in implementation.
2016-07-29 14:36:01 +02:00
Martin Bornhold
ed89e98739
svn: Split up config generation method and do not raise exceptions on writing config to file.
2016-07-29 14:35:36 +02:00
Martin Bornhold
4765be2517
svn: Move path computation from themplate to python.
2016-07-29 13:27:32 +02:00
Martin Bornhold
95880bb787
svn: Escape environment variable syntax in comment to prevent mako from rendering it.
2016-07-29 13:25:43 +02:00
Martin Bornhold
95658205a8
svn: Add fake authentication to the mod_dav_svn config template.
2016-07-29 12:32:13 +02:00
Martin Bornhold
89da594fe9
svn: Rename keys.py to config_keys.py
2016-07-29 12:24:10 +02:00
Martin Bornhold
86805b6f78
svn: Remove print statement and add __name__ to logger.
2016-07-28 09:54:35 +02:00
Martin Bornhold
6b8ebd59d9
events: Implement the as_dict method for repository group events.
2016-07-28 09:47:44 +02:00
Martin Bornhold
4bdc652296
svn: Add test to check the config file generation.
2016-07-26 12:10:07 +02:00
Martin Bornhold
9d72844ad3
svn: Moved code and make a small bugfix.
2016-07-26 12:09:39 +02:00
Martin Bornhold
77fd67320f
svn: Add settings to default configuration files.
2016-07-28 11:32:28 +02:00