8
Commit Graph

424 Commits

Author SHA1 Message Date
Michael van Tellingen
8465e6dcbb Fix serving the variant pages 2017-05-31 21:44:57 +02:00
Michael van Tellingen
7076973fc8 Refactor personalisable pages
Instead of working with django model mixins it now uses a separate
model entity to keep track of the personalized pages (metadata).

The current downside of this approach is that the segment of an existing
variant is no longer easily adjustable for now.
2017-05-31 21:31:40 +02:00
Jasper Berghoef
c2735807b4 Adds ‘Create new segment’ option to dropdown 2017-05-31 20:02:46 +02:00
Michael van Tellingen
2651eb0e3c Add related_name to PersonalisablePageMixin 2017-05-31 18:25:34 +02:00
Paul J Stevens
c100dc603c fix regression 2017-05-31 18:01:19 +02:00
Paul J Stevens
d4421eebcb minor cleanup 2017-05-31 17:58:25 +02:00
Jasper Berghoef
fea3bc8b8e Updated commons.js.map 2017-05-31 17:56:14 +02:00
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