7
Commit Graph

59 Commits

Author SHA1 Message Date
66ed40f8ec make personalisedpage class abstract 2017-05-31 15:59:09 +02:00
f2aa8879a9 Add Adapter.set_segments() and use it when refreshig the segment
This makes the internal API a bit more consistent
2017-05-31 15:15:27 +02:00
31f8a329f2 Use constants for enabled/disabling status on Segment 2017-05-31 14:48:46 +02:00
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
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
33cf0217da fixes page crashing when visiting a page that doesnt inherit PersonalisablePage 2017-05-30 17:36:32 +02:00
83a7db5952 Renames personalisation module in documentation 2017-05-30 15:46:27 +02:00
3eac2cd4dd Codestyle fixes (flake8)
This also adds the flake8 dependencies to the test extras for
installation.
2017-05-28 09:13:08 +02:00
ebde527ae9 Renames the module from ‘personalisation’ to ‘wagtail_personalisation’ 2017-05-26 16:31:54 +02:00