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
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
AlexejStukov
bb74c80b71
add a modelname to the payload dict
...
see #256
2016-07-20 18:21:23 +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
f1e8eb66e6
Remove unused import
2016-07-19 07:29:36 -04:00
Andrew Godwin
4370f043f7
Make group_send/demultiplex encode classmethods
2016-07-18 23:24:28 -04: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
8a107a5434
Fix QA error
2016-07-14 23:53:08 -07: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
Andrew Godwin
af606ff895
Fixed #244 : .close() on Websocket generic consumers
2016-07-13 17:19:39 -07:00
Andrew Godwin
27d064328a
Releasing 0.16.1
2016-07-12 15:13:05 -07:00
Andrew Godwin
e7a354e03c
Fixed #148 : Close database connections when consumers finish.
2016-07-12 15:01:19 -07:00
Andrew Godwin
a05f7d5a96
Fixed #160 : _read_started set to False on request
...
This allows read_post_and_files to work.
2016-07-12 14:40:19 -07:00
Andrew Godwin
2e5826418b
Fixed #221 : WebSocket class based consumer now has http user support
2016-07-12 14:26:01 -07:00
Andrew Godwin
9cebff05ab
Releasing 0.16.0
2016-07-06 12:10:41 -07:00
Andrew Godwin
d37f9d1ab3
Add null consumer for websocket.receive too.
2016-07-06 12:10:17 -07:00
Andrew Godwin
be127611e5
Implement default websocket.connect consumer.
2016-07-06 11:55:45 -07:00
Vikalp Jain
b9519d112d
Fix issue with calling super setUp while test cases ( #231 )
2016-07-01 09:06:56 -07:00
Andrew Godwin
efcf08d768
Releasing 0.15.1
2016-06-29 14:54:01 -07:00
Andrew Godwin
92012fbc27
Fixed #87 : Don't drop headers and status on empty streaming responses
2016-06-29 12:20:47 -07:00
Tim Watts
4a09cec2d4
Test runserver ( #214 )
...
* Add tests for runserver and runworker management commands
* Fix flake8 and isort errors
* Refactor mocking, add comments to tests
* rm unneeded vargs
2016-06-29 11:26:21 -07:00
Andrew Godwin
5eb3bf848c
Provide keyword args as self.kwargs in CBC (ref. #224 )
2016-06-27 16:47:36 -07:00
Vikalp Jain
2e3e39cd6c
Update handler.py ( #217 )
...
Remove unnecessary comment
2016-06-22 13:01:39 -07:00
Andrew Godwin
a9daf0dfbb
Releasing 0.15.0
2016-06-22 09:48:03 -07:00
Andrew Godwin
e890c48f3f
Fixed #210 : Fix query string to be bytes and not decoded
2016-06-22 09:44:10 -07:00
Andrew Godwin
274feeb42f
Releasing 0.14.3
2016-06-21 08:26:56 -07:00
Andrew Godwin
69f6791a15
Fix test to match new spec.
2016-06-21 08:22:14 -07:00
Andrew Godwin
6ea6dc6576
Fixed #210 : Plus double-decoded for query string
2016-06-21 08:04:16 -07:00
Andrew Godwin
94d4c00807
Add some more dict methods to Message
2016-06-17 12:50:25 +01:00
Andrew Godwin
66c4b0cb67
Releasing 0.14.2
2016-06-16 11:46:50 +01:00
Andrew Godwin
6fe841337d
Fix missing import
2016-06-16 11:45:08 +01:00
Andrew Godwin
773f1332ee
Fix import earliness for auth model
2016-06-16 11:42:08 +01:00
Andrew Godwin
0fe438a445
Improve decorator support for class based consumers
2016-06-16 11:37:21 +01:00
Andrew Godwin
68ce1964c8
Releasing 0.14.1
2016-06-10 05:42:29 +00:00
Krukov D
e31e326f10
Added unicode_literals from future at tests/base ( #203 )
2016-06-09 12:41:25 -07:00
thewayiam
18d4cc8e6f
#196 : made worker serve staticfiles if DEBUG=True ( #197 )
2016-06-05 22:06:37 -07:00
thewayiam
6eaee8f522
#188 : add/discard message.reply_channel on generic group_send ( #189 )
2016-06-02 16:52:35 -07:00
Krukov D
f8debafbd3
Added path parameter to the HttpClient.send method ( #193 )
2016-06-02 16:25:55 -07:00
Krukov D
c4f016b9c2
Fix for apply_routes: wrap routes in list, if it is not so ( #192 )
2016-06-02 16:25:39 -07:00
Krukov D
2874a0972c
Using logger.error instead of logger.exception ( #191 )
2016-06-02 16:25:26 -07:00
Tim Watts
56104e7fc6
Tests for file and streaming response handling inside Django ( #185 )
...
* add first streaming and file response tests
* iterate over response and not streaming content directly
* add coverage for FileResponse and StreamingHttpResponse
* added tests for headers, json responses, and redirect responses
* rm print statement
* skip failing stringio test
2016-06-01 09:47:50 -07:00
Andrew Godwin
38641d8522
Fixed #182 : Close response once we're done with it
2016-05-31 19:04:12 +00:00
Krukov D
2f3114b21e
In-between method for adding decorators in right way + a few tests for generic consumer ( #171 )
...
* Corrected doc string for BaseConsumer
* Added get_handler method for Class-base consumers for wrapping by decorators in right way
* Added a few tests for generic consumers
2016-05-29 09:36:29 -07:00
Krukov D
1a09540ca8
Added fail_on_none parameter for Client.consume function ( #172 )
2016-05-28 18:31:15 -07:00
Andrew Godwin
1168ca670e
Releasing 0.14.0
2016-05-25 18:00:31 -07:00
Andrew Godwin
49c9b74d6f
Docs/flake fixes
2016-05-25 17:52:53 -07:00
Andrew Godwin
bfacee6319
Add class-based consumers
2016-05-25 17:45:56 -07:00
Krukov D
8827063bf2
Remove inherited methods and relative imports ( #163 )
...
* Remove inherited methods from HttpClient
* Using relative import in base of tests
2016-05-19 12:19:39 -07:00
Krukov D
05c41e9ad6
More tests utils for happy users ( #162 )
...
* Added Client abstraction
* Added apply_routes decorator/contextmanager
* Fix apply routes as decorator
* Separated Http specific client and 'Simple' client
* Remove Clients from ChannelTestCase
* Added cookies and headers management
* Fix wrong reverting
* Fixs for code style
* Added space before inline comment
2016-05-19 11:45:25 -07:00
Andrew Godwin
32320ec094
Releasing 0.13.1
2016-05-13 10:27:12 -07:00
Sachin Rekhi
363b5a09e9
improve @enforce_ordering to leverage a wait channel to avoid spinlocks ( #144 )
...
* improved @enforce_ordering to leverage a wait channel to avoid spinlocks
* addressed pyflake issues
* renamed wait channel to __wait__.<reply channel>
* handled potential ChannelFull exception
* updated sessions unit tests
* updated enforce_ordering tests to reflect new approach of leveraging wait channels
* addressed pyflake issues
* more pyflake fixes
* removed close_on_error handling on enforce_ordering since only worked on websockets
2016-05-12 10:38:06 -07:00
Anatol Ulrich
2874350a6a
pass arguments to get_consumer ( #147 )
2016-05-09 09:51:51 -07:00
Krukov D
9505906b42
Fix re-inserting, with tests ( #146 )
...
* Stopping re-inserting at first success
* Added a few tests for worker running
* Coping routes in channels layers at the ChannelTestCase
* Remake worker test with less mocking
2016-05-08 12:21:58 -07:00
Andrew Godwin
6e40fba47c
Releasing version 0.13.0
2016-05-07 13:09:12 -07:00
Andrew Godwin
dcbab8b2b4
Remove DatabaseLayer and improve deployment docs mentioning it
2016-05-07 10:35:12 -07:00
Andrew Godwin
feea84f323
Introduce backpressure with ChannelFull
2016-05-05 22:48:12 -07:00
Andrew Godwin
7b75761644
Flake8 fixes
2016-05-04 18:52:52 -07:00
Andrew Godwin
2f01155bfd
Session tests
2016-05-04 10:39:38 -07:00
Andrew Godwin
96735b917b
Make flake8 like indentation
2016-05-03 18:14:41 -07:00
Andrew Godwin
45dfeb548e
Django 1.10 patch fixes
2016-05-03 18:10:51 -07:00
Andrew Godwin
cf9d7d6f76
Change to more precise TestCase import
2016-05-03 18:06:43 -07:00
Andrew Godwin
e451ea4d69
Reformat runworker a bit
2016-05-02 19:17:24 -07:00
Andrew Godwin
a9187b99fe
More formatting fixes
2016-04-30 20:55:19 -07:00
Andrew Godwin
698c2aaca0
Fix worker.py formatting
2016-04-30 19:15:45 -07:00
Andrew Godwin
073cbca16d
Fixed #116 : Allow configuration of worker listening
2016-04-30 19:11:08 -07:00
Krukov D
681616caa4
Fix missed logger name ( #138 )
2016-04-28 09:52:49 +01:00
Andrew Godwin
7bc35f1842
Fix up tests under py3
2016-04-26 14:05:17 +01:00
Andrew Godwin
b374a2a604
Releasing 0.12.0
2016-04-26 13:51:41 +01:00
Andrew Godwin
e684b27e46
Switch to uncode path and query string for HTTP
2016-04-26 13:33:26 +01:00
Michael Kutý
80206e5452
Fix loading files. #123
2016-04-08 11:04:55 -07:00
Andrew Godwin
8abe53e170
Change type of error
2016-04-06 22:02:41 -07:00
Andrew Godwin
70637b7afe
Wrap line properly
2016-04-05 22:29:00 -07:00
Andrew Godwin
cd9c049296
Rename database layer models to be consistent
2016-04-05 22:25:05 -07:00
Andrew Godwin
4504eb6ec9
Add select_for_update() to improve isolation
2016-04-05 22:18:54 -07:00
Andrew Godwin
732167282b
Some import sorting stuff
2016-04-05 17:38:05 -07:00
Andrew Godwin
11218089bd
Fix flake error
2016-04-05 17:30:47 -07:00
Andrew Godwin
4437e04528
Fix circular import issue
2016-04-05 17:19:23 -07:00
Andrew Godwin
4bab456c61
Fail to work if you have channel-enabled Django
2016-04-05 16:44:26 -07:00
Andrew Godwin
d29f02fb33
Patchinator/django fixes
2016-04-05 16:20:49 -07:00
Andrew Godwin
2ef0baa5c2
Release 0.11.0
2016-04-05 08:21:54 -07:00
David Evans
28e897d9bc
Remove lazy loading of middleware
...
This mirrors the equivalent change in Django itsef. See:
https://code.djangoproject.com/ticket/26452
99bb7fcc18
2016-04-04 13:36:18 -07:00
Andrew Godwin
37923c3674
Flake8 fixes
2016-04-04 03:38:38 +02:00
Andrew Godwin
67e3e55131
Respect HTTP request body close in ASGI.
2016-04-04 03:34:05 +02:00
Andrew Godwin
920882f1da
Implement timeout on request body reading
2016-04-04 03:34:05 +02:00
Andrew Godwin
a563d4353f
Fix new routing channel name collector and add test
2016-04-04 03:34:05 +02:00
Andrew Godwin
5a22412c16
Considerably improve routing code simplicity and shortcircuiting
2016-04-04 03:34:05 +02:00
Andrew Godwin
0e3c742a80
Introduce ChannelTestCase to make testing easier
2016-04-04 03:34:05 +02:00
Andrew Godwin
8f40ad1d68
Releasing 0.10.3
2016-03-29 11:44:15 +01:00
Andrew Godwin
1ab757fffb
Implement group_expiry on database channel backend
2016-03-28 11:59:25 +01:00