Martin Bornhold
b4ce022c69
vcs: Remove unused code from get_scm function.
...
No code seems to use these arguments anymore so it's better to remove
them and simplify the code by removing unsused code paths.
2016-07-21 09:02:27 +02:00
Martin Bornhold
0c80668486
vcs: Refactor the get_repo function.
...
Goal was to not use the search_path_up argument of get_scm and
include some logic that sits in model.db.Repository in get_scm_instance
method.
2016-07-21 09:00:53 +02:00
Martin Bornhold
03559da24d
auth: Fix password_changed function, fixes #4043 .
...
Never repot a changed password for default or anonymous users.
If anonymous access is disabled we don't get the default user here so we
also have to check if it is the anonymous user. In both cases (default user
and anonymous user) we can skip the password change check and return False.
2016-07-22 12:57:51 +02:00
Martin Bornhold
7738578914
vcs: Add license header from the origin to geventcurl.
2016-07-21 12:49:44 +02:00
Martin Bornhold
99a93285fe
vcs: Implemented a gevent compatible Curl class, part of #4046
...
This Curl class acts like a wrapper around the original one but uses
the curl multi interface together with gevent's machanisms for synchronization
of threads (greenlets).
2016-07-21 12:51:50 +02:00
Martin Bornhold
d31aca7e32
svn: Ignore the content length header from response, fixes #4112
...
In case of compressed responses from apache(mod_dav_svn) we can not
use the Content-Length header in our own response. The content is
automatically decompressed by the requests library and therefore
the content length differs.
This results in errors when doing e.g. a svn checkout:
"svn: E120106: ra_serf: The server sent a truncated HTTP response body."
2016-07-20 17:20:50 +02:00
Daniel Dourvaris
5a33ed7427
assets: convert pylons static files to pyramid static_url, fixes #3504
2016-07-18 15:17:18 +03:00
Daniel Dourvaris
efc1db0e2e
integrations: use mutable json settings using json alchemy MutableObject.
2016-07-14 11:23:28 +02:00
Marcin Kuzminski
990143eae0
tokens: auth-token is not only for git/hg but also for svn.
...
Changed some docstrings to indicate this.
2016-07-13 12:34:17 +02:00
Johannes Bornhold
00ec4381f9
subversion: Detect requests also based on magic path.
2016-07-13 09:15:54 +02:00
Marcin Kuzminski
f48e94aa14
file-browser: refactor how we load metadata for file trees.
...
Before we used to use JSON data to map the nodes to json and fill in
metadata. Now we use rendered parts of html. This is nicer for caching as
it would allow us to replace the view with cached tree and then after ajax load
replace it again with cached with metadata. On the next request we'll
get the cached with metadata and thus we can skip entirely second
ajax call for metadata.
This is part of #4083
2016-07-12 11:45:51 +02:00
Daniel Dourvaris
f81ae45597
slack: fix links in commit/pr events
2016-07-11 17:57:34 +02:00
Marcin Kuzminski
2f3c764642
helpers: remove bad warning calls introduced in commit c8bec9b70fb9
2016-07-11 17:30:23 +02:00
Marcin Kuzminski
ec6cbaa283
whoosh: fallback schema uses now bigger ints, fixes #4035
2016-07-06 12:19:48 +02:00
lisaq
b745d80e45
ux: #4037 use gravatar for commit email and add tooltips for name + email
2016-07-08 17:43:49 +02:00
Daniel Dourvaris
7ff09cda95
integrations: add integration support
...
* added db migration for integration table, version 55
* added integrations views/templates/models
* added slack integration
* added h.url.current() support for pyramid only contexts
* added issues extractor for commit messages
* renamed repo-deleted/repo-created to repo-delete/repo-create
* removed marshmallow
* added serialization for events to static dicts of data
* added lazy_ugettext for translation of start time string
2016-07-10 06:43:20 +03:00
lisaq
4f7a3ca6e8
ux: #4037 use gravatar for commit email and add tooltips for name + email
2016-07-11 14:46:41 +02:00
lisaq
7948b76555
ux: adjust email_or_none so that it does not swap emails
2016-07-07 14:39:18 +02:00
Martin Bornhold
a0dd170a39
vcs: Move vcsserver cache invalidation to mercurial backend.
...
The invalidation is only needed for "writing" mercurial methods.
Previous location covers also "reading" methodas and other vcs backends.
2016-07-11 10:43:48 +02:00
Martin Bornhold
485c007798
http-protocol: Invalidate the VCSServer cache when calling a writing method.
2016-07-08 16:38:43 +02:00
Martin Bornhold
f0581979ba
pyro4: Adapt pyro4 RemoteRepo to have the same API as http RemoteRepo class.
2016-07-08 16:02:29 +02:00
Martin Bornhold
5499e99cdb
http-protocol: Add a method to invalidate the VCSServer cache.
...
This method allows to invalidate the cached repository objects in the VCSServer.
It generates a new UUID which is used by the VCSServer as cache key.
2016-07-08 16:01:35 +02:00
Martin Bornhold
bd289ed8c7
pep8: Cleanup of import statements.
2016-07-08 10:18:55 +02:00
Marcin Kuzminski
d8b86511b9
renderer: fixed the helper funtion to original version. This
...
is incorrect and was breaking tests !!
2016-07-08 19:40:31 +02:00
Marcin Kuzminski
d61bb55cfb
js-template-context: made the context pyramid and pylons compatible.
...
- the routing/controller are bigger problem we'll disable them for now.
2016-07-08 19:02:52 +02:00
Marcin Kuzminski
51e1968537
readme/markup: improved order of generating readme files. Fixes #4050
...
- we now use order based on default system renderer
- having multiple readme files will pick correct one as set renderer
2016-07-07 00:50:39 +02:00
Marcin Lulek
f8716e4525
templateContext: improve the context object idea
2016-07-07 15:33:43 +02:00
Marcin Lulek
50f344ce72
templateContext: allow for flexible way to communicate additional info for client code from controllers
2016-07-07 14:15:03 +02:00
Marcin Lulek
bcb73b4b91
diffs: add translation string
2016-07-06 15:43:25 +02:00
Marcin Lulek
5d275341b8
events handling: minimize the amount of events attached per page
2016-07-06 15:23:11 +02:00
Daniel Dourvaris
a0af559a3d
events: add pull request events
2016-07-06 07:15:02 +03:00
Daniel Dourvaris
9727a3880f
events: add event system for RepoEvents
2016-07-06 06:00:18 +03:00
Marcin Lulek
c4d5806b35
frontend: prepare for plugin registration and life-cycle handling
2016-07-05 17:01:04 +02:00
Martin Bornhold
0f767f23a4
settings: Remove obsolete VCS config value HG_USE_REBASE_FOR_MERGING
2016-06-27 13:30:27 +02:00
Martin Bornhold
1824a54c6d
settings: Use the new 'use_rebase' argument to decide between rebase or merge.
2016-06-27 13:18:25 +02:00
Martin Bornhold
488bd2df2f
settings: Add argument to select rebase as merge strategy.
2016-06-27 13:16:10 +02:00
Martin Bornhold
dec51f1669
pyro: Slightly improved log message and comment.
2016-07-05 09:37:57 +02:00
Martin Bornhold
64893dfad5
pyro: Return new proxy instances if called from outside of a request context.
...
This allows to run code that uses the pyro connection to the VCSServer
but does not execute from within a request context, e.g. invoke tasks.
2016-07-05 09:37:13 +02:00
Martin Bornhold
ed4653ad21
pyro: Make request argument mandatory.
2016-07-04 15:44:15 +02:00
Martin Bornhold
20205cf371
pyro4: Create pyro proxy factory which returns instaces scoped by the request.
2016-07-04 16:35:03 +02:00
Marcin Kuzminski
2ac185151d
markdown: enable gfm globally
2016-07-01 17:47:59 +02:00
Marcin Kuzminski
4da05a5506
markdown: enable gfm by default, this is much standard now and we should use it instead of plain markdown
2016-07-01 13:41:14 +02:00
Marcin Kuzminski
42ba785d95
markdown: enable full githubFlavoredMarkdown
2016-06-29 00:51:18 +02:00
Daniel Dourvaris
46ab48ce5e
celery: set global CELERY_ENABLED on any connection error
2016-06-30 19:38:31 +03:00
Martin Bornhold
2b5bd1c3a9
admin: Add helper to get the registry from requests.
2016-06-29 09:49:55 +02:00
Marcin Kuzminski
68bbf9bd37
caches: make sure __repr__ of invalidaiton context always return strings.
...
- this is a part of python specs, otherwise we potentially can cause
UnicodeDecodeErrors
2016-06-28 16:58:55 +02:00
Marcin Kuzminski
594836b691
merged stable into default
2016-06-28 12:41:11 +02:00
Marcin Kuzminski
772de504bb
encryption: Implement a slightly improved AesCipher encryption.
...
This addresses issues from #4036
- we use a backward compatible cipher that can implement HMAC signature
- with HMAC signature we can detected mangled data or wrong secret key
- this allows more explicit errors than UnicodeDecode errors
- added a new .ini values that controls strict mode
2016-06-27 19:26:03 +02:00
Marcin Kuzminski
16a626ce44
refactor: renamed get_first_admin to get_first_super_admin which
...
reflects better what kind of user we're fetching.
2016-06-28 01:24:24 +02:00
Marcin Kuzminski
7902155b2e
settings: use invalidate after updating settings.
2016-06-27 22:46:33 +02:00