Martin Bornhold
51c76d4cf7
admin: Use pyramid translation instead of pylons.
2016-06-29 09:52:34 +02:00
Martin Bornhold
2b5bd1c3a9
admin: Add helper to get the registry from requests.
2016-06-29 09:49:55 +02:00
Martin Bornhold
670d237f39
admin: Register and retrieve navigation registry from pyramids registry.
2016-06-29 08:52:55 +02:00
Martin Bornhold
e898f2e8a9
admin: Create interface to register/retrieve the admin navigation.
2016-06-29 08:24:57 +02:00
Martin Bornhold
5fde5532a9
admin: Move admin settings navigation to admin module.
2016-06-29 08:24:27 +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
Martin Bornhold
0641c0e2d0
authn: Generate the form default values manually.
...
When using colander.flatten(data) it adds colander.null for each
missing form field. But this is not correct. What we want here is
a dict wich contains only the keys/values from request.params that
match a form field.
2016-06-28 16:28:18 +02:00
Marcin Kuzminski
bb56417060
emails: expose profile link on registation email. Implements #3999 .
2016-06-28 15:22:22 +02:00
Martin Bornhold
28f81cadd3
tests: Add session factory fixture and use it in tests.
2016-06-28 13:52:33 +02:00
Martin Bornhold
ce59485a70
tests: Adapt vcs test to check that the session factory returns the same session object.
2016-06-28 13:36:11 +02:00
Marcin Kuzminski
7e7735a235
translations: updated catalog
2016-06-28 12:56:51 +02:00
Marcin Kuzminski
594836b691
merged stable into default
2016-06-28 12:41:11 +02:00
Martin Bornhold
54f29c46ab
authn: Only lookup settings from DB if they are really used.
...
When computing the form defaults only query the DB if we
need the value from DB.
2016-06-28 12:07:10 +02:00
Martin Bornhold
381973ba40
authn: Remove usage of colander.serialize to generate form defaults.
2016-06-28 11:56:27 +02:00
Marcin Kuzminski
8a6feb50a5
pull-requests: reorder navigation on repo pull requests, fixes #2995
2016-06-28 12:04: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
9446dff948
system-settings: prepare to allow to create snapshots of full system settings
...
for support.
2016-06-28 02:08:54 +02:00
Marcin Kuzminski
0e916f338a
user: indicate missing super admin or default as fatal errors.
2016-06-28 01:25:33 +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
ad176ab69b
tests: fixed home tests with cached values
2016-06-28 00:14:31 +02:00
Marcin Kuzminski
7902155b2e
settings: use invalidate after updating settings.
2016-06-27 22:46:33 +02:00
Marcin Kuzminski
b2175b8e8c
tests: fixed pull requests my account tests.
2016-06-27 22:20:43 +02:00
Marcin Kuzminski
449905939f
tests: fixed mock test for utils2
2016-06-27 19:52:43 +02:00
Marcin Kuzminski
c7b2b53fff
tests: fixed tests for helpers.
2016-06-27 19:48:37 +02:00
Marcin Kuzminski
cf352c6625
paster: fix redundant question on writable dir. The question needs to
...
be asked only when the dir is actually not writable.
2016-06-24 20:50:51 +02:00
Marcin Kuzminski
858cf0db77
encryption: allow to pass in alternative key for encryption values
2016-06-24 13:29:27 +02:00
Marcin Kuzminski
2600624410
templates: expose above blocks for login and register pages.
2016-06-24 13:15:39 +02:00
Daniel Dourvaris
d017c17269
celery: log exception in the event of unknown IOError
2016-06-24 14:35:49 +03:00
Daniel Dourvaris
38df61623b
celery: fixed bug where celery was not running
2016-06-24 14:21:29 +03:00
Johannes Bornhold
8a9ef796fc
svn: Avoid chunked transfer for Subversion
2016-06-21 17:12:28 +02:00
Marcin Kuzminski
37372e739b
release: Start preparation for 4.1.2
2016-06-16 23:03:42 +02:00
Johannes Bornhold
f53ce87693
config: Move HttpsFixup middleware up
...
Wrapping it around the Pyramid application makes SSL work. Since it also does
things with the strict transport security headers, I kept it this way for now.
Most probably we can shrink it to only contain the htsts things and use the
prefix middleware of paste.
2016-06-16 11:35:55 +02:00
Johannes Bornhold
c19b05b352
login: Log redirection target on debug level
...
We have some magic when computing the URL, it is good if we can see in the debug
log this detail.
2016-06-16 10:43:17 +02:00
Marcin Kuzminski
ab5316a2b3
release: Start preparation for 4.1.1
2016-06-15 02:29:27 +02:00
Martin Bornhold
3bd01810b3
permissions: Fix permissions for authentication plugin settings view.
2016-06-14 12:30:42 +02:00
Marcin Kuzminski
996239fa3f
pull-requests: add a success flash when PR was merged
2016-06-10 09:55:21 +02:00
Daniel Dourvaris
fc0551b617
pullrequests: force ajax request to not use browser cache fixes #4002
2016-06-09 16:20:29 +03:00
Daniel Dourvaris
bf2e56d06f
bugfix: missing import
2016-06-09 15:38:48 +03:00
lisaq
2937a9a353
styling: fixes #4001 strikethrough on pr reviewer deletion
2016-06-09 11:41:45 +02:00
Johannes Bornhold
e756b3e5f4
hg: Log original exception when doing the merge with rebase.
2016-06-09 12:04:59 +02:00
Daniel Dourvaris
52cea90a4b
datetimes: fix datetimes to work across app, converting to utc
2016-06-09 05:49:33 +03:00
Daniel Dourvaris
bf510fd33c
vcs: make commit datetimes utc
2016-06-09 05:20:58 +03:00
Daniel Dourvaris
e624141d32
tests: fix admin users groups tests
2016-06-09 07:41:46 +03:00
Johannes Bornhold
ebec853ea6
pull_request: Increase debug logging around merge.
2016-06-09 00:19:16 +02:00
Johannes Bornhold
5eae0d6f48
hg: Fix up logging message for local push
2016-06-09 00:18:56 +02:00
Johannes Bornhold
1b4ce0b7a5
hg: Include state of dry_run in merge failure logging.
2016-06-08 23:57:08 +02:00
Johannes Bornhold
f42158291f
hg: Clean up unused variable
2016-06-08 23:50:12 +02:00
Johannes Bornhold
0410a1f483
hg: Increase logging around merge status check
2016-06-08 23:26:40 +02:00
Johannes Bornhold
6b65e5d1d4
pull_request: Add debug logging around merge status calculation
...
Goal is to see better traces of the business logic when trying to find out if a
pull request can be merged or not.
2016-06-08 23:26:02 +02:00
Johannes Bornhold
5b843106a1
tests: Adapt test to new mercurial version (3.8.2)
...
Mercurial changed their diff algorithm a little bit which leads to
one more added and delted line. But the result is the same.
2016-06-08 14:37:37 +02:00