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)
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)