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

def Bio::EUtils::ThinClient::ThinClient::epost (   self,
  dbids,
  webenv = None 
)

dbids, webenv = None

Create a new collection in the history containing the given
list of identifiers for a database.

'dbids' -- a DBIds, which contains the database name and
     a list of identifiers in that database
'webenv' -- if this string is given, add the collection
  to an existing history. (WARNING: the history disappers
  after about an hour of non-use.)

You will need to parse the output XML to get the new QueryKey
and WebEnv fields.  NOTE: The order of the IDs on the server
is NOT NECESSARILY the same as the upload order.

Returns an input stream from an HTTP request.  The stream
contents are in XML.

Definition at line 710 of file ThinClient.py.

               :
        """dbids, webenv = None

        Create a new collection in the history containing the given
        list of identifiers for a database.

        'dbids' -- a DBIds, which contains the database name and
             a list of identifiers in that database
        'webenv' -- if this string is given, add the collection
                  to an existing history. (WARNING: the history disappers
                  after about an hour of non-use.)

        You will need to parse the output XML to get the new QueryKey
        and WebEnv fields.  NOTE: The order of the IDs on the server
        is NOT NECESSARILY the same as the upload order.

        Returns an input stream from an HTTP request.  The stream
        contents are in XML.
        """
        id_string = _dbids_to_id_string(dbids)

        # Looks like it will accept *any* ids.  Wonder what that means.
        program = "epost.fcgi"
        query = {"id": id_string,
                 "db": dbids.db,
                 "WebEnv": webenv,
                 }
        q = self._fixup_query(query)

        # Need to use a POST since the data set can be *very* long;
        # even too long for GET.
        if DUMP_URL:
            print "Opening with POST:", self.baseurl + program + "?" + q
        if DUMP_RESULT:
            print " ================== Results ============= "
            s = self.opener.open(self.baseurl + program, q).read()
            print s
            print " ================== Finished ============ "
            return cStringIO.StringIO(s)
        return self.opener.open(self.baseurl + program, q)
        

    def esummary_using_history(self,


Generated by  Doxygen 1.6.0   Back to index