CMS 3D CMS Logo

python_dbs::DDOptionParser Class Reference

List of all members.

Public Member Functions

def __init__
def getOpt

Public Attributes

 parser


Detailed Description

   DDOptionParser is main class to parse options for L{DDHelper} and L{DDServer}.

Definition at line 15 of file python_dbs.py.


Member Function Documentation

def python_dbs::DDOptionParser::__init__ (   self  ) 

Definition at line 19 of file python_dbs.py.

00019                     :
00020     self.parser = OptionParser()
00021     self.parser.add_option("--dbsInst",action="store", type="string", dest="dbsInst",
00022          help="specify DBS instance to use, e.g. --dbsInst=cms_dbs_prod_global")
00023     self.parser.add_option("-v","--verbose",action="store", type="int", default=0, dest="verbose",
00024          help="specify verbosity level, 0-none, 1-info, 2-debug")
00025     self.parser.add_option("--input",action="store", type="string", default=False, dest="input",
00026          help="specify input for your request.")
00027     self.parser.add_option("--xml",action="store_true",dest="xml",
00028          help="request output in XML format")
00029     self.parser.add_option("--host",action="store",type="string",dest="host",
00030          help="specify a host name of Data Discovery service, e.g. httpss://cmsweb.cern.ch/dbs_discovery/")
00031     self.parser.add_option("--details",action="store_true",dest="details",
00032          help="show detailed output")
00033     self.parser.add_option("--case",action="store",default="on",type="string",dest="case",
00034          help="specify if your input is case sensitive of not, default is on.")
00035     self.parser.add_option("--page",action="store",type="string",default="0",dest="page",
00036          help="specify output page, should come together with --limit and --details")
00037     self.parser.add_option("--limit",action="store",type="string",default="10",dest="limit",
00038          help="specify a limit on output, e.g. 50 results, should come together with --page and --details")
  def getOpt(self):

def python_dbs::DDOptionParser::getOpt (   self  ) 

Returns parse list of options

Definition at line 39 of file python_dbs.py.

00039                   :
00040     """
00041         Returns parse list of options
00042     """
00043     return self.parser.parse_args()
00044 
def sendMessage(host,port,dbsInst,userInput,page,limit,xml=0,case='on',details=0,debug=0):


Member Data Documentation

python_dbs::DDOptionParser::parser

Definition at line 20 of file python_dbs.py.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:50:49 2009 for CMSSW by  doxygen 1.5.4