Package iceprod :: Package client :: Module commands :: Class addgrid
[hide private]
[frames] | no frames]

Class addgrid

source code

object --+    
         |    
   Command --+
             |
            addgrid

Command: addgrid <grid> <dataset_id>

Add a grid to a dataset
Can add multiple grids to multiple datasets at once.
 
Arguments:
  <grid>        Specify the grid, either by name or id
  <dataset_id>  Specify dataset to act on
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the grid or dataset is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Add GLOW to 1234
     addgrid GLOW 1234
        or
     addgrid 1 1234
  
  Add GLOW to 1234 and glow-test to 4321
     addgrid GLOW 1234 glow-test 4321
     
  Add GLOW and glow-test to 1234 and 4321
     addgrid GLOW,glow-test 1234,4321
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_add(self, shell, grid, dataset) source code
 
CheckArgs(self, args) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  shortdoc = 'addgrid <grid> <dataset_id> : Add a grid to a data...
hash(x)
  numArgs = 2
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute

CheckArgs(self, args)

source code 
Overrides: Command.CheckArgs

Class Variable Details [hide private]

shortdoc

hash(x)

Value:
'addgrid <grid> <dataset_id> : Add a grid to a dataset.'