mς γΈEc@s dZdkZdklZdkZdkZdkZdkZdkl Z dkl Z l Z l Z dk lZedƒZdklZdklZlZeiieiiƒZeiied ƒZeiied ƒZd eifd „ƒYZd ee ifd„ƒYZdee i fd„ƒYZ dee i!fd„ƒYZ!dee i"fd„ƒYZ"defd„ƒYZ#e#Z$de fd„ƒYZ%e%Z&de!fd„ƒYZ'e'Z(de"fd„ƒYZ)e)Z*defd„ƒYZ+de fd „ƒYZ,d!e!fd"„ƒYZ-dS(#s]Five baseclasses for zope.formlib.form $Id: formbase.py 70911 2006-10-25 11:59:22Z yuppie $ N(sdatetime(s interface(s interfacessforms namedtemplate(sMessageFactorytzope(sViewPageTemplateFile(s processInputsssetPageEncodings pageform.ptssubpageform.pttFiveFormlibMixincBstZeeƒZd„ZRS(NcCs1t|iƒt|iƒtt|ƒiƒdS(N(t processInputstselftrequesttsetPageEncodingtsuperRtupdate(R((t=/data/zmath/zope/lib/python/Products/Five/formlib/formbase.pyR4s  (t__name__t __module__tViewPageTemplateFilet_PAGEFORM_PATHttemplateR(((RR's tFormBasecBstZRS(N(R R (((RR:st EditFormBasecBs/tZeiedƒdeiƒd„ƒZRS(NtApplyt conditioncCs‚ti|i|i||iƒoMtii ti i |iƒƒt ddhdt tiƒƒ<ƒ|_nt dƒ|_dS(NsUpdated on ${date_time}tmappingt date_times No changes(tformt applyChangesRtcontextt form_fieldstdatatadaptersRteventtnotifytlifecycleeventtObjectModifiedEventt_tstrtdatetimetutcnowtstatus(RtactionR((Rthandle_edit_actionCs "((R R RR#RthaveInputWidgetsR$(((RR>stDisplayFormBasecBstZRS(N(R R (((RR&Tst AddFormBasecBstZRS(N(R R (((RR'XstPageFormcBstZeieiƒRS(N(R R t interfacet implementst interfacest IPageForm(((RR(\st PageEditFormcBstZeieiƒRS(N(R R R)R*R+R,(((RR-cstPageDisplayFormcBstZeieiƒRS(N(R R R)R*R+R,(((RR.jst PageAddFormcBstZeieiƒRS(N(R R R)R*R+R,(((RR/qst SubPageFormcBs$tZeeƒZeieiƒRS(N( R R R t_SUBPAGEFORM_PATHR R)R*R+t ISubPageForm(((RR0xs tSubPageEditFormcBs$tZeeƒZeieiƒRS(N( R R R R1R R)R*R+R2(((RR3s tSubPageDisplayFormcBs$tZeeƒZeieiƒRS(N( R R R R1R R)R*R+R2(((RR4†s (.t__doc__tos.pathtosR t Acquisitiont zope.eventRt zope.formlibtzope.lifecycleeventR)R+Rt namedtemplatetzope.i18nmessageidtMessageFactoryRt&Products.Five.browser.pagetemplatefileR tProducts.Five.browser.decodeRRtpathtdirnametformlibt__file__t _FORMLIB_DIRtjoinR R1tExplicitRRRR&R'R(tFormR-tEditFormR.t DisplayFormR/tAddFormR0R3R4( RR1RIR R RR>RERR0R&R-R<R8RR RR+RKRR)R3R(RR/RJRHR.R4RR'R7((Rt?s>