~jose/charms/precise/juju-gui/add-blank-defaults

« back to all changes in this revision

Viewing changes to server/guiserver/__init__.py

  • Committer: Nicola Larosa
  • Date: 2013-07-31 15:45:55 UTC
  • mto: (60.27.1 integrate-builtin-server-2)
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: nicola.larosa@canonical.com-20130731154555-aekmw8ur2dxutawi
Fix and add tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
performs the actual orchestration work. Both browser-server and server-Juju
29
29
connections are bidirectional, using the WebSocket protocol on the same port as
30
30
the HTTPS connection, allowing changes in the Juju environment to be propagated
31
 
and shown immediately by the browser.
32
 
 
33
 
In addition to the WebSocket API, juju-core also exposes an HTTPS API. This
34
 
functionality is used, e.g., for uploading local charm as zip archives. The GUI
35
 
server exposes a "/juju-core/" namespace that can be used to send GET or POST
36
 
requests to the juju-core HTTPS server. Responses are propagated to the client
37
 
which originally made the request.
38
 
"""
39
 
 
40
 
VERSION = (0, 3, 0)
 
31
and shown immediately by the browser. """
 
32
 
 
33
VERSION = (0, 0, 1)
41
34
 
42
35
 
43
36
def get_version():