From 46d3abc450db20c3e4c0854dbf9e711f59db3bff Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 20 Dec 2011 19:45:57 -0600 Subject: Reload UI on server upgrade. The JSON server has been modified to return the version number in all responses. The UI has been modified to keep the version obtained during env operation and check the version returned in subsequent operations. If the version changes the UI will reload itself. Ticket #946 --- ipalib/constants.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipalib') diff --git a/ipalib/constants.py b/ipalib/constants.py index 96cf3ba6..d984bbc2 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -22,6 +22,7 @@ All constants centralised in one file. """ import socket +from ipapython.version import VERSION try: FQDN = socket.getfqdn() except: @@ -63,6 +64,8 @@ CONFIG_SECTION = 'global' # This is a tuple instead of a dict so that it is immutable. # To create a dict with this config, just "d = dict(DEFAULT_CONFIG)". DEFAULT_CONFIG = ( + ('version', VERSION), + # Domain, realm, basedn: ('domain', 'example.com'), ('realm', 'EXAMPLE.COM'), -- cgit