parameters: (self, action)
docstring: Add Nodes Parsing a Mempad File
docstring_summary: Add Nodes Parsing a Mempad File
docstring_tokens: Add Nodes Parsing a Mempad File
function: def nodes_add_from_mempad_file(self, action):
          """Add Nodes Parsing a Mempad File"""
          filepath = support.dialog_file_select(filter_pattern=["*.lst"],
              filter_name=_("Mempad Document"),
              curr_folder=self.pick_dir_import,
              parent=self.window)
          if not filepath: return
          self.pick_dir_import = os.path.dirname(filepath)
          try:
              file_descriptor = open(filepath, 'r')
              mempad = imports.MempadHandler()
              cherrytree_string = mempad.get_cherrytree_xml(file_descriptor)
              file_descriptor.close()
          except:
              support.dialog_error("Error importing the file %s" % filepath, self.window)
              raise
              return
          self.nodes_add_from_cherrytree_data(cherrytree_string)
function_tokens: def nodes_add_from_mempad_file ( self , action ) : filepath = support . dialog_file_select ( filter_pattern = [ "*.lst" ] , filter_name = _ ( "Mempad Document" ) , curr_folder = self . pick_dir_import , parent = self . window ) if not filepath : return self . pick_dir_import = os . path . dirname ( filepath ) try : file_descriptor = open ( filepath , 'r' ) mempad = imports . MempadHandler ( ) cherrytree_string = mempad . get_cherrytree_xml ( file_descriptor ) file_descriptor . close ( ) except : support . dialog_error ( "Error importing the file %s" % filepath , self . window ) raise return self . nodes_add_from_cherrytree_data ( cherrytree_string )