Commit graph

62 commits

Author SHA1 Message Date
Tyson Clugg
07ccc014bc Fix array aggregate for Django 1.8 2015-06-14 03:31:27 +10:00
Tyson Clugg
9b18e4833a Remove unused imports from AppConfig module. 2015-06-14 00:20:39 +10:00
Tyson Clugg
16e48e50be Don't barf on multiple invocations of greenify(). 2015-06-14 00:08:13 +10:00
Tyson Clugg
2ad5e28452 WIP on Django 1.8 compatibility. 2015-06-12 23:08:27 +10:00
Tyson Clugg
3cf47a928f Remove editor cruft from repo. 2015-06-10 17:48:29 +10:00
Tyson Clugg
a680a5a643 Add dddp.server Django app to serve Meteor app files. 2015-06-05 09:51:54 +10:00
Tyson Clugg
2cfb3ebe12 Pylint: reduce number of variables in method. 2015-06-05 09:38:15 +10:00
Tyson Clugg
65927e20e6 Don't emit change messages for migrations/ddp apps. 2015-06-05 09:37:36 +10:00
Tyson Clugg
1e000d2892 Show method input params after traceback if exception occurs. 2015-06-05 09:36:49 +10:00
Tyson Clugg
b8bf33a992 Remove shadown method definition. 2015-06-05 09:36:12 +10:00
Tyson Clugg
f02fba6d9f Refactor serialization to imporove performance (less DB queries) and add support for auth updating subscriptions. 2015-05-28 10:53:29 +10:00
Tyson Clugg
8327aac633 Use OrderedDict for geventwebsocket.Resource spec so geventwebsockets>=0.9.4 doesn't complain. 2015-05-27 15:16:07 +10:00
Tyson Clugg
a8b0883a39 Support optional on M2M fields with blank=True for schema generation. 2015-05-27 14:31:23 +10:00
Tyson Clugg
f5f127e9ba Check order of added/changed when emitting WebSocket frames, don't try to emit removed when client doesn't have the item. 2015-05-27 14:28:30 +10:00
Tyson Clugg
fa51d89575 Fix order of added/changed messages by deferring id checking until emitting WebSocket frames. 2015-05-27 12:48:16 +10:00
Tyson Clugg
8252a1ce68 Move test projects into path that can be imported post install. 2015-05-27 08:55:46 +10:00
Tyson Clugg
469b3cc901 Add support for SSL options and --settings=SETTINGS arg in dddp tool. 2015-05-27 08:53:17 +10:00
Tyson Clugg
c7ecd60ea7 Refactor pub/sub functionality to fix support for removed. 2015-05-21 12:51:43 +10:00
Tyson Clugg
f1d031313f Bugfix issue where DDP connection thread stops sending messages after changing item that has subscribers for other connections but not self. 2015-05-20 15:05:05 +10:00
Tyson Clugg
0542e31f3d Fix added/changed messages. 2015-05-18 12:39:00 +10:00
Tyson Clugg
6a447b5558 Fix pylint warning about local overwrite of variable. 2015-05-18 12:38:29 +10:00
Tyson Clugg
4fe0a0f858 Send nosub in response to bad sub request. 2015-05-18 12:37:09 +10:00
Tyson Clugg
bd830a4aab Fix change handler for objects updated using F expressions. 2015-05-18 12:35:52 +10:00
Tyson Clugg
ea440356a3 Show stack trace on console by default to further debugging efforts. 2015-05-18 12:34:30 +10:00
Tyson Clugg
5f43879f74 Login after create_user as per http://docs.meteor.com/#/full/accounts_createuser 2015-05-14 13:44:32 +10:00
Tyson Clugg
53ec18cd33 Add dddp.accounts module (Django application). 2015-05-12 14:35:08 +10:00
Tyson Clugg
28a187a574 Correct ordering of outgoing messages for RPC calls that should return result after change messages. 2015-05-12 08:53:21 +10:00
Tyson Clugg
c95e2faf2a Refactored send_notify to add custom serialization support. 2015-05-06 19:40:54 +10:00
Tyson Clugg
ba592bb0a0 Fix publications/collection DDP update routing to select the correct collection for change updates. 2015-04-29 19:54:53 +10:00
Tyson Clugg
1e99b0c396 Gracefully handle poorly registered instance methods that take no args (ie: missing self arg) 2015-04-29 19:51:40 +10:00
Tyson Clugg
9de6b8dc9d Add autoform options to /foo.collection/schema. 2015-04-29 19:47:39 +10:00
Tyson Clugg
223e425cde Stop wrapping api methods in transaction.atomic, they are already in transactions from websocket.py -> dispatch(). 2015-04-29 19:45:52 +10:00
Tyson Clugg
1a91693d1f Drop session field from Connection model, move transaction wrapper from on_message to dispatch handler. 2015-04-29 19:40:30 +10:00
Tyson Clugg
e8e0e2df98 Make live updates honour user_rel restrictions, also allow superusers to see everything. 2015-04-28 12:17:35 +10:00
Tyson Clugg
8931025d53 Support serializing objects that are saved with F expressions by reading field values for F expressions from database explicitly before serializing. 2015-04-27 22:30:52 +10:00
Tyson Clugg
abe6b12ece Allow fresh connections from browsers that have not established a
session in the database yet, also allow subscriptions from
unauthenticated sessions (but don\'t show any data for collections that
have user_rel items defined).
2015-04-27 22:26:39 +10:00
Tyson Clugg
b6a4388b93 Move serializer factory into global thread context. 2015-04-27 10:29:00 +10:00
Tyson Clugg
86c8a68f88 Move dddp.main.greenify() to dddp.greenify() to avoid import of threading module before green thread init. 2015-04-23 13:50:33 +10:00
Tyson Clugg
b9a17b8f37 New DB field: Connection.server_addr, cleanup connections on shutdown. 2015-04-23 13:46:54 +10:00
Tyson Clugg
c20ad035f6 Add ability to deserialize DDP objects. 2015-04-23 13:24:13 +10:00
Tyson Clugg
befa57b8a3 Add dddp.models.get_object(model, meteor_id) method, make get_meteor_id(obj) return None where obj is None. 2015-04-23 10:02:13 +10:00
Tyson Clugg
756a65474d Fix /schema method call. 2015-04-23 09:51:37 +10:00
Tyson Clugg
59cc3f0ad1 Fix unsubscribe from publications. 2015-04-23 09:50:45 +10:00
Tyson Clugg
5768d1ebcf Fix non-threadsafe failure in serializer - now using thread local serializer instance. 2015-04-23 09:41:49 +10:00
Tyson Clugg
82ca99b142 Make dddp management command a subclass of the runserver command so that staticfiles works as expected. 2015-04-23 09:38:14 +10:00
Tyson Clugg
930dfc439a Change DDP serializer to inherit most behaviours from default python serializer, with judicious use of super() where necessary. 2015-04-23 09:23:57 +10:00
Tyson Clugg
c52f2eac3c Version 0.2.5: Fix foreign key references in change messages to correctly reference related object rather than source object. 2015-04-15 12:01:39 +10:00
Tyson Clugg
068422099f Version 0.2.4 - Fix unicode rendering bug in DDP admin for ObjectMapping model. 2015-04-15 11:10:07 +10:00
Tyson Clugg
c40e8722bc Add console script to start DDP service in more robust manner than using the dddp Django mangement command (bump version for release: 0.2.3). 2015-04-15 11:00:15 +10:00
Tyson Clugg
41c544dadb Fix generation of meteor ID's to match meteor client implementation. 2015-04-14 11:08:08 +10:00