Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
sdb
/
db
/
manager
/
File Content:
xmlmanager.pyo
� �Wc @ s� d d l Z d d l m Z m 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 m Z m Z m Z d Z d e f d � � YZ d e f d � � YZ d S( i����N( t find_classt Password( t Key( t Model( t sixt encodebytes( t datetime( t getDOMImplementationt parset parseStringt Nodes %Y-%m-%dT%H:%M:%SZt XMLConverterc B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Responsible for converting base Python types to format compatible with underlying database. For SimpleDB, that means everything needs to be converted to a string when stored in SimpleDB and from a string when retrieved. To convert a value, pass it to the encode or decode method. The encode method will take a Python native value and convert to DB format. The decode method will take a DB format value and convert it to Python native format. To find the appropriate method to call, the generic encode/decode methods will look for the type-specific method by searching for a method called "encode_<type name>" or "decode_<type name>". c C s� | | _ i | j | j f t 6| j | j f t 6| j | j f t 6| j | j f t 6| j | j f t 6| j | j f t 6| _ t j r� | j | j f | j t <n d S( N( t managert encode_boolt decode_boolt boolt encode_intt decode_intt intt encode_referencet decode_referenceR R t encode_passwordt decode_passwordR t encode_datetimet decode_datetimeR t type_mapR t PY2t encode_longt decode_longt long( t selfR ( ( sB /usr/lib/python2.7/site-packages/boto/sdb/db/manager/xmlmanager.pyt __init__+ s c C s@ d } x3 | j D]( } | j | j k r | | j 7} q q W| S( Nt ( t childNodest nodeTypet TEXT_NODEt data( R t parent_nodet valuet node( ( sB /usr/lib/python2.7/site-packages/boto/sdb/db/manager/xmlmanager.pyt get_text_value6 s c C s. | | j k r* | j | d } | | � S| S( Ni ( R ( R t item_typeR&