예제 #1
0
 def onSettingsChanged(self):
     try:
         init()
         urllib_request.urlopen("%s/reload" % ELEMENTUMD_HOST)
         urllib_request.urlopen("%s/cmd/clear_page_cache" % ELEMENTUMD_HOST)
     except:
         pass
예제 #2
0
    def onSettingsChanged(self):
        log.debug('{0}.onSettingsChanged()'.format(self))

        try:
            init()
            urllib_request.urlopen("%s/reload" % ELEMENTUMD_HOST)
            urllib_request.urlopen("%s/cmd/clear_page_cache" % ELEMENTUMD_HOST)
        except:
            pass
예제 #3
0
 def restart(self):
     try:
         init()
         urllib_request.urlopen("%s/restart" % ELEMENTUMD_HOST)
     except:
         pass
예제 #4
0
import os
import sys
sys.path.insert(
    0, os.path.join(os.path.dirname(__file__), 'resources', 'site-packages'))
from elementum import service, config

config.init()
service.run()