mς γΈEc@s dZdklZdklZdklZdklZl Z defd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d efd „ƒYZ ee ƒd efd„ƒYZeeƒdefd„ƒYZeeƒdd„Zdd„Zdd„ZdS(sgSimple content class(es) for browser tests $Id: simplecontent.py 67728 2006-04-28 17:57:47Z regebro $ (s SimpleItem(sInitializeClass(sClassSecurityInfo(s Interfaces implementstISimpleContentcBstZRS(N(t__name__t __module__(((tH/data/zmath/zope/lib/python/Products/Five/tests/testing/simplecontent.pyRstICallableSimpleContentcBstZRS(N(RR(((RRstIIndexSimpleContentcBstZRS(N(RR(((RRst SimpleContentcBsVtZeeƒdZeƒZd„Zeidƒd„Z eidƒd„Z RS(NsFive SimpleContentcCs||_||_dS(N(tidtselfttitle(RRR ((Rt__init__'s tmymethodcCsdS(Ns Hello world((R((RR ,stdirectcCsdS(sIShould be able to traverse directly to this as there is no view. sDirect traversal workedN((R((RR 0s( RRt implementsRt meta_typetClassSecurityInfotsecurityR t declarePublicR R (((RR!s      tCallableSimpleContentcBs'tZdZeeƒdZd„ZRS(sA Viewable piece of contentsFive CallableSimpleContentcOsdS(t sDefault __call__ calledN((Rtargstkw((Rt__call__=s(RRt__doc__R RRR(((RR7s  tIndexSimpleContentcBs'tZdZeeƒdZd„ZRS(sA Viewable piece of contentsFive IndexSimpleContentcOsdS(RsDefault index_html calledN((RRR((Rt index_htmlIs(RRRR RRR(((RRCs  cCs|i|t||ƒƒdS(sAdd the simple content.N(Rt _setObjectRRR (RRR tREQUEST((Rtmanage_addSimpleContentOscCs|i|t||ƒƒdS(s Add the viewable simple content.N(RRRRR (RRR R((Rtmanage_addCallableSimpleContentSscCs|i|t||ƒƒdS(s Add the viewable simple content.N(RRRRR (RRR R((Rtmanage_addIndexSimpleContentWsN(RtOFS.SimpleItemt SimpleItemtGlobalstInitializeClasst AccessControlRtzope.interfacet InterfaceR RRRRRRtNoneRRR(R RRRRRRR"R RR%RRR((Rt?s