c3e237b970
Refactor of original branch
2018-05-26 15:56:09 +02:00
5fbfb82480
Switches back to absolute wagtail_personalisation imports.
2017-05-31 17:41:12 +02:00
f88722c827
Further simplifications.
2017-05-31 17:38:51 +02:00
4f2dc3a304
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:13:33 +02:00
63d5de9803
Optimize query for the segment visits
2017-05-31 16:37:10 +02:00
7bb523d962
Minor codestyle issue in the adapters.refresh() code
2017-05-31 16:13:30 +02:00
03073eb004
Add unittests for the session adapter
2017-05-31 16:13:30 +02:00
e107d73716
Add docstring to set_segments()
2017-05-31 16:13:30 +02:00
cbc2ec7270
Simplify saving/retrieving user segments
2017-05-31 16:13:30 +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
9705947d3f
Use the Segment Adapter for retrieving page visits
...
This fixes the last occurence of directly accessing the session in the
codebase
2017-05-31 14:49:07 +02:00
31f8a329f2
Use constants for enabled/disabling status on Segment
2017-05-31 14:48:46 +02:00
fb95439d83
adapters docstring typo ( #120 )
2017-05-31 14:14:02 +02:00
dcb8867dc7
Merge pull request #108 from LabD/feature/segment-template-block
...
Adds an ifsegment template block
2017-05-31 14:02:08 +02:00
a78290281b
fixes adapter issues and fixes block for segments adapter
2017-05-31 13:58:31 +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
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