parameters: (self, verbose=False)
return_statement: return afnetwork.sendServer(json.dumps(obj), verbose)
docstring: Missing DocString
  
          :param verbose:
          :return:
docstring_summary: Missing DocString
docstring_tokens: Missing DocString
function: def send(self, verbose=False):
          """Missing DocString
  
          :param verbose:
          :return:
          """
          if len(self.blocks) == 0:
              print('Error: Job has no blocks')
  
          self.fillBlocks()
  
          # Set folder if empty:
          if "folders" not in self.data:
              self.data["folders"] = dict()
              # Try to set output folder from files:
              for block in self.blocks:
                  if "files" in block.data and len(block.data["files"]):
                      self.data["folders"][block.data['name']] = os.path.dirname(block.data["files"][0])
  
          # Set branch if empty:
          if 'branch' not in self.data:
              if 'output' in self.data['folders']:
                  self.data['branch'] = self.data['folders']['output']
              elif 'input' in self.data['folders']:
                  self.data['branch'] = self.data['folders']['input']
              else:
                  self.data['branch'] = self.blocks[0].data['working_directory']
  
          obj = {"job": self.data}
          # print(json.dumps( obj))
  
          return afnetwork.sendServer(json.dumps(obj), verbose)
function_tokens: def send ( self , verbose = False ) : if len ( self . blocks ) == 0 : print ( 'Error: Job has no blocks' ) self . fillBlocks ( ) # Set folder if empty: if "folders" not in self . data : self . data [ "folders" ] = dict ( ) # Try to set output folder from files: for block in self . blocks : if "files" in block . data and len ( block . data [ "files" ] ) : self . data [ "folders" ] [ block . data [ 'name' ] ] = os . path . dirname ( block . data [ "files" ] [ 0 ] ) # Set branch if empty: if 'branch' not in self . data : if 'output' in self . data [ 'folders' ] : self . data [ 'branch' ] = self . data [ 'folders' ] [ 'output' ] elif 'input' in self . data [ 'folders' ] : self . data [ 'branch' ] = self . data [ 'folders' ] [ 'input' ] else : self . data [ 'branch' ] = self . blocks [ 0 ] . data [ 'working_directory' ] obj = { "job" : self . data } # print(json.dumps( obj)) return afnetwork . sendServer ( json . dumps ( obj ) , verbose )