mς ‘γΈEc@s8dZdklZdklZdklZdklZl Z dk l Z l Z l Z lZlZdklZdklZedƒZd e fd „ƒYZd efd „ƒYZeeƒdd „Zde fd„ƒYZdefd„ƒYZdfd„ƒYZeeƒdd„Zd„Zd„ZdS(sNDemo schema content $Id: schemacontent.py 67845 2006-05-02 18:30:57Z alecm $ (s SimpleItem(sInitializeClass(sMessageFactory(s implementss Interface(sTextLinesTextsObjectsIntsList(sCustomWidgetFactory(s ObjectWidgettformtestt IFieldContentc BsΉtZededƒdedƒdddeƒZededƒded ƒdddeƒZe ded ƒdd deƒZ e ded ƒd ededƒƒdgdeƒZ RS(NttitleuTitlet descriptionu!A short description of the event.tdefaultutrequiredu Descriptionu A long description of the event.u Some numberiu Some Listt value_typeu Some item( t__name__t __module__tTextLinet_tTrueRtTexttFalseRtIntt somenumbertListtsomelist(((tE/data/zmath/zope/lib/python/Products/Five/form/tests/schemacontent.pyRs     t FieldContentcBs'tZdZeeƒdZd„ZRS(s'A Viewable piece of content with fieldssFive FieldContentcCs||_||_dS(N(tidtselfR(RRR((Rt__init__?s (RRt__doc__t implementsRt meta_typeR(((RR:s  cCs|i|t||ƒƒ}dS(sAdd the field contenttN(Rt _setObjectRRR(RRRtREQUEST((Rtmanage_addFieldContentEstIComplexSchemaContentc BsJtZedddddddeƒZeddd edd deƒZRS( NRu Fish typeRuThe type of fishRu;It was a lovely little fish. And it went wherever I did go.RuFishtschemauThe fishy object( RRR R tfishtypetObjectRR tfish(((RRJs   tComplexSchemaContentcBs!tZeeƒdZd„ZRS(NsFive ComplexSchemaContentcCs4||_tddƒ|_d|i_d|_dS(NR"RRs Lost fishy(RRRR"RR (RR((RR\s  (RRRRRR(((RR#Xs tComplexSchemaViewcBstZdZeeeƒZRS(sNeeds a docstring(RRRtCustomWidgetFactoryt ObjectWidgetRt fish_widget(((RR$bs cCs|i|t|ƒƒ}dS(sAdd the complex schema contentRN(RRRR#(RRR((Rtmanage_addComplexSchemaContentiscCs t|_dS(s7A simple event handler, which sets a flag on the objectN(R tcontentt_modified_flag(R)tev((RtmodifiedSubscribernscCs t|_dS(s7A simple event handler, which sets a flag on the objectN(R R)t _created_flag(R)R+((RtcreatedSubscriberrsN(RtOFS.SimpleItemt SimpleItemtGlobalstInitializeClasstzope.i18nmessageidtMessageFactorytzope.interfaceRt Interfacet zope.schemaR R R!RRt zope.app.formR%tProducts.Five.form.objectwidgetR&R RRtNoneRRR#R$R(R,R.(R!RR,R4RRR6RR$RR2R R0R.R R(RRR R#R&R%((Rt?s&   %