Commit graph

210 commits

Author SHA1 Message Date
Tyson Clugg
edac793c2e Update CHANGES.rst, bump version number. 2015-08-10 18:50:36 +10:00
Tyson Clugg
7083c5c92f Chunked payload for NOTIFY/LISTEN to get around 8KB limit on payload. 2015-08-10 18:47:04 +10:00
Tyson Clugg
fb36461156 Merge tag '0.10.2' into develop
0.10.2
2015-08-10 16:39:54 +10:00
Tyson Clugg
dd89864eef Merge branch 'release/0.10.2' 2015-08-10 16:39:48 +10:00
Tyson Clugg
573886d96f Update CHANGES.rst, bump version number. 2015-08-10 16:39:37 +10:00
Tyson Clugg
5ec27b669c Add BackdoorServer support to dddp command, add "Logs" publication. 2015-08-10 16:34:39 +10:00
Tyson Clugg
2cdc31ffd8 Merge tag '0.10.1' into develop
v0.10.1
2015-07-28 14:05:41 +10:00
Tyson Clugg
fa4cb2dfe7 Merge branch 'release/0.10.1' 2015-07-28 14:05:30 +10:00
Tyson Clugg
ca2be7fec7 Update CHANGES.rst, bump version number. 2015-07-28 14:05:25 +10:00
Tyson Clugg
6ea0e71a74 Bugfix dddp.accounts forgot_password feature. 2015-07-28 14:04:11 +10:00
Tyson Clugg
d762fa45c4 Updated error handling to ensure error reply to method messages when appropriate. 2015-07-22 10:33:21 +10:00
Tyson Clugg
30f6dbc494 Merge tag '0.10.0' into develop
v0.10.0
2015-07-21 22:23:36 +10:00
Tyson Clugg
b797939173 Merge branch 'release/0.10.0' 2015-07-21 22:23:27 +10:00
Tyson Clugg
2ebaff14dd Update CHANGES.rst, bump version number. 2015-07-21 22:23:12 +10:00
Tyson Clugg
e7b38b89db Stop running request middleware upon connection.
This change deserves a more thorough explanation.  All currently
released versions of Django are based around the concept of receiving a
request and immediately dispatching a response.

WebSocket connections don't follow this convention, and the `request` hangs
around for long periods of time.  As such, things like `request.user` don't
really make sense as a user may login, then logout, then login again all
within the life of a single request.

Given that the concepts applied in Django are based upon a premise that
doesn't hold true for WebSockets (that a request is short-lived), it
doesn't make sense to apply those concepts in django-ddp.
2015-07-21 21:24:14 +10:00
Tyson Clugg
d358ce413a Never assume this.user_id is available. 2015-07-21 21:23:37 +10:00
Tyson Clugg
305b00bc3d Add ThreadLocal factory for this.user which is retrieved from the datbase on demand. 2015-07-21 21:19:55 +10:00
Tyson Clugg
5088c0016d Move thread local factories out of ThreadLocal so other modules may add their own factories. 2015-07-21 21:17:23 +10:00
Tyson Clugg
36199d27c1 Call ready() for each registered API provider as part of AppConfig.ready(). 2015-07-21 19:17:21 +10:00
Tyson Clugg
a462fc52b6 Refactor dddp.accounts.ddp to not use this.request.user or any of django.contrib.sessions. 2015-07-21 19:00:07 +10:00
Tyson Clugg
adf8a5b9c3 Some pylint cleanups to dddp.accounts.ddp module. 2015-07-21 18:53:49 +10:00
Tyson Clugg
b059fe37da Allow silent sub/unsub to support Meteor null publications. 2015-07-21 09:55:55 +10:00
Tyson Clugg
8f82e29d0e Merge tag '0.9.14' into develop
v0.9.14
2015-07-18 14:12:07 +10:00
Tyson Clugg
0d9514c763 Merge branch 'release/0.9.14' 2015-07-18 14:11:58 +10:00
Tyson Clugg
db33709b47 Update CHANGES.rst, bump version number. 2015-07-18 14:11:50 +10:00
Tyson Clugg
4608996e9f Fix issue with incorrect ordering of messages during login/logout. 2015-07-18 14:09:50 +10:00
Tyson Clugg
033c9fddb4 Merge tag '0.9.13' into develop
v0.9.13
2015-07-17 18:09:26 +10:00
Tyson Clugg
5ee6d2268a Merge branch 'release/0.9.13' 2015-07-17 18:09:17 +10:00
Tyson Clugg
ab29362ea1 Update CHANGES.rst, bump version number. 2015-07-17 18:09:07 +10:00
Tyson Clugg
8eb2a3d492 Add short_description to get_meteor_id helper for use in ModelAdmin list_display. 2015-07-17 17:49:23 +10:00
Tyson Clugg
797e10e08c Add ObjectMappingMixin using GenericRelation back to ObjectMapping model. 2015-07-17 17:48:25 +10:00
Tyson Clugg
f43097a9ca Add dddp.models.get_object_ids helper function. 2015-07-17 17:46:46 +10:00
Tyson Clugg
a9856294c0 Simplify ModelAdmin registration. 2015-07-16 16:26:53 +10:00
Tyson Clugg
19b8200dd8 Merge tag '0.9.12' into develop
v0.9.12
2015-07-16 08:48:48 +10:00
Tyson Clugg
beb4b9ea6a Merge branch 'release/0.9.12' 2015-07-16 08:48:34 +10:00
Tyson Clugg
691b5f0af9 Update CHANGES.rst, bump version number. 2015-07-16 08:48:24 +10:00
Tyson Clugg
244567c3ba Bugfix /app.model/schema helper method to work with more model field types. 2015-07-16 08:46:12 +10:00
Tyson Clugg
c8932d4dc2 Merge tag '0.9.11' into develop
v0.9.11
2015-07-14 09:37:46 +10:00
Tyson Clugg
2529c15d92 Merge branch 'release/0.9.11' 2015-07-14 09:37:40 +10:00
Tyson Clugg
6e4752dc69 Update CHANGES.rst, bump version number. 2015-07-14 09:37:32 +10:00
Tyson Clugg
59869add98 Allow for XX.YYY.ZZZZ version numbers, not just X.Y.Z 2015-07-14 09:37:19 +10:00
Tyson Clugg
cb46caf9ff Fix bug in post login/logout subscription handling. 2015-07-14 09:22:27 +10:00
Tyson Clugg
781ea8e7a2 Pylint cleanups. 2015-07-09 09:19:13 +10:00
Tyson Clugg
dfd52ebb32 Cleanup Collection.user_ids_for_object(obj) method.
* Removed `include_superusers` argument, replaced with class level `always_allow_superusers` attribute.
* Removed unused `base_qs` argument.
* Don't test for obj being a primary key when running query since obj is assumed to be an object in the prior lines of code anyway.
2015-07-09 08:52:10 +10:00
Tyson Clugg
789fe1b9e7 Merge tag '0.9.10' into develop
v0.9.10
2015-07-08 11:57:03 +10:00
Tyson Clugg
01f8c61b5a Merge branch 'release/0.9.10' 2015-07-08 11:56:57 +10:00
Tyson Clugg
01b6466723 Updated CHANGES.rst, bump version number. 2015-07-08 11:56:40 +10:00
Tyson Clugg
b059dcbeb0 Fix bug in Accounts.forgotPassword implementation. 2015-07-08 11:55:41 +10:00
Tyson Clugg
047e5f01d1 Merge tag '0.9.9' into develop
v0.9.9
2015-07-08 11:34:46 +10:00
Tyson Clugg
13a3e029fb Merge branch 'release/0.9.9' 2015-07-08 11:34:38 +10:00