ó
gbc           @   s8   d  Z  d d l Z d d l m Z d „  Z d „  Z d S(   s,   
Created on 23 sept. 2010

@author: coissac
iÿÿÿÿN(   t   EcoTaxonomyDBc         C   s  |  j  d d d d d d d d d  d	 d
 ƒ|  j  d d d d d d d d d d	 d ƒ|  j  d d d d d d d d d d	 d ƒ|  j  d d d d d d d d d d	 d ƒ|  j  d d d d d d d d d d	 d ƒ|  j  d d d d d d d d d  d	 d ƒd  S(   Ns   --dbnamet   actiont   storet   destt   ecobarcodedbt   typet   strt   defaultt   helps+   Specify the name of the ecobarcode databases   --servert   dbservert	   localhosts4   Specify the adress of the ecobarcode database servers   --usert   dbusert   postgress+   Specify the user of the ecobarcode databases   --portt   dbporti8  s+   Specify the port of the ecobarcode databases   --passwdt   dbpasswdt    s-   Specify the passwd of the ecobarcode databases   --primert   primers)   Specify the primer used for amplification(   t
   add_optiont   None(   t   optionManager(    (    s:   lib/python2.7/site-packages/obitools/ecobarcode/options.pyt   addEcoBarcodeDBOption
   s<    c         C   s‹   |  j  d  k	 rW t j d |  j  d |  j d |  j d |  j d |  j ƒ } |  j  |  _ n d  } | d  k	 r | |  _  t	 | ƒ } n d  } | S(   Nt   databaset   usert   passwordt   hostt   port(
   R   R   t   psycopg2t   connectR   R   R	   R   t   dbnameR    (   t   optionst
   connectiont   taxonomy(    (    s:   lib/python2.7/site-packages/obitools/ecobarcode/options.pyt   ecobarcodeDatabaseConnection0   s    				(   t   __doc__R   t   obitools.ecobarcode.taxonomyR    R   R    (    (    (    s:   lib/python2.7/site-packages/obitools/ecobarcode/options.pyt   <module>   s   	&