Commit Graph

79 Commits

Author SHA1 Message Date
Gergely Polonkai 06c7b2ea52 Add the Response model
This is to store RSVPs.
2018-07-12 12:22:49 +02:00
Gergely Polonkai 3308be40ee Display the locked status of profiles on the profile details page 2018-07-12 12:18:51 +02:00
Gergely Polonkai 9b01431641 Make it possible for users to lock their profiles on the profile editing page 2018-07-12 12:17:18 +02:00
Gergely Polonkai 2b1378310a [Bugfix] Make the profile editing form redirect to the profile editing form after saving
As funny as it says, this provides better UX (and the same technique is used on the other forms.
2018-07-12 12:16:22 +02:00
Gergely Polonkai 5639c3f578 Make it possible to accept follow requests 2018-07-12 12:10:53 +02:00
Gergely Polonkai 61f10f951c Make it possible to lock profiles
Locked profiles cannot be followed
2018-07-12 12:10:53 +02:00
Gergely Polonkai 496b5b6c04 [Refactor] Move notification creation to the Profile model 2018-07-12 12:00:36 +02:00
Gergely Polonkai dc0b2954c1 [Refactor] Move invitation code to the Event model 2018-07-12 11:08:13 +02:00
Gergely Polonkai 36c2f0fd77 Add test for following a user through the web UI 2018-07-12 10:34:59 +02:00
Gergely Polonkai 27c78ff36f Create the Profile.follow() method 2018-07-12 10:34:59 +02:00
Gergely Polonkai 5d886a7853 [Bugfix] Fix the FQN of invalid remote profiles (ie. no domain set) 2018-07-12 10:17:56 +02:00
Gergely Polonkai 5550e5ecf3 Make PyLint happy again 2018-07-12 10:16:04 +02:00
Gergely Polonkai 8e3bcd8ede Create a view that can list all events 2018-07-11 12:57:32 +02:00
Gergely Polonkai 48ffb0d472 [Refactor] Refactor the month view template so it can display all events
…not just the events of the current user.
2018-07-11 12:57:32 +02:00
Gergely Polonkai c3348d3212 Make it possible to edit one’s profile
…even though it’s only one field yet.
2018-07-11 12:57:32 +02:00
Gergely Polonkai 1a69928241 [Refactor] Create a base settings page
This will make it easier to add new settings pages for e.g. privacy settings, applications,
etc. later.
2018-07-11 12:57:32 +02:00
Gergely Polonkai 7b935afdad [Bugfix] Fix the event creating code
It tried to associate the event with a user instead of a profile.  It is a regression introduced
by #41
2018-07-11 12:57:32 +02:00
Gergely Polonkai 303dd3d082 [Bugfix] Fix the display name on the profile pages 2018-07-11 09:35:32 +02:00
Gergely Polonkai 81d949d708 Add a view for the first steps after the initial login 2018-07-10 16:39:34 +02:00
Gergely Polonkai 41f6c88df1 Make PyLint happy again 2018-07-10 16:39:30 +02:00
Gergely Polonkai 66659dfe51 Make registration show an error message on username or email reuse 2018-07-10 15:33:57 +02:00
Gergely Polonkai 4c65644291 Make it possible to accept invites 2018-07-10 10:58:56 +02:00
Gergely Polonkai 321f31b3c6 Add the Response model
This is to store RSVPs.
2018-07-10 10:58:51 +02:00
Gergely Polonkai 0fb0ff8c99 Add an ID field to the Invite model
It turned out the multi-field primary key is not a good idea.
2018-07-10 10:31:30 +02:00
Gergely Polonkai 582e53038b Add notifications to the menu 2018-07-10 10:31:30 +02:00
Gergely Polonkai 0a1701dacd Make actors and items in notifications links 2018-07-10 10:27:08 +02:00
Gergely Polonkai 17cca9380f Allow users to invite other users to events 2018-07-09 18:22:13 +02:00
Gergely Polonkai 6274543206 Create the Invitation model 2018-07-09 18:18:26 +02:00
Gergely Polonkai 69f2a0d9cc [Linting] Make PyLint happy with the current code 2018-07-09 18:13:39 +02:00
Gergely Polonkai 9af673666c Rename Profile.fqdn to Profile.fqn
It’s not a domain name, so the `d` is not needed.
2018-07-09 18:07:23 +02:00
Gergely Polonkai efc9b24e2c [Code Cleanup] Remove an unused import 2018-07-09 17:17:01 +02:00
Gergely Polonkai 6657cc1c91 [Bugfix] Fix user follow
* The link didn’t have a closing tag
* The whole mechanism didn’t work

I probably submitted a previous patch…
2018-07-09 17:17:01 +02:00
Gergely Polonkai 3bd381692b Send a notification when a follow action happens 2018-07-09 14:55:07 +02:00
Gergely Polonkai 379a5b1bb0 Allow users to list their notifications
This is in very early stage, but at least it works.
2018-07-09 14:11:08 +02:00
Gergely Polonkai f1fab33c8d Display following/followed users on the profile page 2018-07-09 13:14:59 +02:00
Gergely Polonkai ba1a660b1a Follow users 2018-07-09 13:13:03 +02:00
Gergely Polonkai 4cbebb9c5a Connect events with profiles instead of local users 2018-07-09 13:05:26 +02:00
Gergely Polonkai 89605538c2 Use the event UUID as the event identifier in URLs 2018-07-09 13:05:26 +02:00
Gergely Polonkai c7457f6ed1 Add the event_uuid field to the Event model 2018-07-09 13:05:26 +02:00
Gergely Polonkai 1c2635045b Make User.profile a single object instead of a list
Because it’s a one-to-one relationship anyway, what’s the use of lists here?
2018-07-09 13:05:26 +02:00
Gergely Polonkai ad53608966 Display profiles 2018-07-09 11:50:36 +02:00
Gergely Polonkai 2136546390 Add a __repr__ method to the Profile method 2018-07-09 10:12:14 +02:00
Gergely Polonkai acb7566d1b [Code Cleanup] Remove the unused wraps import from calsocial.__init__ 2018-07-09 10:12:14 +02:00
Gergely Polonkai 295e19198e [Bugfix] Fix the default timezone setting 2018-07-09 10:12:14 +02:00
Gergely Polonkai d14d32767c Make PyLint happy with the models code 2018-07-09 08:15:40 +02:00
Gergely Polonkai 531faa1ce7 Add PyLint as a development dependency
Use `pylint calsocial` to run the static analysis.
2018-07-09 08:15:40 +02:00
Gergely Polonkai 5283599da2 Create the Profile model
It is capable of holding both local and remote profiles
2018-07-09 08:15:40 +02:00
Gergely Polonkai 12eb91d012 Log an audit message when a user logs out 2018-07-08 23:18:16 +02:00
Gergely Polonkai 23d0cd4b55 Log an audit message when a user successfully logs in 2018-07-08 23:18:16 +02:00
Gergely Polonkai aede5873d2 Add our own login form
We gain multiple things with this, but the main point is to do audit logging in case a valid user
enters an invalid password.
2018-07-08 23:14:39 +02:00