7
Commit Graph

510 Commits

Author SHA1 Message Date
63d5de9803 Optimize query for the segment visits 2017-05-31 16:37:10 +02:00
18eea8a9b1 updates faulty strings 2017-05-31 16:30:18 +02:00
a4cf8120b4 fixes blocktrans with html 2017-05-31 16:27:16 +02:00
09fbb5d795 adds package name to copyright 2017-05-31 16:23:49 +02:00
d79765efee adds copyright information to translation file 2017-05-31 16:23:49 +02:00
0aa07261ad fixes a few translation strings and adds translation files 2017-05-31 16:23:49 +02:00
361f0b1700 Re-remove the segments adapter instructions
Too specific for the README.
2017-05-31 16:19:33 +02:00
5eefa21699 Add test for sessionadapter.refresh when segment is disable 2017-05-31 16:19:09 +02:00
c5579fa8d4 Sets dashboard as the default view 2017-05-31 16:18:07 +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
2450bd45ac remove redundant migration dependency 2017-05-31 15:59:09 +02:00
1b73119766 post rebase fixes 2017-05-31 15:59:09 +02:00
ebef7f8785 refactor and add tests 2017-05-31 15:59:09 +02:00
623af1a06a start using correct model in tests 2017-05-31 15:59:09 +02:00
f693e62bbf rename base-class to reflect mixin nature 2017-05-31 15:59:09 +02:00
4e61ff0d08 remove all references or uses of old PersonalisablePage model 2017-05-31 15:59:09 +02:00
49062d36b4 remove PersonalisablePage model 2017-05-31 15:59:09 +02:00
66ed40f8ec make personalisedpage class abstract 2017-05-31 15:59:09 +02:00
59b6e7f31e Add django debug toolbar to the sandbox 2017-05-31 15:27:29 +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
decfc88efe Fix depth to parent selector 2017-05-31 14:59:39 +02:00
fc442171e4 Move to edit page if variant exists fixes #106 and fixes #89 2017-05-31 14:59:39 +02:00
5076dd60bd Remove the unfinished datalayer template tag 2017-05-31 14:57:17 +02:00
194daba67b Remove postgres dependencies fixes #115 2017-05-31 14:51:50 +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
3d920d8ed8 Minor codestyle fix 2017-05-31 14:48:24 +02:00
73ea5157ff Minor code cleanups 2017-05-31 14:48:24 +02:00
e24cb9aee3 Use the segment adapter to retrieve user segments 2017-05-31 14:32:15 +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
de2c7f9988 fixes newline 2017-05-31 14:01:11 +02:00
d3d4e7ec92 fixes a few code style issues and docs issues 2017-05-31 13:59:41 +02:00
23537ac29b adds docstrings, moves parse_tag to utils and adds documentation 2017-05-31 13:59:34 +02:00
a78290281b fixes adapter issues and fixes block for segments adapter 2017-05-31 13:58:31 +02:00
20011f079d adds simple block templatetag wip 2017-05-31 13:58:31 +02:00
9790a44fd1 Add migrations to the tests.sandbox.pages app
This fixes tests
2017-05-31 13:57:19 +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
7034c09d4a Allows switching between list and dashboard view 2017-05-31 13:55:08 +02:00
45f2de62ea Splits segment dashboard view and set default table view 2017-05-31 13:55:08 +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
4158bafe58 Python 2.x compatibility fix for sandbox 2017-05-31 13:19:47 +02:00
b55bdb60b9 Remove psycopg2 from sandbox requirements
The sandbox's `settings.py` specifies `django.db.backends.sqlite3`.
2017-05-31 12:44:46 +02:00
531ae6df98 README tweaks
minor style changes, removal of segments adapter section.
2017-05-31 12:17:57 +02:00
699d24bc44 Fix tests on Python < 3.6 (remove f-string) 2017-05-31 12:11:07 +02:00
2977440ee7 Merge pull request #103 from robmoorman/modeladmin-docs
Point out more that modeladmin is required
2017-05-31 11:55:02 +02:00
23a9b1df84 Point out more that modeladmin is required 2017-05-31 11:48:35 +02:00