ó FRTc@sFddlmZddlmZddlZdefd„ƒYZdS(iÿÿÿÿ(tConfig(tServiceMessageNt ServiceDefcBsMeZddd„Zdd„Zd„Zdd„Zed„Zd„Z RS(cCsitt|ƒj|ƒ||_||_tj|ddƒ}|r\|jdƒd|_n d|_dS(NtPyamitscriptst.iÿÿÿÿ( tsuperRt__init__taws_access_key_idtaws_secret_access_keyRtgettsplittnametNone(tselft config_fileRR tscript((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pyRs  cCstt|ƒj|j||ƒS(N(RRR R (RR tdefault((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pyR 'scCstt|ƒj|j|ƒS(N(RRt has_optionR (Rtoption((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pyR*sicCsHy.tt|ƒj|j|ƒ}t|ƒ}Wnt|ƒ}nX|S(N(RRR R tint(RRRtval((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pytgetint-s cCsWyCtt|ƒj|j|ƒ}|jƒdkr<t}nt}Wn |}nX|S(Nttrue(RRR R tlowertTruetFalse(RRRR((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pytgetbool5s   cCs·|j|ƒ}|sdS|jdƒdkrYtjd|ƒ}|r³|jtƒq³nZ|jdƒdkrƒtjd|ƒ}n0|jdƒdkr­tjd|ƒ}nd}|S( s Returns the AWS object associated with a given option. The heuristics used are a bit lame. If the option name contains the word 'bucket' it is assumed to be an S3 bucket, if the name contains the word 'queue' it is assumed to be an SQS queue and if it contains the word 'domain' it is assumed to be a SimpleDB domain. If the option name specified does not exist in the config file or if the AWS object cannot be retrieved this returns None. tqueueitsqstbucketts3tdomaintsdbN(R R tfindtbototlookuptset_message_classR(RR Rtobj((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pytget_obj@s N( t__name__t __module__R RR RRRRR'(((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pyRs     (tboto.pyami.configRtboto.services.messageRR#R(((sE/opt/freeware/lib/python2.7/site-packages/boto/services/servicedef.pyts