Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
sdb
/
File Content:
connection.pyc
� �Wc @ s� d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d e j f d � � YZ d e f d � � YZ d S( i����N( t handler( t AWSQueryConnection( t Domaint DomainMetaData( t Item( t SDBRegionInfo( t SDBResponseErrort ItemThreadc B s e Z d Z d � Z d � Z RS( sj A threaded :class:`Item <boto.sdb.item.Item>` retriever utility class. Retrieved :class:`Item <boto.sdb.item.Item>` objects are stored in the ``items`` instance variable after :py:meth:`run() <run>` is called. .. tip:: The item retrieval will not start until the :func:`run() <boto.sdb.connection.ItemThread.run>` method is called. c C sD t t | � j d | � | | _ t � | _ | | _ g | _ d S( s� :param str name: A thread name. Used for identification. :param str domain_name: The name of a SimpleDB :class:`Domain <boto.sdb.domain.Domain>` :type item_names: string or list of strings :param item_names: The name(s) of the items to retrieve from the specified :class:`Domain <boto.sdb.domain.Domain>`. :ivar list items: A list of items retrieved. Starts as empty list. t nameN( t superR t __init__t domain_namet SDBConnectiont connt item_namest items( t selfR R R ( ( s7 /usr/lib/python2.7/site-packages/boto/sdb/connection.pyR ( s c C s@ x9 | j D]. } | j j | j | � } | j j | � q Wd S( s� Start the threaded retrieval of items. Populates the ``items`` list with :class:`Item <boto.sdb.item.Item>` objects. N( R R t get_attributesR R t append( R t item_namet item( ( s7 /usr/lib/python2.7/site-packages/boto/sdb/connection.pyt run9 s ( t __name__t __module__t __doc__R R ( ( ( s7 /usr/lib/python2.7/site-packages/boto/sdb/connection.pyR s R c B sR e Z d Z d Z d Z d Z e Z d d e d d d d d d d d d d d e d d � Z d � Z d � Z e d d � Z d � Z e d � Z d � Z d � Z d � Z e d � Z e d � Z d d d � Z d � Z d � Z d � Z d � Z e d d � Z e d � Z d e d d � Z d d d � Z d � Z d d e d � Z RS( s� This class serves as a gateway to your SimpleDB region (defaults to us-east-1). Methods within allow access to SimpleDB :class:`Domain <boto.sdb.domain.Domain>` objects and their associated :class:`Item <boto.sdb.item.Item>` objects. .. tip:: While you may instantiate this class directly, it may be easier to go through :py:func:`boto.connect_sdb`. s us-east-1s sdb.us-east-1.amazonaws.coms 2009-04-15i t /c C s� | sW t j j d d | j � } x3 t j j � D] } | j | k r1 | } Pq1 q1 Wn | | _ t t | � j | | | | | | | | | j j | | | d | d | d | �d | _ | | _ t | _ d S( sZ For any keywords that aren't documented, refer to the parent class, :py:class:`boto.connection.AWSAuthConnection`. You can avoid having to worry about these keyword arguments by instantiating these objects via :py:func:`boto.connect_sdb`. :type region: :class:`boto.sdb.regioninfo.SDBRegionInfo` :keyword region: Explicitly specify a region. Defaults to ``us-east-1`` if not specified. You may also specify the region in your ``boto.cfg``: .. code-block:: cfg [SDB] region = eu-west-1 t SDBt regiont security_tokent validate_certst profile_nameg N( t botot configt gett DefaultRegionNamet sdbt regionsR R R R R t endpointt box_usaget converterR t item_cls( R t aws_access_key_idt aws_secret_access_keyt is_securet portt proxyt proxy_portt proxy_usert proxy_passt debugt https_connection_factoryR t pathR'