ó FRTc@sÀddlZddlmZmZddlmZddlmZddlm Z m Z ddl m Z ddl m Z mZmZmZdZd efd „ƒYZd efd „ƒYZdS( iÿÿÿÿN(t find_classtPassword(tKey(tModel(tsixt encodebytes(tdatetime(tgetDOMImplementationtparset parseStringtNodes%Y-%m-%dT%H:%M:%SZt XMLConvertercBs°eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„ZRS(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_" or "decode_". cCs­||_i|j|jft6|j|jft6|j|jft 6|j|jft 6|j |j ft 6|j|jft6|_tjr©|j|jf|jts "˜