Sybren A. Stüvel
e061d6c29d
Allow editing users' email address via /u/
...
Also reloads the user info after a succesful edit.
2017-06-29 11:05:01 +02:00
Sybren A. Stüvel
d8640df115
Made markdown jinja filter None-safe
2017-03-30 09:37:48 +02:00
Sybren A. Stüvel
2e41c074b5
Python 3.6 compatibility: bytes vs strings stuff
...
These changes mostly revolve around the change in ObjectId constructor
when running on Python 3.6. Where on 2.7 the constructor would accept
12- and 24-byte strings, now only 12-byte bytes and 24-character strings
are accepted. Good thing, but required some changes in our code.
Other changes include hashing of strings, which isn't supported, so they
are converted to bytes first, and sometimes converted back afterwards.
2017-03-22 15:49:51 +01:00
Sybren A. Stüvel
bced6cae68
Ran 2to3 on unittests, same sort of manual fixups as before
2017-03-22 15:49:51 +01:00
Sybren A. Stüvel
604d6c1a07
Added pillar.web.utils.last_page_index()
...
This returns the last page number (base-1) of a paged Eve result.
2017-01-19 15:13:01 +01:00
Sybren A. Stüvel
76f2367e66
Added extra role to UserAdminTest.
2016-11-11 15:23:25 +01:00
Sybren A. Stüvel
5f0092cfa1
Fixed bug in /u/ where home project group membership was lost after edit.
...
Rather than understanding the code, I rewrote the editing and added a
unit test for it.
2016-11-11 15:06:29 +01:00
Sybren A. Stüvel
65b554986c
pretty_date(None) now returns None
2016-11-08 12:56:19 +01:00
Sybren A. Stüvel
fb6e326a14
Also support future dates and times in pretty_date
2016-11-08 12:24:55 +01:00
Sybren A. Stüvel
04c9c010f0
p.view_node(): check node_id for validity, before sending it to the API
...
This prevents a pillarsdk.exceptions.MethodNotAllowed exception, which
would result in a 500 Internal Server Error on the frontend.
2016-08-24 14:49:30 +02:00