*ë
9c       sk     d  Z    d k Z  d k Z  d k l Z  e e e e e e d d  Z + h  d d  Z d S(   sŊ   SCOP.py

Provides code to access SCOP over the WWW.  The main SCOP web page
is available at:
http://scop.mrc-lmb.cam.ac.uk/scop/

Functions:
search       Access the main CGI script.
_open

N(   s   Files-   http://scop.mrc-lmb.cam.ac.uk/scop/search.cgic    sē    ! " h  |  d <| d <| d <| d <| d <| d <} $ h  }
 % xB | i   d % r/ }	 & | |	 t
 j	 o ' | |	 |
 |	 <n q` W( |
 i |  ) t | |
  Sd S(	   ss  search(pdb=None, key=None, sid=None, disp=None, dir=None, loc=None,
    cgi='http://scop.mrc-lmb.cam.ac.uk/scop/search.cgi', **keywds)

    Access search.cgi and return a handle to the results.  See the
    online help file for an explanation of the parameters:
    http://scop.mrc-lmb.cam.ac.uk/scop/help.html

    Raises an IOError if there's a network error.
    
    s   pdbs   keys   sids   disps   dirs   loci    N(   s   pdbs   keys   sids   disps   dirs   locs   paramss	   variabless   keyss   ks   Nones   updates   keywdss   _opens   cgi(   s   pdbs   keys   sids   disps   dirs   locs   cgis   keywdss   paramss   ks	   variables(    (    s%   /mit/seven/lib/python/Bio/WWW/SCOP.pys   search s   ?	 	i   c    s   + 3 5 t  i |  } 6 | o@ 7 |  } 8 | o 9 d |  | f } n : t  i |  } n < t  i |  |  } ? t	 i
 |  } A | Sd S(   sN  _open(cgi, params={}, get=1) -> UndoHandle

    Open a handle to SCOP.  cgi is the URL for the cgi script to access.
    params is a dictionary with the options to pass to it.  get is a boolean
    that describes whether a GET should be used.  Does some
    simple error checking, and will raise an IOError if it encounters one.

    s   %s?%sN(   s   urllibs	   urlencodes   paramss   optionss   gets   cgis   fullcgis   urlopens   handles   Files
   UndoHandles   uhandle(   s   cgis   paramss   gets   optionss   uhandles   handles   fullcgi(    (    s%   /mit/seven/lib/python/Bio/WWW/SCOP.pys   _open+ s   
	
(   s   __doc__s   strings   urllibs   Bios   Files   Nones   searchs   _open(   s   _opens   Files   strings   urllibs   search(    (    s%   /mit/seven/lib/python/Bio/WWW/SCOP.pys   ? s
   !