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

def weather::Selections::get (   self,
  argument = None 

Retrieve data from the config or options.

Definition at line 18 of file weather.py.

00018                                        :
      """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("weather: error: no alias defined for " \
            + argument + "\n")
      elif self.config.has_option(argument, option):
         return self.config.get(argument, option)
      else: return self.options.__dict__[option]
   def get_bool(self, option, argument=None):

Generated by  Doxygen 1.6.0   Back to index