~jtv/maas/bug-991553

  • Committer: Tarmac
  • Author(s): Raphael Badin
  • Date: 2012-03-14 15:20:46 UTC
  • mfrom: (236.6.15 maas-longpoll-js)
  • Revision ID: ed@carob-20120314152046-dkaa0kxxeti2hpor
[r=jtv][bug=][author=rvb] This branch adds the required view/utility to deal with longpoll on the server side.  It adds:
- the required configuration options
- a simple view which will act as a proxy to a txlongpoll server.  Note that this will be used in dev mode only.  In production, apache will do that.  Also, in the future, we might want, in dev mode, to setup a tiny and lightweight http server that will act as a frontend to django's dev server and txlongpoll.
- view.get_longpoll_context: a simply utility used to populate a context with the information required to connect longpoll on the js side.

Note that LONGPOLL is disabled on the dev instance (LONGPOLL_URL = None in demo.py) by default because having it on breaks Django's auto reload feature.
Filename Latest Rev Last Changed Committer Comment Size
..
fixtures 32.5.1 12 years ago Raphael Badin Add fixture. Diff
management 22.1.1 12 years ago Jeroen Vermeulen Make maasdb commands accessible from bin/django. Diff
static 2 12 years ago Raphael Badin Serve static files. Diff
templates 1 12 years ago Raphael Badin Initial commit. Diff
templatetags 211.5.1 12 years ago Huw Wilkins Added a template tag to check for field types and Diff
testing 14.1.5 12 years ago Raphael Badin Improvements as per review. Diff
tests 10.1.2 12 years ago Raphael Badin Have a test directory rather than a test file. Diff
__init__.py 166.2.1 12 years ago Raphael Badin Run YUI3 unit tests as part of the test suite. 280 bytes Diff Download File
api.py 216.4.7 12 years ago Raphael Badin Test validation message. 21 KB Diff Download File
api_auth.py 225.1.1 12 years ago Raphael Badin Autodetect path. Move api_auth in maasserver. 1 KB Diff Download File
context_processors.py 224.1.2 12 years ago Raphael Badin Use convoy. 746 bytes Diff Download File
exceptions.py 211.3.4 12 years ago Jeroen Vermeulen Satisfy tests. 1.7 KB Diff Download File
fields.py 199 12 years ago Tarmac [r=allenap][bug=][author=rvb] This branch adds the 2.6 KB Diff Download File
forms.py 267.1.1 12 years ago Jeroen Vermeulen Add Node.power_type to API. 9.3 KB Diff Download File
messages.py 236.6.14 12 years ago Raphael Badin Fixes as per review. 3.6 KB Diff Download File
middleware.py 248.5.9 12 years ago Raphael Badin Format exception message properly. 5.5 KB Diff Download File
models.py 274 12 years ago Tarmac [r=allenap][bug=][author=rvb] Rabbit messaging. 29.5 KB Diff Download File
provisioning.py 269 12 years ago Tarmac [r=rvb,allenap][bug=][author=jtv] New maas_url con 3.8 KB Diff Download File
rabbit.py 236.4.12 12 years ago Raphael Badin RabbitBase(threading.local). 2.6 KB Diff Download File
urls.py 236.6.14 12 years ago Raphael Badin Fixes as per review. 3 KB Diff Download File
urls_api.py 225.1.1 12 years ago Raphael Badin Autodetect path. Move api_auth in maasserver. 1.9 KB Diff Download File
views.py 236.6.14 12 years ago Raphael Badin Fixes as per review. 9.4 KB Diff Download File