Commit Graph

17 Commits

Author SHA1 Message Date
AlexejStukov
fcb2875b53 fixed usage of group_names in *_change_receiver (#306)
* fixed usage of group_names in *_change_receiver

group_names was missing second arg (action)

* fixed group_names to include action

* made group_names a classmethod
2016-08-23 10:13:46 -07:00
Tyson Clugg
57fa3bed67 Implement the data binding behaviour from Django DDP. (#301)
* Implement the data binding behaviour from Django DDP.

Correct dispatch of create/update/delete according to how group_names change
when compared between pre and post save/delete.

* Fix tests for databinding improvements.
2016-08-16 16:49:18 +10:00
Francis Mwangi
fb2e9320c2 fixed typo (#296) 2016-08-14 12:08:00 +10:00
AlexejStukov
0bc1cee103 Easy application of decorators to Bindings (#281)
* Added get_handler

Added a get_handler method that applies decorators to the consumer-classmethod

* added imports for decorators

* Added get_handler to WebsocketBinding

* Fixed missing import

* channel_session_user defaults to True

* removed user-transfer from http

would only work in a connect-method

* removed unused import
2016-08-05 00:12:59 -07:00
Krukov Dima
05b0073d8e Fix calling class registration 2016-07-24 13:11:58 +00:00
Andrew Godwin
a4c8602ea1 Move fields check to register so it happens on server start 2016-07-22 21:40:51 -04:00
Andrew Godwin
435fd89be8 Merge pull request #261 from AlexejStukov/patch-8
move encoding from serialize to trigger_outbound
2016-07-21 11:30:48 -04:00
AlexejStukov
014afb8b63 fixed whitespace 2016-07-21 09:51:51 +02:00
AlexejStukov
d7b99fa935 added encode to Binding 2016-07-21 09:29:44 +02:00
AlexejStukov
74c72f0126 move assert where it is needed 2016-07-21 08:55:30 +02:00
AlexejStukov
6104f89925 added encoding and self.stream-check to trigger_outbound 2016-07-21 08:53:24 +02:00
AlexejStukov
bf5b9d31a0 removed whitespace in blank line 2016-07-21 08:28:06 +02:00
AlexejStukov
d9c1559a90 Register Bindings if they are declared after ready has run
If the declaration of a binding happens after the ``ready``-method of channels has run, the binding was not registered. With this it will be registered at declaration. This also ensures that no registration happens before the ``ready``-method runs.
2016-07-21 08:18:15 +02:00
Andrew Godwin
cbe6afff85 Why not rewrite binding into multiplexers on a Monday night? 2016-07-18 23:12:44 -04:00
Andrew Godwin
5d2354c71b Provide default serializers for the JSON one 2016-07-18 14:57:19 -04:00
Andrew Godwin
15cc5571da Fix a few model bits on the bindings 2016-07-14 23:34:12 -07:00
Andrew Godwin
62d4782dbd First version of binding code 2016-07-14 23:15:57 -07:00