Tyson Clugg
4fc7f2179f
Consistent handling of client side vs server side errors.
2016-01-08 17:38:41 +11:00
Tyson Clugg
e2f9887076
Don't include dddp.test as a package (moved out of dddp package).
2016-01-06 15:03:15 +11:00
Matthew Schinckel
599818e900
Remove reliance on django-dbarray.
...
Remove old-style aggregate gunk.
Resolves #3
2016-01-05 21:59:53 +10:30
Tyson Clugg
b42957ec24
Fixes #33 -- Add meteor_autoupdate_clientVersions publication.
...
Includes new sub/unsub test case.
2015-12-28 02:38:28 +11:00
Tyson Clugg
06728df58f
Pass Travis CI if Python 3 / PyPy builds fail.
2015-12-28 00:55:05 +11:00
Tyson Clugg
76cf621ef6
Add AccountsTestCase with login.
2015-12-21 21:08:36 +11:00
Tyson Clugg
f051986595
Add WebSocket and DDP tests to test suite.
2015-12-21 21:07:26 +11:00
Tyson Clugg
2e86354c4b
Move MeteorView out of test project urls into django_todos.
2015-12-21 21:06:13 +11:00
Tyson Clugg
89dd3649d7
Re-raise exceptions after sending error to client.
2015-12-21 21:04:44 +11:00
Tyson Clugg
460e1c685a
Explicitly turn off debug in tests.
2015-12-21 21:03:06 +11:00
Tyson Clugg
552cd6b30b
Permit Django 1.9 naming for postgres DB backend.
2015-12-21 20:59:08 +11:00
Tyson Clugg
0bcb216167
Don't supress exceptions in pgworker greenlets.
2015-12-21 20:57:11 +11:00
Tyson Clugg
5d1eedd75a
Remove doctest runner cruft from dddp.alea (now in dddp.tests).
2015-12-21 20:54:18 +11:00
Tyson Clugg
d04d56bdb7
Apply gevent monkey patching before importing django (which imports threading).
2015-12-18 10:47:38 +11:00
Tyson Clugg
64aa79fab7
Update CHANGES.rst, bump version number.
2015-12-16 21:29:35 +11:00
Tyson Clugg
df495423cf
Add test case with a GET request.
2015-12-16 21:21:23 +11:00
Tyson Clugg
a23d2f8056
Crude support for pub access to this.user.
2015-12-16 21:16:16 +11:00
Tyson Clugg
179642ff09
Fix DB close during service stop.
2015-12-16 21:12:14 +11:00
Tyson Clugg
b38a0447f6
Close DB and yield after processing msg from WebSocket.
2015-12-16 17:24:45 +11:00
Tyson Clugg
e8651d3bd3
Pylint cleanups and remove logging from MeteorView.
2015-12-16 17:04:31 +11:00
Tyson Clugg
7184e633c9
pylint cleanups on dict_merge.
2015-12-16 17:02:01 +11:00
Tyson Clugg
f8539b9253
Fix doctest in API module.
2015-12-15 10:15:07 +11:00
Tyson Clugg
77ac4a9689
Support for alternate Django psycopg2 drivers.
2015-12-15 10:07:08 +11:00
Tyson Clugg
96c53649b8
Remove debug argment from PostgresGreenlet.
2015-12-15 09:49:12 +11:00
Tyson Clugg
81bedca997
Remove unused import.
2015-12-14 13:08:02 +11:00
Tyson Clugg
40d0bf27a6
Fail on start if any child threads can't start.
2015-12-14 13:07:25 +11:00
Tyson Clugg
d7dde53bdc
Packaging updates in preparation for next release.
...
- `make test` runs tox against Python 2.7/3.3/3.4/3.5 and Django
1.8/1.9.
- Building universal wheels with PEP-0496 Environment Markers.
- Build wheel from tox environment to ensure consistency.
- Consistent layout for setup and requirements files, now using PEP-0409
Environment Markers.
- Dropping support for Django 1.7 (didn't work anyway).
- Moving repository to https://github.com/django-ddp/django-ddp (new
Github organisation).
- Update changelog.
2015-12-14 13:05:28 +11:00
Tyson Clugg
99fddfcc23
Try to use dddp.test.django_todos.tests in test suite.
2015-12-14 12:43:49 +11:00
Tyson Clugg
7bdd6baa85
Use libpq environment variables for DB settings in test project.
2015-12-14 12:41:47 +11:00
Tyson Clugg
927311958d
Add dddp.tests test suite, just running doctests for now.
2015-12-14 11:57:39 +11:00
Tyson Clugg
b521317c77
Add test runner for use with python setup.py test
2015-12-14 11:47:13 +11:00
Tyson Clugg
0b8b3c6ddf
Fixes #23 -- For loop instead of using .
2015-11-23 11:15:17 +11:00
Tyson Clugg
30516dd44a
Wait for all threads to stop upon launcher stop.
2015-11-23 11:12:48 +11:00
Tyson Clugg
0af3aa8c3f
Set application_name on PostgreSQL async connection.
2015-11-23 11:10:57 +11:00
Tyson Clugg
a330746432
Send django.core.signals.request_finished when closing WebSocket.
2015-11-23 11:09:59 +11:00
Tyson Clugg
f1b4f0798d
Don't require DJANGO_SETTINGS_MODULE to import API.
2015-11-23 10:10:07 +11:00
Tyson Clugg
452f891bb8
Update CHANGES.rst, bump version number.
2015-11-06 01:13:16 +11:00
Tyson Clugg
cc8b0e0e1a
Fixes #22 -- Don't assume project has a .
2015-11-06 01:10:06 +11:00
Tyson Clugg
c97d4404f8
Update CHANGES.rst, bump version number.
2015-11-05 15:05:36 +11:00
Tyson Clugg
5ec0c392d3
Fix order of psycopg2cffi.compat.register() call and psycogreen.gevent.patch_psycopg() call, demote threading module exception to warning.
2015-11-05 14:42:24 +11:00
Tyson Clugg
bc9afefadd
Support METEOR_SETTINGS env var, as well as introduce METEOR_PUBLIC_ENVS var.
2015-11-05 11:41:00 +11:00
Tyson Clugg
23f233bd43
Update CHANGES.rst, bump version number.
2015-10-30 14:27:37 +11:00
Tyson Clugg
f371c5b1d4
Update CHNAGES.rst, bump version number.
2015-10-29 10:06:17 +11:00
Tyson Clugg
9c865dd978
Fixes #18 , fixes #19 -- Use six forPython 3 compatibility.
2015-10-29 10:02:31 +11:00
Tyson Clugg
a3c9f9c802
Python3 compatibility fixes in dddp.api.
2015-10-29 09:53:52 +11:00
Tyson Clugg
5f776a7996
Python3 compatibility fix for alea module.
2015-10-29 09:25:05 +11:00
Tyson Clugg
be93d5e1e8
Pylint cleanups.
2015-10-28 13:30:58 +11:00
Tyson Clugg
4c0fd40ebd
Fix bug causing some subscription queries to use inefficient SQL.
2015-10-14 02:59:02 +11:00
Tyson Clugg
27c270f40f
Fixes #6 (again) -- Python 3 style exception handling.
2015-10-13 23:44:15 +11:00
Tyson Clugg
80238bc785
Make the SQL for subscriptions much faster to run.
...
The PostgreSQL query planner knows to short-circuit some operators such
as IN or ANY such that `foo_id IN (SELECT foo.id FROM foo WHERE ...)`
doesn't need to perform a full table scan on foo.
This change ensures that `user_rel` WHERE clauses use the `IN` operator
to take advantage of the greatly improved performance.
2015-10-13 23:13:41 +11:00