Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
cloudfront
/
File Content:
invalidation.pyo
� �vWc @ sr d d l Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t urllib( t ResultSett InvalidationBatchc B s} e Z d Z d d d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� A simple invalidation request. :see: http://docs.amazonwebservices.com/AmazonCloudFront/2010-08-01/APIReference/index.html?InvalidationBatchDatatype.html t c C sa | p g | _ | | _ | | _ | j sB t t j � � | _ n | rT | | _ n | | _ d S( s_ Create a new invalidation request: :paths: An array of paths to invalidate N( t pathst distributiont caller_referencet strt uuidt uuid4t connection( t selfR R R R ( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt __init__! s c C s d | j S( Ns <InvalidationBatch: %s>( t id( R ( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt __repr__2 s c C s | j j | � S( s- Add another path to this invalidation request( R t append( R t path( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt add5 s c C s | j j | � S( s, Remove a path from this invalidation request( R t remove( R R ( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyR 9 s c C s t | j � S( N( t iterR ( R ( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt __iter__= s c C s | j | S( N( R ( R t i( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt __getitem__@ s c C s | | j | <d S( N( R ( R t kt v( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt __setitem__C s c C s3 | d d k s d | } n t j j | d d �S( sw Escape a path, make sure it begins with a slash and contains no invalid characters. Retain literal wildcard characters.i t /s /%st safes /*( R t parset quote( R t p( ( s@ /usr/lib/python2.7/site-packages/boto/cloudfront/invalidation.pyt escapeF s c C sd d } | d | j j 7} x( | j D] } | d | j | � 7} q$ W| d | j 7} | d 7} | S( s Get this batch as XMLs'