parameters: (self)
docstring: This method will fetch the url peridodically and put the result in self._result
          It whould be called in some thread
docstring_summary: This method will fetch the url peridodically and put the result in self._result
          It whould be called in some thread
docstring_tokens: This method will fetch the url peridodically and put the result in self . _result It whould be called in some thread
function: def _fetch(self):
          """ This method will fetch the url peridodically and put the result in self._result
          It whould be called in some thread
          """
          while not self._event.is_set():
              p =  self.get_parameters()
              if "urlpath" in p:
                  try:
                      u = urlopen(p["urlpath"])
                  except:
                      self._log.warn("urlopen : Exception occured : {0}".format(sys.exc_info()[0]))
                      self._result = None
                  else:
                      self._result = "\n".join(u.readlines())
                      self.call_trigger()
              if "interval" in p:
                  self._event.wait(int(p["interval"]))
              else:
                  self._event.wait(10)
function_tokens: def _fetch ( self ) : while not self . _event . is_set ( ) : p = self . get_parameters ( ) if "urlpath" in p : try : u = urlopen ( p [ "urlpath" ] ) except : self . _log . warn ( "urlopen : Exception occured : {0}" . format ( sys . exc_info ( ) [ 0 ] ) ) self . _result = None else : self . _result = "\n" . join ( u . readlines ( ) ) self . call_trigger ( ) if "interval" in p : self . _event . wait ( int ( p [ "interval" ] ) ) else : self . _event . wait ( 10 )