Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::config::DBRegistry::CGIDB::__init__ (   self,
  name,
  cgi,
  url = None,
  key = None,
  params = None,
  abbrev = None,
  doc = None,
  delay = None,
  timeout = None,
  getmethod = 1,
  failure_cases = None 
)

CGIDB(name, cgi[, url][, key][, params][, abbrev][, doc]
[, delay][, timeout][, getmethod][, failure_cases])

name is the name of the object, abbrev is an abbreviation for
the name, and doc is some documentation describing the object.

cgi is the URL for the cgi script.  url points to the
human-readable URL of the form.

params is a list of (key, value) tuples indicating the
parameters that should be passed to the CGI script.  key is
the name of the parameter for the CGI script whose value is
the ID of the object to retrieve.

getmethod is a boolean describing whether a GET or POST should
be used.  By default, GET is used.

failure_cases is a list of (Martel Expression, error message)
describing patterns of errors in the text returned by the
script.

Definition at line 267 of file DBRegistry.py.

                                                 :
        """CGIDB(name, cgi[, url][, key][, params][, abbrev][, doc]
        [, delay][, timeout][, getmethod][, failure_cases])

        name is the name of the object, abbrev is an abbreviation for
        the name, and doc is some documentation describing the object.
        
        cgi is the URL for the cgi script.  url points to the
        human-readable URL of the form.

        params is a list of (key, value) tuples indicating the
        parameters that should be passed to the CGI script.  key is
        the name of the parameter for the CGI script whose value is
        the ID of the object to retrieve.

        getmethod is a boolean describing whether a GET or POST should
        be used.  By default, GET is used.

        failure_cases is a list of (Martel Expression, error message)
        describing patterns of errors in the text returned by the
        script.

        """
        import _support
        DBObject.__init__(self, name=name, abbrev=abbrev,
                          doc=doc, delay=delay, timeout=timeout)
        self.cgi = cgi
        self.key = key or ''
        self.params = params or []
        self.url = url
        self.getmethod = getmethod
        self.failure_cases = []
        for exp, message in failure_cases or []:
            exp = _support.make_cached_expression(exp)
            self.failure_cases.append((exp, message))

    def _normalize_params(self, key):


Generated by  Doxygen 1.6.0   Back to index