Ñò *qRc @sØddkZy2ddklZeddƒZeddƒZWndZdZnXddklZddkl Z l Z ddk l Z l Z lZd efd „ƒYZd efd „ƒYZd „Zd„ZdS(iÿÿÿÿN(tStackedObjectProxytnamesBeaker Sessions Cache Manager(t CacheManager(tSessiont SessionObject(tcoerce_cache_paramstcoerce_session_paramstparse_cache_config_optionstCacheMiddlewarecBs&eZeZddd„Zd„ZRS(s beaker.cachecKsŸ||_|ph}h|_|iit|ƒƒ|iit|dtƒƒ|i o|o ||_n|ii|ƒt|i|_||_dS(sÌInitialize the Cache Middleware The Cache middleware will make a Cache instance available every request under the ``environ['beaker.cache']`` key by default. The location in environ can be changed by setting ``environ_key``. ``config`` dict All settings should be prefixed by 'cache.'. This method of passing variables is intended for Paste and other setups that accumulate multiple component settings in a single dictionary. If config contains *no cache. prefixed args*, then *all* of the config options will be used to intialize the Cache objects. ``environ_key`` Location where the Cache instance will keyed in the WSGI environ ``**kwargs`` All keyword arguments are assumed to be cache settings and will override any settings found in ``config`` tinclude_defaultsN(tapptoptionstupdateRtFalseRt cache_managert environ_key(tselfR tconfigRtkwargs((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyt__init__s     cCs`|idƒo0|dio|di|i|iƒq@n|i||i<|i||ƒS(Nspaste.registry(tgettreglisttregistertcacheRRR (Rtenvirontstart_response((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyt__call__Cs N(t__name__t __module__t beaker_cacheRtNoneRR(((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyRs/tSessionMiddlewarecBs/eZeZddd„Zd„Zd„ZRS(sbeaker.sessioncKsK|ph}tdtddddddddddddƒ|_x³||gD]¥}xœ|iƒD]Ž\}}|id ƒo||i|d ((RR=s5/usr/lib/python2.6/site-packages/beaker/middleware.pyRˆs  cCsthdt|iS(Nt use_cookies(RR R (R((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyR?šsN(RRtbeaker_sessionR=RRRR?(((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyRLs9 c s‡‡fd†}|S(Ncst|ˆˆS(N(R(R (t global_confR(s5/usr/lib/python2.6/site-packages/beaker/middleware.pytfilterŸs((RBRRC((RBRs5/usr/lib/python2.6/site-packages/beaker/middleware.pytsession_filter_factoryžscKst|||S(N(R(R RBR((s5/usr/lib/python2.6/site-packages/beaker/middleware.pytsession_filter_app_factory¤s(R,tpaste.registryRRARRt beaker.cacheRtbeaker.sessionRRt beaker.utilRRRtobjectRRRDRE(((s5/usr/lib/python2.6/site-packages/beaker/middleware.pyts  ;R