mò ‘ã¸Ec@sïdZdkZdkZdkZdkZdkZdklZdk l Z dk Z dk Z dk lZlZdklZdklZdklZdklZd klZd klZd klZd klZd k l!Z!ei"i#ƒi$Z$ei%dƒZ&d„Z'd„Z(dd„Z*dd„Z+d„Z,d„Z-d„Z.d„Z/dd„Z0dedd„Z1ga2ga3d„Z4dde5d„Z6dd„Z7dd„Z8dd„Z9d„Z:d „Z;d!k<l=Z=e=e;ƒ[=dS("s¦Five-specific directive handlers These directives are specific to Five and have no equivalents in Zope 3. $Id: fiveconfigure.py 71269 2006-11-22 13:37:06Z yuppie $ N(sinitializeProduct(sProductContext(sclassImplementss implementedBy(s getUtility(sprovideInterface(s xmlconfig(sConfigurationError(sIDefaultBrowserLayer(s IPermission(s isFiveMethod(sfromZ2Interface(spagetFivecCswdk}dkl}g}xTt|ƒD]F}t||ƒ}t||ƒo!t |dƒo|i |ƒq)q)W|S(N(s ModuleTypet__file__( tProductsttypest ModuleTypetproductstdirtnametgetattrtproductt isinstancethasattrtappend(R RRRR((t:/data/zmath/zope/lib/python/Products/Five/fiveconfigure.pyt findProducts.s    cCs,to‚ntid|idtƒdS(NsCould not import Product %stexc_info(t debug_modetLOGterrorR t__name__tTrue(R ((R thandleBrokenProduct8scCs˜|djo d}nxztƒD]o}tiitii|iƒ|ƒ}tii |ƒo2yt i ||d|ƒWqt|ƒqXq!q!WdS(Nsconfigure.zcmltpackage(tfiletNoneRR tostpathtjointdirnameRtzcmltisfilet xmlconfigtincludet_contextR(R!RR R((R t loadProductsBs   $cCs˜|djo d}nxztƒD]o}tiitii|iƒ|ƒ}tii |ƒo2yt i ||d|ƒWqt|ƒqXq!q!WdS(Nsoverrides.zcmlR(RRRR RRRRRRRRtincludeOverridesR!R(R!RR R((R tloadProductsOverridesPs   $c Csjxc|D][}|idddtd||fƒ|idddtd|id|iƒ|fƒqWdS(Nt discriminatortcallabletargst.( t interfaceR!tactionRtclassImplementstclass_tprovideInterfacet __module__tgetName(R!R,R)((R t implements^s  cCstidtdƒdS(NsTThe five:traversable statement is no longer needed and will be removed in Zope 2.12.i(twarningstwarntDeprecationWarning(R!R,((R t traversablems cCs7tidtdƒdkl}t|||fƒdS(NsÍThe five:defaultViewable statement is no longer needed and will be removed in Zope 2.12. If you rely on it to make 'index.html' the default view, replace it with i(sIBrowserDefault(R1R2R3tProducts.Five.bbbtIBrowserDefaultR0R!R,(R!R,R6((R tdefaultViewabless   cCsTt|ƒ}|dj o||idt__doc__RRJR1tloggingt App.configtAppt App.ProductRltApp.ProductContextRoRRjtzope.interfaceR+R\tzope.componentRXtzope.component.interfaceR-tzope.configurationRtzope.configuration.exceptionsRIt!zope.publisher.interfaces.browsertIDefaultBrowserLayertzope.security.interfacesRYt Products.FiveRytProducts.Five.bridgeR8t#Products.Five.browser.metaconfigureRNtconfigtgetConfigurationRt getLoggerRRRRR"R$R0R4R7R=R>RORcRdReRRfRuRvR€RRƒtzope.testing.cleanupt addCleanUp((R>RRuRoRvRXRR8RƒRORRR\RRYR"R$R1R-RJRfR™RRR=R+ReR0RjR…R‡RRIR4R7R€RRNRlRy((R t?sV