Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / webob / cachecontrol.pyc
Size: Mime:
ó
¨‹EYc@s•dZddlZdefd„ƒYZejdƒZejdƒZdefd„ƒYZd	efd
„ƒYZ	defd„ƒYZ
d
„ZdS(s%
Represents the Cache-Control header
iÿÿÿÿNt
UpdateDictcBseeZdZd	Zd	Zd„Zd„Zd„Zd„Z	d„Z
d	d„Zd„Zd„Z
RS(
s1
    Dict that has a callback on all updates
    cCsG|j}|dk	rC|j}|dkr6|f}n||ŒndS(s=
        Assign to new_dict.updated to track updates
        N(tupdatedtNonetupdated_args(tselfRtargs((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt_updateds		cCs!tj|||ƒ|jƒdS(N(tdictt__setitem__R(Rtkeytitem((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRscCstj||ƒ|jƒdS(N(Rt__delitem__R(RR	((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRscCstj|ƒ|jƒdS(N(RtclearR(R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR#s
cOs!tj|||Ž|jƒdS(N(RtupdateR(RRtkw((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR
'scCs2tj|||ƒ}||kr.|jƒn|S(N(Rt
setdefaultR(RR	tvaluetval((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR+s
cGs tj||Œ}|jƒ|S(N(RtpopR(RRtv((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR1s
cCstj|ƒ}|jƒ|S(N(RtpopitemR(RR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR6s
N(t__name__t
__module__t__doc__RRRRRRRR
RRR(((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRs						s8([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?s[^a-zA-Z0-9._-]texists_propertycBs8eZdZdd„Zdd„Zd„Zd„ZRS(sv
    Represents a property that either is listed in the Cache-Control
    header, or is not listed (has no value)
    cCs||_||_dS(N(tpropttype(RRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt__init__Fs	cCs |dkr|S|j|jkS(N(RRt
properties(RtobjR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt__get__JscCs|jdk	r@|j|jkr@td|j|jfƒ‚n|rYd|j|j<n"|j|jkr{|j|j=ndS(Ns0The property %s only applies to %s Cache-Control(RRtAttributeErrorRR(RRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt__set__OscCs|j|tƒdS(N(R tFalse(RR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt
__delete__\sN(RRRRRRR R"(((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRAs
	
tvalue_propertycBs>eZdZdddd„Zdd„Zd„Zd„ZRS(s—
    Represents a property that has a value in the Cache-Control header.

    When no value is actually given, the value of self.none is returned.
    cCs(||_||_||_||_dS(N(RtdefaulttnoneR(RRR$R%R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRfs			cCsW|dkr|S|j|jkrL|j|j}|dkrE|jS|Sn|jSdS(N(RRRR%R$(RRRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyRlscCs§|jdk	r@|j|jkr@td|j|jfƒ‚n||jkrt|j|jkr£|j|j=q£n/|tkr“d|j|j<n||j|j<dS(Ns0The property %s only applies to %s Cache-Control(RRRRR$RtTrue(RRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR xscCs&|j|jkr"|j|j=ndS(N(RR(RR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR"†sN(RRRRRRR R"(((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR#`s
	tCacheControlcBsOeZdZeZd„Zeddd„ƒZd„Z	e
dddddƒZe
d	ddƒZe
d
ddƒZe
dddƒZe
d
ddddƒZe
dddƒZe
dƒZe
dƒZe
dddƒZe
dddƒZe
dddƒZe
dddƒZeZe
dddƒZe
dddƒZd„Zd„ZRS(sÜ
    Represents the Cache-Control header.

    By giving a type of ``'request'`` or ``'response'`` you can
    control what attributes are allowed (some Cache-Control values
    only apply to requests or responses).
    cCs||_||_dS(N(RR(RRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR—s	c	CsÓ|r|jƒ}||_ni}xtj|ƒD]p}|jdƒ}|jdƒpj|jdƒpjd}|ršyt|ƒ}Wqštk
r–qšXn|||<q4W||d|ƒ}|rÏ|f|_n|S(s­
        Parse the header, returning a CacheControl object.

        The object is bound to the request or response object
        ``updates_to``, if that is given.
        iiiRN(	tupdate_dictRttoken_retfinditertgroupRtintt
ValueErrorR(	tclstheadert
updates_toRtpropstmatchtnameRR((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pytparse›s"$
cCsdt|ƒS(Ns<CacheControl %r>(tstr(R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt__repr__¶ss	max-staleR%t*Rtrequests	min-freshsonly-if-cachedtpublictresponsetprivatesno-cachesno-storesno-transformsmust-revalidatesproxy-revalidatesmax-ageiÿÿÿÿss-maxagesstale-while-revalidatesstale-if-errorcCs
t|jƒS(N(tserialize_cache_controlR(R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt__str__ÑscCs|j|jjƒd|jƒS(s0
        Returns a copy of this object.
        R(t	__class__RtcopyR(R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR?ÔsN(RRRRR(RtclassmethodRR4R6R#t	max_stalet	min_freshRtonly_if_cachedR9R;tno_cachetno_storetno_transformtmust_revalidatetproxy_revalidatetmax_agets_maxaget	s_max_agetstale_while_revalidatetstale_if_errorR=R?(((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR'‹s0			cCs¯t|tƒr|j}ng}x~t|jƒƒD]j\}}|dkr_|j|ƒq4nt|ƒ}tj	|ƒr‡d|}n|jd||fƒq4Wdj
|ƒS(Ns"%s"s%s=%ss, (t
isinstanceR'RtsortedtitemsRtappendR5t
need_quote_retsearchtjoin(RtpartsR3R((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyR<Ûs

(RtreRRtcompileR)RRtobjectRR#R'R<(((sG/home/tvault/.virtenv/lib/python2.7/site-packages/webob/cachecontrol.pyt<module>s6	+P