mς γΈEc@sήdZdkZdklZdklZdklZdkl Z l Z de fd„ƒYZ dei fd „ƒYZ ee ƒd efd „ƒYZeeƒd efd „ƒYZeeƒdd„Zdd„ZdS(sRTest content objects. $Id: fancycontent.py 66205 2006-03-26 21:59:31Z philikon $ N(sClassSecurityInfo(s SimpleItem(sInitializeClass(s Interfaces implementst IFancyContentcBstZRS(N(t__name__t __module__(((tG/data/zmath/zope/lib/python/Products/Five/tests/testing/fancycontent.pyRstFancyAttributecBs6tZdZd„ZeƒZeidƒd„ZRS(sDoc test fanaticscCs ||_dS(N(tnametself(RR((Rt__init__st index_htmlcCs|iS(sDoc test fanaticsN(RR(RtREQUEST((RR%s(RRt__doc__RtClassSecurityInfotsecurityt declarePublicR(((RRs    t FancyContentcBs9tZdZeeƒdZeƒZd„Zd„Z RS(sA class that already comes with its own __bobo_traverse__ handler. Quite fancy indeed. It also comes with its own get_size method. s Fancy ContentcCsj|djot|ƒ‚n;|djot|ƒ‚n|djot|ƒ‚nt|ƒi|ƒS(Nsraise-attributeerrorsraise-keyerrorsraise-valueerror(RtAttributeErrortKeyErrort ValueErrorRt__of__R(RR R((Rt__bobo_traverse__6s   cCsdS(Ni+((R((Rtget_size?s( RRR t implementsRt meta_typeR R RR(((RR+s    tNonTraversableFancyContentcBs9tZdZeeƒdZeƒZd„Zd„Z RS(sA class that already comes with its own __bobo_traverse__ handler. Quite fancy indeed. It also comes with its own get_size method. s Fancy ContentcCsj|djot|ƒ‚n;|djot|ƒ‚n|djot|ƒ‚nt|ƒi|ƒS(Nsraise-attributeerrorsraise-keyerrorsraise-valueerror(RRRRRRR(RR R((RRPs   cCsdS(Ni+((R((RRYs( RRR RRRR R RR(((RREs    cCs|i|t|ƒƒ}dS(sAdd the fancy fancy content.tN(Rt _setObjecttidR(RRR ((Rtmanage_addFancyContent^scCs|i|t|ƒƒ}dS(sAdd the fancy fancy content.RN(RRRR(RRR ((Rt$manage_addNonTraversableFancyContentcs(R t Acquisitiont AccessControlR tOFS.SimpleItemt SimpleItemtGlobalstInitializeClasstzope.interfacet InterfaceRRtExplicitRRRtNoneRR( RRRR R"R RRRR$RR((Rt?s