ZEXP/¦t((U OFS.FolderqUFolderqtqNt.}q(Uformq(U/§q(UProducts.Formulator.FormqUZMIFormqttQUtitleq UU form_successq (U1q (U'Products.PageTemplates.ZopePageTemplateq UZopePageTemplateq ttQU_ownerq(]qU acl_usersqaUadminqtqU form_handleq(U/µq(U#Products.PythonScripts.PythonScriptqU PythonScriptqttQU form_displayq(U/³q(h UZopePageTemplateqttQU_objectsq(}q(U meta_typeqUFormulator FormqUidqUformqu}q (hU Page Templateq!hhu}q"(hUScript (Python)q#hhu}q$(U meta_typeq%U Page Templateq&Uidq'h utq(U__ac_local_roles__q)}q*h]q+UOwnerq,ashUFormulator-ZPT_exampleq-u./§ç((UProducts.Formulator.FormqUZMIFormqtqNt.}q(Ustored_encodingqU ISO-8859-1qU unicode_modeqKUnameqUformq Uencodingq UUTF-8q U user_nameq (U/¨q (U"Products.Formulator.StandardFieldsqU StringFieldqttQUtitleqUU group_listq]qUDefaultqaUidqh Uuser_petq(U/Àq(hU RadioFieldqttQU user_emailq(U/¾q(hU EmailFieldqttQUgroupsq}qh]q(U user_nameqUuser_dateofbirthqU user_emailq hesU_objectsq!(}q"(U meta_typeq#U StringFieldq$hhu}q%(U meta_typeq&U DateTimeFieldq'Uidq(hu}q)(h&U EmailFieldq*h(h u}q+(h&U RadioFieldq,h(hutq-Uactionq.UU row_lengthq/KU__ac_local_roles__q0}q1Uadminq2]q3UOwnerq4asUmethodq5UPOSTq6Uuser_dateofbirthq7(U/¶q8(hU DateTimeFieldq9ttQUenctypeq:Uu.1((U'Products.PageTemplates.ZopePageTemplateqUZopePageTemplateqtqNt.}q(UtitleqUSuccessqU content_typeqU text/htmlqU_textq UÉ The title Thanks Name, we appreciate your help. q U _bind_namesq (cShared.DC.Scripts.Bindings NameAssignments q oq }qU_asgnsq}qU name_subpathqUtraverse_subpathqssbU__ac_local_roles__q}qUadminq]qUOwnerqasUidqU form_successqUexpandqKu./µ ä((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U Python_magicqU;ò qUerrorsq)Uwarningsq)U Script_magicq KU_bodyq T¥""" Checks request-data against a formulator object: - if the data is correct, a success-page is displayed. - if the data is incorrect, a dictionary containing the errors is added to the Request and the form-page is displayed again with the original data and the error-messages. """ from Products.Formulator.Form import FormValidationError request = context.REQUEST response = request.RESPONSE formErrors = {} # check request-data against Formulator try: context.form.validate_all_to_request(request) # request-data contains errors except FormValidationError, e: for i in e.errors: title = i.field.get_value('title') text = i.error_text formErrors[title] = text request.set('error_messages', formErrors) response = context.form_display() # request-data contains no errors else: # do something with the request-data here response = context.form_success(user = request.user_name) return response q U_codeq Tfc@s d„ZdS(Nc Csdkl}ttdƒ}t|dƒ}h}y tttdƒdƒ|ƒWnš|j oŽ}xZtt|dƒƒD]C} tt| dƒdƒd ƒ} t| d ƒ} | t |ƒ| sq U func_defaultsqNU _bind_namesq(cShared.DC.Scripts.Bindings NameAssignments qoq}qU_asgnsq}q(Uname_containerqU containerqU name_contextqUcontextqU name_subpathqUtraverse_subpathqU name_m_selfqUscriptqusbU__ac_local_roles__q}qUadminq]q UOwnerq!asUidq"U form_handleq#U_paramsq$UU func_codeq%(cShared.DC.Scripts.Signature FuncCode q&oq'}q((U co_argcountq)KU co_varnamesq*(UProducts.Formulator.Formq+UFormValidationErrorq,U _getattr_q-Ucontextq.Urequestq/Uresponseq0U formErrorsq1UeU _getiter_q2UiUtitleq3Utextq4U_write_q5tq6ubu./³ 0((U'Products.PageTemplates.ZopePageTemplateqUZopePageTemplateqtqNt.}q(UtitleqUFormqU content_typeqU text/htmlqU_textq TÛ The title

Please fill in the following form:

name error message
date of birth error message
e-mail address error message
favorite pet error message
q U _bind_namesq (cShared.DC.Scripts.Bindings NameAssignments q oq }qU_asgnsq}qU name_subpathqUtraverse_subpathqssbU__ac_local_roles__q}qUadminq]qUOwnerqasUidqU form_displayqUexpandqKu./¨4((U"Products.Formulator.StandardFieldsqU StringFieldqtqNt.}q(Umessage_valuesq}qUtalesq}q(Uextraq UU descriptionq UUtruncateq UUtitleq UUdefaultq UU css_classqUUrequiredqUUenabledqUUdisplay_maxwidthqUUexternal_validatorqUU max_lengthqUUunicodeqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuU overridesq}q(h Uh Uh Uh Uh UhUhUhUhUhUhUhUhUhUhUhUuUvaluesq}q(h UhUhI00 hUh U user_nameqhUhI00 h Uh I00 hKh UhUhI01 hI01 hUhI00 uUidqU user_namequ./À_((U"Products.Formulator.StandardFieldsqU RadioFieldqtqNt.}q(U overridesq}q(U descriptionqUU first_itemqUUtitleq UUdefaultq UU css_classq UUrequiredq UUenabledq UUwhitespace_preserveqUUexternal_validatorqUU extra_itemqUUunicodeqUUitemsqUUhiddenqUUalternate_nameqUU orientationqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hUhI00 h]q((Uhamsterqhtq(Ubirdqhtq(Ucatqhtq (U pets suckq!h!tq"ehUhUverticalq#hI00 h Uuser_petq$h Uh Uh I01 h I01 hUhUhI00 hI00 uUidq%Uuser_petq&Umessage_valuesq'}q(u./¾5((U"Products.Formulator.StandardFieldsqU EmailFieldqtqNt.}q(Umessage_valuesq}qU overridesq}q(Uextraq UU descriptionq UUtruncateq UUtitleq UUdefaultq UU css_classqUUrequiredqUUenabledqUUdisplay_maxwidthqUUexternal_validatorqUU max_lengthqUUunicodeqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUidqU user_emailqUvaluesq}q(h UhUhI00 hUh U user_emailqhUhI00 h Uh I00 hKh UhUhI01 hI01 hUhI00 uUtalesq}q(h Uh Uh Uh Uh UhUhUhUhUhUhUhUhUhUhUhUuu./¶ ((U"Products.Formulator.StandardFieldsqU DateTimeFieldqtqNt.}q(Umessage_valuesq}qUsub_formq(U/·q(UProducts.Formulator.Formq U BasicFormq ttQU overridesq }q (Uenabledq UUexternal_validatorqUUstart_datetimeqUUrequiredqUU descriptionqUUtitleqUUdefaultqUU css_classqUU input_orderqUUampm_time_styleqUUhide_dayqUU date_onlyqUUallow_empty_timeqUU end_datetimeqUUdate_separatorqUU default_nowqUUtime_separatorqUUhiddenqUU input_styleqUUalternate_nameq UuUidq!Uuser_dateofbirthq"Uvaluesq#}q$(h UhUuser_dateofbirthq%hU/hUdmyq&hNhUhI00 hI00 hI00 hI00 hI01 hU:hI00 hNhUhI01 h I01 hUhNhUtextq'uUtalesq(}q)(h UhUhUhUhUhUhUhUhUhUhUhUhUhUhUhUhUhUhUh Uuu./·]((UProducts.Formulator.FormqU BasicFormqtqNt.}q(Ustored_encodingqU ISO-8859-1qU unicode_modeqKUnameqUUencodingq UUTF-8q Ufieldsq }q (Uhourq (U/¸q(U"Products.Formulator.StandardFieldsqU IntegerFieldqttQUampmq(U/¹q(hU StringFieldqttQUmonthq(U/ºq(hU IntegerFieldqttQUyearq(U/»q(hU IntegerFieldqttQUdayq(U/¼q(hU IntegerFieldqttQUminuteq(U/½q(hU IntegerFieldqttQuUtitleq U Basic Formq!U group_listq"]q#(UDefaultq$Udateq%Utimeq&eUgroupsq'}q((h$]q)h%]q*(hhheh&]q+(h hheuUactionq,UUmethodq-UPOSTq.Uenctypeq/Uu./¸((U"Products.Formulator.StandardFieldsqU IntegerFieldqtqNt.}q(U overridesq}q(UrequiredqUUendqUU descriptionq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUUstartqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Uh UHourqh Uh Uh UhKhKhUhUhKhKhKhUuUidqUhourqUmessage_valuesq}qu./¹((U"Products.Formulator.StandardFieldsqU StringFieldqtqNt.}q(U overridesq}q(UrequiredqUU descriptionqUUtruncateq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUU max_lengthqUUunicodeqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Kh Uam/pmqh Uh Uh UhKhKhUhKhKhKhKhKhUuUidqUampmqUmessage_valuesq}qu./º((U"Products.Formulator.StandardFieldsqU IntegerFieldqtqNt.}q(U overridesq}q(UrequiredqUUendqUU descriptionq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUUstartqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Uh UMonthqh Uh Uh UhKhKhUhUhKhKhKhUuUidqUmonthqUmessage_valuesq}qu./»((U"Products.Formulator.StandardFieldsqU IntegerFieldqtqNt.}q(U overridesq}q(UrequiredqUUendqUU descriptionq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUUstartqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Uh UYearqh Uh Uh UhKhKhUhUhKhKhKhUuUidqUyearqUmessage_valuesq}qu./¼þ((U"Products.Formulator.StandardFieldsqU IntegerFieldqtqNt.}q(U overridesq}q(UrequiredqUUendqUU descriptionq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUUstartqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Uh UDayqh Uh Uh UhKhKhUhUhKhKhKhUuUidqUdayqUmessage_valuesq}qu./½((U"Products.Formulator.StandardFieldsqU IntegerFieldqtqNt.}q(U overridesq}q(UrequiredqUUendqUU descriptionq UUtitleq UUdefaultq UU css_classq UUextraq UUenabledqUUdisplay_maxwidthqUUexternal_validatorqUUstartqUUwhitespace_preserveqUUhiddenqUU display_widthqUUalternate_nameqUuUtalesq}q(hUhUh Uh Uh Uh Uh UhUhUhUhUhUhUhUhUuUvaluesq}q(hKhUh Uh UMinuteqh Uh Uh UhKhKhUhUhKhKhKhUuUidqUminuteqUmessage_valuesq}qu.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ