示例#1
0
 def __start__ (self):
     self.http = ImageServerHTTP(self)
     self.http.start()
     
     if self['autoload']:
         self.log.info('Loading existing images...')
         loaddir = os.path.expanduser(self['load_dir'])
         loaddir = os.path.expandvars(loaddir)
         loaddir = os.path.realpath(loaddir)
         self._loadImageDir(loaddir)
示例#2
0
    def __start__(self):

        if self["http_host"] == "default":
            self["http_host"] = self.getManager().getHostname()

        if self["httpd"]:
            self.http = ImageServerHTTP(self)
            self.http.start()

        if self['autoload']:
            self.log.info('Loading existing images...')
            loaddir = os.path.expanduser(self['images_dir'])
            loaddir = os.path.expandvars(loaddir)
            loaddir = os.path.realpath(loaddir)
            self._loadImageDir(loaddir)