Ñò Tã·Jc@s˜ddklZddklZddkZddkZddklZd„Zd„Z ei i dƒZ de fd „ƒYZd „Zd „ZdS( iÿÿÿÿ(tisclass(tdedentN(tregistrycCs@|i}|idj o|i||ƒStiii||ƒS(N(tim_selftcallback_authorizationtNonettwt frameworkt middlewaretcallback_security_default(tcallbacktrequesttwidget((s2/usr/lib/python2.6/site-packages/tw/core/server.pytauthorize_callback s cCst|_t|_|S(N(tTruet is_callbackR t authorization(tmethod((s2/usr/lib/python2.6/site-packages/tw/core/server.pytserverside_callbacks  t/tServerSideCallbackMixincBs5eZededƒƒZdZd„Zd„ZRS(RsD The WSGI-app that is used to check if the current request is authorized to proceed to the actual callback. The wsgi-app has to have the signature (callback, `webob.Request`) -> `webob.Response` The callback is passed in to enable a different response based on the callback in question. cOsaxZ|iiiƒD]F\}}y |iWntj oqXtit||iƒƒqWdS(N( t __class__t__dict__t iteritemsRtAttributeErrorRtregister_callbacktgetattrt func_name(tselftargstkwargstnametvalue((s2/usr/lib/python2.6/site-packages/tw/core/server.pyt post_init0s  cCs>tiii}tii}di||tti|ƒgƒS(NR( RRRtprefixt script_nametjointresource_prefixRtpath_for_callback(RR R"R#((s2/usr/lib/python2.6/site-packages/tw/core/server.pyturl_for_callback:s N( t__name__t __module__tdictRtparamsRRR!R'(((s2/usr/lib/python2.6/site-packages/tw/core/server.pyRs   cCstiƒ}d|_|S(Ni“(twebobtResponsetstatus(R R tresponse((s2/usr/lib/python2.6/site-packages/tw/core/server.pyt always_denyAs  cCstiƒ}d|_|S(NiÈ(R,R-R.(R R R/((s2/usr/lib/python2.6/site-packages/tw/core/server.pyt always_allowGs  (tinspectRttextwrapRR,Rttw.core.resourcesRR RR"tlstripR%tobjectRR0R1(((s2/usr/lib/python2.6/site-packages/tw/core/server.pyts    $