Revision f2d1f663 ui/views.py

b/ui/views.py
7 7
from django.utils import simplejson as json
8 8

  
9 9
TIMEOUT = settings.TIMEOUT
10

  
10
CONSOLE_WIDTH = 800 #settings.CONSOLE_WIDTH
11
CONSOLE_HEIGHT = 600 #settings.CONSOLE_HEIGHT
11 12

  
12 13
def template(name, context):
13 14
    template_path = os.path.join(os.path.dirname(__file__), "templates/")
......
34 35
            host = request.POST.get('host','')
35 36
            port = request.POST.get('port','')
36 37
            password = request.POST.get('password','')
37
    context = {'host': host, 'port': port, 'password': password}
38
    context = {'host': host, 'port': port, 'password': password,
39
    'console_height': CONSOLE_HEIGHT, 'console_width': CONSOLE_WIDTH}
38 40
    return template('machine_console', context)
39 41

  
40 42
def machines_standard(request):

Also available in: Unified diff