def set_vars_file(self): """writing vars crypted file to get theses vars accessible from Format, Copy and Config classes.""" from ue import misc vars = {} attribs = ['hostname','fullname','username','password'] try: for name in attribs: var = getattr(self, name) vars[name] = var.get_text() vars['mountpoints'] = self.mountpoints except: pre_log('error', 'Missed attrib to write to /tmp/vars') self.quit() else: misc.set_var(vars)
def set_vars_file(self): """writing vars crypted file to get theses vars accessible from Format, Copy and Config classes.""" from ue import misc vars = {} attribs = ['hostname', 'fullname', 'username', 'password'] try: for name in attribs: var = getattr(self, name) vars[name] = var.get_text() vars['mountpoints'] = self.mountpoints except: pre_log('error', 'Missed attrib to write to /tmp/vars') self.quit() else: misc.set_var(vars)
def set_vars_file(self): from ue import misc misc.set_var(self.info)