Andrew Godwin
4724ee4529
Mark WebsocketBindingWithMembers as abstract
2016-07-28 11:12:51 +01:00
Andrew Godwin
c2b6759ba4
Revert "Unpin flake8 now they pushed a new release"
...
This reverts commit 10eaa36c9c
.
2016-07-28 11:05:48 +01:00
AlexejStukov
77f41ce1a9
Added WebsocketBindingWithMembers ( #262 )
...
* Added WebsocketBindingWithMembers
WebsocketBindingWithMembers inherits WebsocketBinding and additionally enables sending of member variables, properties and methods.
* pep fixes
* pep fixes
* Changed to Mixin
More flexible this way; also checking if members are callable now, not just a try-except.
* moved BindingWithMembersMixin to base.py
* moved BindingWithMembersMixin to base.py
* undo moving to base.py
* undo moving to base.py; undo Mixin
* use DjangoJSONEncoder to serialize members
* missing self
* removed nasty whitespace
2016-07-28 10:55:28 +01:00
Andrew Godwin
10eaa36c9c
Unpin flake8 now they pushed a new release
2016-07-28 10:50:03 +01:00
Andrew Godwin
d027c57dbf
Fix typo in attrs error message
2016-07-28 10:49:37 +01:00
Krukov D
d9a943a2d5
as_route method for class based consumers ( #266 )
...
* Relative imports at the base of generic
* Added as_route method to generic consumers
* Tests for as_route method for generic consumers
* Now as_route method does not create new object + less verbose creating new object (tests)
* Fix flake8 version
* Fix blank line (flake8)
* Separate kwargs of as_route method as filters and nonfilters kwargs.
* `kwargs` for filters and `attrs` for class body at `as_route` method
2016-07-28 10:48:57 +01:00
Andrew Godwin
b4263d0f1b
Merge pull request #273 from the-kid89/fix_272
...
Fixed issue 272
2016-07-27 16:25:18 +01:00
Emett Speer
33ec92777f
Added fix from pull 266
2016-07-27 08:21:20 -07:00
Emett Speer
efee5e0d34
Fixed issue 272
2016-07-26 17:05:18 -07:00
Andrew Godwin
fab6bd0536
Merge pull request #267 from Krukov/master
...
Improvements, fix and tests
2016-07-25 05:07:28 -04:00
Krukov Dima
72039cd3e9
A few tests for binding (outbound)
2016-07-24 13:13:21 +00:00
Krukov Dima
05b0073d8e
Fix calling class registration
2016-07-24 13:11:58 +00:00
Krukov Dima
a3e779fe9c
Json encoding/decoding for send/receive content at the HttpClient
2016-07-24 13:10:57 +00:00
Krukov Dima
3c03b44af7
Added method join_group to the test Client
2016-07-24 13:08:31 +00:00
Andrew Godwin
04cfafeaf5
Releasing 0.17.1
2016-07-22 21:57:26 -04:00
Andrew Godwin
b76bf3c1cc
Add worker_ready signal
2016-07-22 21:51:28 -04: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
174430c817
fields update for binding
2016-07-22 21:36:41 -04:00
Andrew Godwin
8c6050fbba
Merge pull request #264 from AlexejStukov/patch-10
...
Security fix - every field of a model is send - even password
2016-07-22 21:32:32 -04:00
Andrew Godwin
9f6ea22eff
Add twisted/asyncio extensions to ASGI
2016-07-22 15:12:16 -04:00
Andrew Godwin
0954829248
A few more docs on polls
2016-07-22 11:14:47 -04:00
AlexejStukov
4625266db6
raise error if self.fields is empty
2016-07-22 08:17:49 +02:00
AlexejStukov
6eda634746
whitespace
2016-07-21 21:08:47 +02:00
AlexejStukov
d07600f04b
Security fix - every field of a model is send - even password
...
Atm WebsocketBinding sends every field of a model, even the password of a user. Users of the class should have to think about which fields they want to send to the user. Also added a more intuitive option for sending all fields.
2016-07-21 21:06:25 +02:00
Andrew Godwin
4d580c2575
Merge pull request #263 from slick666/contribution_document
...
Contribution document
2016-07-21 13:08:12 -04:00
Landon Jurgens
5969bbd0f3
Initial implementation of the contribution file
...
Added IDE/TOOLS section to .gitignore
2016-07-21 12:21:12 -04:00
Andrew Godwin
91e1daa77c
Add code to websocket.disconnect
2016-07-21 11:53:28 -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
Andrew Godwin
56b74bb996
Merge pull request #260 from AlexejStukov/patch-4
...
Register Bindings if they are declared after ready has run
2016-07-21 11:19:37 -04:00
AlexejStukov
16c80c3900
fixed whitespace
2016-07-21 09:52:43 +02:00
AlexejStukov
014afb8b63
fixed whitespace
2016-07-21 09:51:51 +02:00
AlexejStukov
38430b41d1
add encode to WbesocketBinding
2016-07-21 09:33:28 +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
1cca353e51
removed encoding from serialize
2016-07-21 08:46:29 +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
9d7cba109e
Merge pull request #259 from tmiller02/doc_update
...
Change content dict in code snippets to correct format
2016-07-20 20:24:12 -04:00
Tom
adb8685f33
Change content dict in code snippets to correct format
2016-07-20 22:37:02 +01:00
Andrew Godwin
f85c992cda
Merge pull request #257 from AlexejStukov/patch-6
...
route was missing in import
2016-07-20 13:36:23 -04:00
Andrew Godwin
91c51d106e
Merge pull request #258 from AlexejStukov/patch-7
...
add a modelname to the payload dict
2016-07-20 13:36:04 -04:00
AlexejStukov
bb74c80b71
add a modelname to the payload dict
...
see #256
2016-07-20 18:21:23 +02:00
AlexejStukov
c6f104f274
route was missing in import
2016-07-20 18:14:59 +02:00
Andrew Godwin
29530a23b6
Merge pull request #254 from AlexejStukov/patch-3
...
Replaced BindingConsumer with Demultiplexer in routing
2016-07-20 10:47:05 -04:00
AlexejStukov
3744bf5e2f
Replaced BindingConsumer with Demultiplexer in routing
...
Seems BindingConsumer was renamed to Demultiplexer but that was forgotten in the routing. Also there was a missing ``/`` in the ``path``
2016-07-20 09:58:54 +02:00
Andrew Godwin
ad8f4663c8
Releasing 0.17.0
2016-07-19 08:55:48 -04:00
Andrew Godwin
e15f6ead6f
Add close argument to send/group_send
2016-07-19 08:52:39 -04:00
Andrew Godwin
32e047a320
Merge pull request #252 from andrewgodwin/binding
...
Data Binding
2016-07-19 08:48:29 -04:00
Andrew Godwin
f1e8eb66e6
Remove unused import
2016-07-19 07:29:36 -04:00