Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
sdb
/
db
/
manager
/
File Content:
sdbmanager.pyo
� �Wc @ s d d l Z d d l Z d d l m 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 m Z m Z d d l m Z m Z d d l m Z m Z m Z d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t find_class( t Key( t Blob( t ListPropertyt MapProperty( t datetimet datet time( t SDBPersistenceErrort S3ResponseError( t mapt sixt long_types %Y-%m-%dT%H:%M:%SZt TimeDecodeErrorc B s e Z RS( ( t __name__t __module__( ( ( sB /usr/lib/python2.7/site-packages/boto/sdb/db/manager/sdbmanager.pyR $ s t SDBConverterc 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 d � Z d � Z d � Z d � Z e 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 d d l m } | | _ | | _ i | j | j f t 6| j | j f t 6| j | j f t 6| j | j f | j 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| j | j f t 6| _ t j! r| j"