示例#1
0
  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)
示例#2
0
    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)
示例#3
0
 def set_vars_file(self):
   from ue import misc
   misc.set_var(self.info)
示例#4
0
 def set_vars_file(self):
     from ue import misc
     misc.set_var(self.info)