Logo Search packages:      
Sourcecode: weather-util version File versions  Download package

def weather::Selections::get (   self,
  option,
  argument = None 
)
Retrieve data from the config or options.

Definition at line 18 of file weather.py.

                                          :
            """Retrieve data from the config or options."""
            if not argument: return self.options.__dict__[option]
            elif not self.config.has_section(argument):
                  import sys
                  sys.stderr.write("ERROR: no alias defined for " \
                        + argument + "\n")
                  sys.exit(1)
            elif self.config.has_option(argument, option):
                  return self.config.get(argument, option)
            else: return self.options.__dict__[option]

Generated by  Doxygen 1.6.0   Back to index