Commit graph

235 commits

Author SHA1 Message Date
Tyson Clugg
dbcfa65116 Merge tag '0.12.1' into develop
0.12.1
2015-08-13 10:01:07 +10:00
Tyson Clugg
731ba5545b Merge branch 'release/0.12.1' 2015-08-13 10:01:02 +10:00
Tyson Clugg
b1017c78e5 Update CHANGES.rst, bump version number. 2015-08-13 10:00:54 +10:00
Tyson Clugg
15699f7c8f Merge branch 'feature/AleaIdField_as_primary_key' into develop 2015-08-13 09:50:10 +10:00
Tyson Clugg
7c54f4c324 Added migration for changed field defaults on Connection.connection_id. 2015-08-13 09:47:16 +10:00
Tyson Clugg
04ef1ab8a0 More aggressive searching for local AleaIdField(unique=True) when translating between meteor/object identifiers. 2015-08-13 09:46:31 +10:00
Tyson Clugg
489175d9a9 Added helper for migrations involving AleaIdField to populate fields from ObjectMapping table. 2015-08-13 09:44:45 +10:00
Tyson Clugg
b32e5aa547 Add missing imports 2015-08-13 09:43:38 +10:00
Tyson Clugg
4a5988854f Merge branch 'develop' into feature/AleaIdField_as_primary_key 2015-08-12 12:03:16 +10:00
Tyson Clugg
f02df498a2 Remove console noise from logging handler init. 2015-08-12 12:02:56 +10:00
Tyson Clugg
93abd0a6b7 Merge branch 'develop' into feature/AleaIdField_as_primary_key
Conflicts:
	dddp/server/views.py
	dddp/views.py
2015-08-11 15:36:54 +10:00
Tyson Clugg
9dd1a85dff Merge tag '0.12.0' into develop
0.12.0
2015-08-11 14:57:41 +10:00
Tyson Clugg
98878281f2 Merge branch 'release/0.12.0' 2015-08-11 14:57:35 +10:00
Tyson Clugg
66ed01a393 Update README.rst, CHANGES.rst and bumped version number. 2015-08-11 14:56:39 +10:00
Tyson Clugg
e5784ac4ca Drop dddp.server app, dddp.server.views moved to dddp.views 2015-08-11 14:55:43 +10:00
Tyson Clugg
00b1432974 Allow support for multiple meteor apps in a single django-ddp enabled project by reading METEOR_STAR_JSON as part of view init instead of app ready. 2015-08-11 09:49:12 +10:00
Tyson Clugg
5939d47af6 Normalise paths in dddp.server.views before comparison. 2015-08-11 09:48:00 +10:00
Tyson Clugg
7663405702 Honour AleaIdField(max_length=...) when generating IDs. 2015-08-11 09:44:54 +10:00
Tyson Clugg
c9dd08761b Merge tag '0.11.0' into develop
0.11.0
2015-08-10 18:50:49 +10:00
Tyson Clugg
4bf0acd68c Merge branch 'release/0.11.0' 2015-08-10 18:50:44 +10:00
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
8d340c022d Merge branch 'develop' into feature/AleaIdField_as_primary_key 2015-07-23 11:07:57 +10:00
Tyson Clugg
aa89ead1ed Allow support for multiple meteor apps in a single django-ddp enabled project by reading METEOR_STAR_JSON as part of view init instead of app ready. 2015-07-23 11:07:20 +10:00
Tyson Clugg
d7dd9f2bb5 Merge branch 'develop' into feature/AleaIdField_as_primary_key 2015-07-23 08:53:59 +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