Commit Graph

15 Commits

Author SHA1 Message Date
Gergely Polonkai c40e776036 Fully cover the Gregorian Calendar with tests
Being one of the cornerstones right now, it deserves a lot of tests
2018-07-24 08:28:04 +02:00
Gergely Polonkai 9e7ea29f5e [Lint] Make PyLint happy again 2018-07-23 12:35:57 +02:00
Gergely Polonkai 6078e6171f [Bugfix] Rework month padding and event fetching routines
Month padding (ie. adding the days of previous/next months) is now working as expected.  Fetching
multi-day events now also displays events correctly.
2018-07-23 08:00:06 +02:00
Gergely Polonkai a862e6ca5d Add the Event.visibility field
This shows if the event is visible to anyone or just people who are invited.

The calendar view already respects this flag.
2018-07-16 12:12:35 +02:00
Gergely Polonkai 4cbebb9c5a Connect events with profiles instead of local users 2018-07-09 13:05:26 +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 2f66fdb83e [Docs] Add/update docstrings and license text in every file 2018-07-03 09:52:25 +02:00
Gergely Polonkai 5300e4978e [Code Cleanup] Wrap some long lines 2018-07-03 09:52:15 +02:00
Gergely Polonkai 5f5ccaa1ea [Code Cleanup] Update some variable names to conform with PEP8 2018-07-03 09:51:31 +02:00
Gergely Polonkai 9dd2a1120f [Refactor] Change GregorianCalendar.day_events() to a static method
It takes a date as its parameter, and doesn’t use the class’ timestamp, so there’s no point making
it an instance method.
2018-07-03 09:51:30 +02:00
Gergely Polonkai 26c31bcc04 [Bugfix] Fix the ordering of events
They were in SQL order.  Now they are ordered by start time.
2018-07-02 17:27:42 +02:00
Gergely Polonkai 32c84725a9 [Bugfix] Fix day-event fetching
It returned today’s events regardless of the day.
2018-07-02 16:52:37 +02:00
Gergely Polonkai 4c03829264 Add the previous/next year/month links to the month view 2018-07-02 14:07:38 +02:00
Gergely Polonkai f41cf43f80 [Bugfix] Fix for "Move from Flask-Babel to Flask-BabelEx"
I forgot to fix this in calendar_system.gregorian…
2018-07-02 13:34:47 +02:00
Gergely Polonkai 7846d9017d [Refactor] Rename the app module to calsocial
Just for clarity
2018-07-02 10:41:32 +02:00