Benjamin Dauvergne
f259b0f003
middleware: collect IP adresses only for non-empty sessions ( fixes #24419 )
2018-06-13 10:06:22 +02:00
Frédéric Péters
183c0c266f
translation update
2018-06-09 12:09:09 +02:00
Frédéric Péters
6de4c87557
misc: put full URLs in menu.json ( #24303 )
2018-06-07 13:49:55 +02:00
Frédéric Péters
3014c4a68c
translations: fix translation of "oidc provider is down" message ( #24280 )
2018-06-05 10:42:33 +02:00
Benjamin Dauvergne
90d1a83adc
manager: implement menu_json using new homepage entries mechanism ( #24229 )
2018-06-01 17:19:59 +02:00
Benjamin Dauvergne
d89664a298
manager: fix permissions on homepage entries ( #24229 )
2018-06-01 17:19:41 +02:00
Benjamin Dauvergne
c0f3b54ebf
manager: dynamically produce homepage menu ( fixes #24229 )
...
New entries can be added by applications using the
a2_hook_manager_homepage_entries(view) hook.
Each entry is a dict containing at least a string label and a string
href. A CSS "class", a numeric "order" and a string "permission" can
also be provisionning but are not mandatory.
2018-06-01 16:05:43 +02:00
Emmanuel Cazenave
eeae1f3f8f
rollback when DataImportError is raised ( #23938 )
2018-05-30 14:21:53 +02:00
Emmanuel Cazenave
0d4e120a16
wrap import role in transaction ( #23922 )
2018-05-18 14:05:56 +02:00
Benjamin Dauvergne
818737a7c6
natural_key: fix get_by_natural_key_json for objects with partial unique indexes ( fixes #23857 )
...
Unicity on NULL column must be explicitely stated in the list of natural
keys.
2018-05-17 15:22:27 +02:00
Benjamin Dauvergne
07865e418e
manager: order user's roles by OU ( fixes #23843 )
2018-05-16 14:59:38 +02:00
Frédéric Péters
d16801c4b3
translation update
2018-05-09 06:59:47 +02:00
Frédéric Péters
465df3f788
idp oidc: skip unset attributes in user-info ( #23643 )
2018-05-07 22:02:03 +02:00
Emmanuel Cazenave
74c29b60a9
pin django-webtest ( #23611 )
2018-05-04 16:01:39 +02:00
Emmanuel Cazenave
184cb71148
add UI messages ( #23210 )
2018-05-03 19:06:44 +02:00
Emmanuel Cazenave
623c64a064
add UI for import/export site ( #23210 )
2018-05-03 19:06:38 +02:00
Benjamin Dauvergne
df942ea1ed
custom_user: cache attribute list during a request ( #13587 )
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
19b00d8ac5
manager: export all user attributes ( fixes #13587 )
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
7a6ce74d94
tests: add test of CSV export of users ( #13587 )
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
cc101ea394
manager: add a default implementation of ExportMixin.get_data() ( #13587 )
...
It takes the default queryset and batches it using the new function
batch_queryset().
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
516cb4f890
utils: add a batch_queryset method to load large prefetched queryset without exhausting memory ( #13587 )
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
8964303359
manager: allow overriding resource class in export views ( #13587 )
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
0bf7fe9feb
manager: clean resources file ( #13587 )
...
Remove unused imports, remove commented code.
2018-05-02 19:44:28 +02:00
Benjamin Dauvergne
918c50b91a
tox: do not restrain psycopg2 version
2018-05-02 19:44:28 +02:00
Josue Kouka
f06900ead4
idp oidc: add extra attributes configuration ( #21870 )
2018-05-02 17:37:18 +02:00
Josue Kouka
87bcb45cbe
make attribute engine properly return user ou data
2018-05-02 16:39:12 +02:00
Benjamin Dauvergne
1aa16b62e0
auth_oidc: only update user's fields if they changed ( fixes #21560 )
2018-05-02 14:55:19 +02:00
Benjamin Dauvergne
067e51da7f
ldap: force dn to unicode in get_ldap_attributes() ( fixes #22848 )
2018-05-01 10:39:44 +02:00
Benjamin Dauvergne
b140cb2612
app_settings: rename ACCEPT_EMAIL_AUTHENTICATION to A2_ACCEPT_EMAIL_AUTHENTICATION ( fixes #23514 )
2018-05-01 10:39:44 +02:00
Frédéric Péters
47d324c34e
manager: don't use gadjo default behaviour of loading style.css ( #23512 )
2018-04-30 18:05:48 +02:00
Frédéric Péters
5eccb6c2ac
manager: add a title to "edit user roles" page ( #23453 )
2018-04-30 18:05:48 +02:00
Benjamin Dauvergne
18dddfb39b
ldap: change default user filter if A2_ACCEPT_EMAIL_AUTHENTICATION is enabled ( fixes #22349 )
...
It standardizes behaviour between LDAP and local authentication when
A2_ACCEPT_EMAIL_AUTHENTICATION is applied.
2018-04-28 15:51:39 +02:00
Frédéric Péters
f7d3de6887
add minimalistic logging for login failures ( #23407 )
2018-04-25 14:31:54 +02:00
Frédéric Péters
cb9298b59b
misc: return 404 on registration page if registration is disabled ( #20709 )
2018-04-17 10:40:49 +02:00
Frédéric Péters
cf54fbd3df
translation update
2018-04-17 10:40:49 +02:00
Frédéric Péters
507f48ec78
mark minimal gadjo version ( #22440 )
2018-04-16 13:27:56 +02:00
Frédéric Péters
dbed99be54
manager: switch to gadjo sidebar ( #22440 )
2018-04-16 13:02:57 +02:00
Emmanuel Cazenave
17dd1b2338
create 'import_site' and 'export_site' commands ( #16514 )
2018-04-16 11:41:32 +02:00
Benjamin Dauvergne
a638275c09
implement more natural natural keys ( #16514 )
2018-04-16 11:41:11 +02:00
Frédéric Péters
dc17414245
registration: always mark new accounts as active ( #23058 )
2018-04-10 13:13:28 +02:00
Benjamin Dauvergne
33ffd4e42c
fix UnicodeDecodeError in PickerWidgetMixin ( fixes #23055 )
...
'%s' % _(whatever) will produce a str containing utf-8 characters, but
it will fail when interpolated with another unicode string, which
happend in:
'%s %s' % (_('Format:'), self.options['format'])
as self.options['format'] is unicode.
2018-04-10 09:49:18 +02:00
Benjamin Dauvergne
b3f89132ce
return to account_management view if edit-profile form does not receive a next_url parameter ( fixes #23049 )
...
Fallback in get_sucess_url() was not tested, if it was it would have
shown that get_success_url() cannot return a view name, but only URLs
and paths.
2018-04-10 00:55:52 +02:00
Frédéric Péters
85545e5d35
misc: switch form buttons to <button> markup ( #22438 )
2018-04-04 09:17:48 +02:00
Frédéric Péters
a2c89aded8
translation update
2018-04-03 09:50:54 +02:00
Frédéric Péters
71a2d60990
manager: remove unbalanced </div> from role page ( #22744 )
2018-04-03 09:38:41 +02:00
Frédéric Péters
18fe2a1eac
idp oidc: include : in translatable label ( #22709 )
2018-04-03 09:38:41 +02:00
Benjamin Dauvergne
81778dea85
admin: show disabled attributes ( fixes #22893 )
...
Also add the disabled field to the list display.
2018-03-29 15:05:43 +02:00
Benjamin Dauvergne
ce78c8d8c7
urls: restore support for django-debug-toolbar ( fixes #22872 )
2018-03-29 10:28:57 +02:00
Benjamin Dauvergne
7bb909a225
manager: load django-select2 configuration early ( #22864 )
...
It prevents initialization of django-selevt2 inside tests. In some tests
settings are kept in a UserSettingsHolder which is cleaned at the end of
tests, resetting all keys set by django_select2.conf.
2018-03-28 21:25:53 +02:00
Benjamin Dauvergne
ef736f42bd
middlewares: clean stored request on exceptions ( #22864 )
2018-03-28 21:25:42 +02:00