8
Commit Graph

424 Commits

Author SHA1 Message Date
blurrah
20011f079d adds simple block templatetag wip 2017-05-31 13:58:31 +02:00
Michael van Tellingen
7436384471 Move visit count logic to the segment adapter
This makes the code also a bit simpler and updates the tests
2017-05-31 13:57:19 +02:00
Jasper Berghoef
7034c09d4a Allows switching between list and dashboard view 2017-05-31 13:55:08 +02:00
Jasper Berghoef
45f2de62ea Splits segment dashboard view and set default table view 2017-05-31 13:55:08 +02:00
Michael van Tellingen
cc38634519 Add adapters.get_segment_adapter to set the segment adapter on the request
object.

Previously the segment adapter was set globally with the request as
attribute. This causes thread safety issues. Instead we now initialise
the segment adapter for each request and set it as attribute
2017-05-31 13:33:22 +02:00
Michael van Tellingen
699d24bc44 Fix tests on Python < 3.6 (remove f-string) 2017-05-31 12:11:07 +02:00
blurrah
33cf0217da fixes page crashing when visiting a page that doesnt inherit PersonalisablePage 2017-05-30 17:36:32 +02:00
Jasper Berghoef
83a7db5952 Renames personalisation module in documentation 2017-05-30 15:46:27 +02:00
Michael van Tellingen
3eac2cd4dd Codestyle fixes (flake8)
This also adds the flake8 dependencies to the test extras for
installation.
2017-05-28 09:13:08 +02:00
Jasper Berghoef
55da67523f Puts the receivers in a seperate file and adds appconfig 2017-05-26 16:40:50 +02:00
Jasper Berghoef
9a7d41284e Renames template filters 2017-05-26 16:31:54 +02:00
Jasper Berghoef
ebde527ae9 Renames the module from ‘personalisation’ to ‘wagtail_personalisation’ 2017-05-26 16:31:54 +02:00
Jasper Berghoef
5f1c52c93c Fixes persistent rule persisting 2017-05-24 21:21:24 +02:00
Jasper Berghoef
974a4d6f46 Moves the form in to models.py to forms.py 2017-05-24 17:34:34 +02:00
Boris Besemer
90c2289396 Merge branch 'master' into feature/move-views-in-hooks 2017-05-24 11:04:59 +02:00
Jasper Berghoef
2cff8a01fe Adds front-end tooling 2017-05-24 11:03:35 +02:00
Jasper Berghoef
7fda6f411a Moves static files to sub directories 2017-05-24 11:03:35 +02:00
Jasper Berghoef
32748b0d6f Moves segment dashboard views from hooks to views
Because it makes more sense
2017-05-23 14:38:40 +02:00
Jasper Berghoef
479aec516e Adds front-end tooling 2017-05-23 14:26:36 +02:00
Jasper Berghoef
d773d0e8f8 Adds lines between the short and long description 2017-05-23 13:43:00 +02:00
Jasper Berghoef
3391087944 Moves static files to sub directories 2017-05-23 13:41:30 +02:00
Jasper Berghoef
111e6e1568 Docstrings for thje rules 2017-05-23 13:24:22 +02:00
Jasper Berghoef
a34386f811 Model docstrings 2017-05-23 12:53:06 +02:00
Jasper Berghoef
6c4178cf21 Merge branch 'master' of https://github.com/LabD/wagtail-personalisation 2017-05-23 12:03:22 +02:00
Jasper Berghoef
7e240d50b1 Docstrings for the wagtail hooks 2017-05-23 12:03:19 +02:00
Jasper Berghoef
0a4e8af6ad Mergens ‘enable’ and ‘disable’ view and adds security 2017-05-22 17:30:23 +02:00
Jasper Berghoef
9dce9578f0 Adds docstrings to BaseSegmentsAdapter 2017-05-22 17:00:53 +02:00
Jasper Berghoef
33eabf4b77 Four lines to one line 2017-05-22 16:24:44 +02:00
Jasper Berghoef
4f114689a5 Updates docstrings for the views 2017-05-22 16:16:48 +02:00
Jasper Berghoef
4afb643d5e Updates docstrings in the utils 2017-05-22 16:05:29 +02:00
Jasper Berghoef
24af956913 Fixes too long lines in adapters 2017-05-22 15:59:45 +02:00
Jasper Berghoef
4d4445641e Sorts imports and removes trailing whitespace 2017-05-22 15:57:19 +02:00
Jasper Berghoef
0ab31bb154 Adds docstring to the personalised struct block 2017-05-22 15:47:47 +02:00
Jasper Berghoef
885b378b63 Improve comments and readability for several files
App settings: added a comment.
Admin: consistent docstrings.
Admin urls: better readability.
2017-05-22 15:38:48 +02:00
Jasper Berghoef
74cbec77c9 Fixes typo 2017-05-22 15:27:07 +02:00
Jasper Berghoef
c2d0812980 Adds docstring to the adapters and updates filters 2017-05-22 14:52:16 +02:00
Jasper Berghoef
a7265647ef Fixes typo in docstring 2017-05-22 13:49:21 +02:00
Jasper Berghoef
9584da5d19 Adds templatetag docstrings 2017-05-22 13:48:29 +02:00
blurrah
bffd13dd3e fixes personalisable homepage in sandbox and try except for segment visit count 2017-05-16 11:46:47 +02:00
blurrah
e451f792e3 adds sqlite to sandbox and fixes summary panel 2017-05-08 10:39:30 +02:00
blurrah
47123ce723 small fixes 2017-05-08 10:10:33 +02:00
Michael van Tellingen
e5fa590f8e Fix lint/python errors 2017-05-08 10:01:38 +02:00
blurrah
ec7b00c318 adds a few docblocks and isorts 2017-05-03 15:04:52 +02:00
blurrah
dd1dafd450 more cleanup on the segments adapter, moves segment dict creator to utils 2017-05-03 14:59:32 +02:00
blurrah
ecfae3ec19 renames segment variable names to be more descriptive 2017-05-03 14:59:32 +02:00
Jasper Berghoef
f41fa062be Refactors the refresh function in the segment adapter 2017-05-03 14:59:32 +02:00
blurrah
82d11d57aa fixes a few future imports and adds support for new python and wagtail versions 2017-05-03 08:58:17 +02:00
Jasper Berghoef
3a00f9c2d7 Adds different styling to disabled segments 2017-04-21 15:34:07 +02:00
Jasper Berghoef
b761412aa8 Corrects dashboard display for days rule 2017-04-21 13:40:08 +02:00
blurrah
d6b4f45998 refactors week day rule user testing 2017-04-21 09:15:35 +02:00