mς γΈEc@sdZdklZlZlZdklZdkZdkZei dƒZ gZ d„Z dd„Zd„ZdklZeeƒ[dS( s§Five-specific directive handlers These directives are specific to Five and have no equivalents in Zope 3. $Id: fiveconfigure.py 18581 2005-10-14 16:54:25Z regebro $ (sclassImplementssclassImplementsOnlys implementedBy(s IPossibleSiteNtFivecCs_|tjotid|ƒnti|ƒt|d|iiƒt|d|i iƒdS(Ns Class %s already has a site hooktgetSiteManagertsetSiteManager( tclass_t_localsite_monkiestLOGtwarntappendtsetattrt site_classRtim_funcR(RR ((t?/data/zmath/zope/lib/python/Products/Five/site/metaconfigure.pyt classSiteHooks   cCs»tidt|ii|iiƒt|dt ƒ}|dj o:| o2t |_|id|fdtd||fƒnti|ƒp,|id|tfdtd|tfƒndS(NsjThe five:localsite directive is deprecated and will be removed in Zope 2.12. See Five/doc/localsite.txt .t_localsite_markert discriminatortcallabletargs(twarningst warn_explicittDeprecationWarningt_contexttinfotfiletlinetgetattrRtFalsetalreadyR tNonetTrueR tactionR t IPossibleSitet implementedBytclassImplements(RRR R((R tinstallSiteHook%s  cCswxptD]h}ti|ƒt|dƒt|dƒt|t|ƒtƒt|dtƒot|dƒqqWdS(NRRR ( RRtremovetdelattrtclassImplementsOnlyRRRR(R((R tuninstallSiteHooks?s   (s addCleanUp(t__doc__tzope.interfaceR R$Rtzope.app.component.interfacesRtloggingRt getLoggerRRR RR!R%tzope.testing.cleanupt addCleanUp( RR$R)RRRR,R!RR%R R ((R t?s