mς ‘γΈEc@sydZdkZdkZdklZeadad„Z de d„Z d„Z d„Z dklZee ƒ[dS(s@ZCML machinery $Id: zcml.py 68410 2006-05-31 15:12:29Z rocky $ N(s xmlconfigcCsΩtodSntatiitddƒ}tiitdddƒ}tiitdddƒ}tii |ƒo |}nGtii |ƒo |}n*|}d|||f}t i|tƒti |ƒadS(sYLoad a Five/Zope site by finding and loading the appropriate site configuration file.Ntetcs site.zcmltskels\site.zcml should now live at '%s', for sites upgraded from Zope 2.9 please copy '%s' to '%s'(t _initializedtTruetostpathtjoint INSTANCE_HOMEt site_zcmltskel_site_zcmlt ZOPE_HOMEtskel_site2_zcmltexiststfiletmsgtwarningstwarntDeprecationWarningt xmlconfigt_context(R RR R R((t1/data/zmath/zope/lib/python/Products/Five/zcml.pyt load_sites"  cCsti||td|ƒadS(sOLoad an additional ZCML file into the context. Use with extreme care. texecuteN(RR tpackageRR(R RR((Rt load_config8scCsti|tƒadS(sILoad a snipped of ZCML into the context. Use with extreme care. N(RtstringtsR(R((Rt load_string@scCs dadS(N(tNoneR(((RtcleanUpJs(s addCleanUp(t__doc__RRtzope.configurationRtFalseRRRRRRRRtzope.testing.cleanupt addCleanUp(RRR"RRRRR((Rt?s