Bertrand Bordage
38a18f80a4
Merge pull request #146 from LabD/simplifications+optimisations
...
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:50:56 +02:00
Bertrand Bordage
85613db363
Merge branch 'simplifications+optimisations' of github.com:LabD/wagtail-personalisation into simplifications+optimisations
2017-05-31 17:43:18 +02:00
Bertrand Bordage
5fbfb82480
Switches back to absolute wagtail_personalisation imports.
2017-05-31 17:41:12 +02:00
Bertrand Bordage
f88722c827
Further simplifications.
2017-05-31 17:38:51 +02:00
Bertrand Bordage
46ad32236c
Merge branch 'master' into simplifications+optimisations
2017-05-31 17:21:07 +02:00
Michael van Tellingen
e6fac5f7fb
Fix templatetag tests
2017-05-31 17:19:24 +02:00
blurrah
82f2dd460e
adds tests for templatetag
2017-05-31 17:19:24 +02:00
Bertrand Bordage
4f2dc3a304
Handles both Python 2 & 3, and multiple optimisations & simplifications.
2017-05-31 17:13:33 +02:00
Boris Besemer
6587d0fd56
Merge pull request #96 from LabD/feature/translation-support
...
Fixes a few translation strings and adds translation files
2017-05-31 16:58:50 +02:00
Paul J Stevens
99d2e4a347
support multiple uses of the mixin class ( #140 )
2017-05-31 16:50:56 +02:00
Rob Moorman
4deaaa985f
Redirect to existing variant if present
2017-05-31 16:39:03 +02:00
Michael van Tellingen
63d5de9803
Optimize query for the segment visits
2017-05-31 16:37:10 +02:00
blurrah
18eea8a9b1
updates faulty strings
2017-05-31 16:30:18 +02:00
blurrah
a4cf8120b4
fixes blocktrans with html
2017-05-31 16:27:16 +02:00
blurrah
09fbb5d795
adds package name to copyright
2017-05-31 16:23:49 +02:00
blurrah
d79765efee
adds copyright information to translation file
2017-05-31 16:23:49 +02:00
blurrah
0aa07261ad
fixes a few translation strings and adds translation files
2017-05-31 16:23:49 +02:00
Jasper Berghoef
c5579fa8d4
Sets dashboard as the default view
2017-05-31 16:18:07 +02:00
Michael van Tellingen
7bb523d962
Minor codestyle issue in the adapters.refresh() code
2017-05-31 16:13:30 +02:00
Michael van Tellingen
03073eb004
Add unittests for the session adapter
2017-05-31 16:13:30 +02:00
Michael van Tellingen
e107d73716
Add docstring to set_segments()
2017-05-31 16:13:30 +02:00
Michael van Tellingen
cbc2ec7270
Simplify saving/retrieving user segments
2017-05-31 16:13:30 +02:00
Paul J Stevens
1b73119766
post rebase fixes
2017-05-31 15:59:09 +02:00
Paul J Stevens
ebef7f8785
refactor and add tests
2017-05-31 15:59:09 +02:00
Paul J Stevens
f693e62bbf
rename base-class to reflect mixin nature
2017-05-31 15:59:09 +02:00
Paul J Stevens
4e61ff0d08
remove all references or uses of old PersonalisablePage model
2017-05-31 15:59:09 +02:00
Paul J Stevens
49062d36b4
remove PersonalisablePage model
2017-05-31 15:59:09 +02:00
Paul J Stevens
66ed40f8ec
make personalisedpage class abstract
2017-05-31 15:59:09 +02:00
Michael van Tellingen
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
Rob Moorman
decfc88efe
Fix depth to parent selector
2017-05-31 14:59:39 +02:00
Rob Moorman
fc442171e4
Move to edit page if variant exists fixes #106 and fixes #89
2017-05-31 14:59:39 +02:00
Michael van Tellingen
5076dd60bd
Remove the unfinished datalayer template tag
2017-05-31 14:57:17 +02:00
Michael van Tellingen
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
Michael van Tellingen
31f8a329f2
Use constants for enabled/disabling status on Segment
2017-05-31 14:48:46 +02:00
Michael van Tellingen
3d920d8ed8
Minor codestyle fix
2017-05-31 14:48:24 +02:00
Michael van Tellingen
73ea5157ff
Minor code cleanups
2017-05-31 14:48:24 +02:00
Michael van Tellingen
e24cb9aee3
Use the segment adapter to retrieve user segments
2017-05-31 14:32:15 +02:00
Tom Dyson
fb95439d83
adapters docstring typo ( #120 )
2017-05-31 14:14:02 +02:00
Boris Besemer
dcb8867dc7
Merge pull request #108 from LabD/feature/segment-template-block
...
Adds an ifsegment template block
2017-05-31 14:02:08 +02:00
blurrah
de2c7f9988
fixes newline
2017-05-31 14:01:11 +02:00
blurrah
d3d4e7ec92
fixes a few code style issues and docs issues
2017-05-31 13:59:41 +02:00
blurrah
23537ac29b
adds docstrings, moves parse_tag to utils and adds documentation
2017-05-31 13:59:34 +02:00
blurrah
a78290281b
fixes adapter issues and fixes block for segments adapter
2017-05-31 13:58:31 +02:00
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