ZEXP"Ï((U App.ProductqUProductqtqNt.}q(UidqUCMF_FAQqUFAQ_addq(U"çq(UOFS.DTMLMethodq U DTMLMethodq ttQUFAQq (U"èq (UZClasses.ZClassq UZClassqttQU_objectsq(}q(U meta_typeqU Product HelpqhUHelpqu}q(hUZ ClassqhUFAQqu}q(hU DTML MethodqhU FAQ_addFormqu}q(hhhhu}q(hU Zope FactoryqhU FAQ_factoryqutUtitleqUU__ac_local_roles__q}q Utseaverq!]q"UOwnerq#ash(U"éq$(h U DTMLMethodq%ttQh(U"ëq&(U App.Factoryq'UFactoryq(ttQh(U"Ðq)(UHelpSys.HelpSysq*U ProductHelpq+ttQu."çr((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(UtitleqUFAQ constructorqUrawqT· Add FAQ We add the new object by calling the class in a with tag. Not only does this get the thing added, it adds the new thing's attributes to the DTML name space, so we can call methods to initialize the object. You can add code that modifies the new instance here. For example, if you have a property sheet that you want to update from form values, you can call it here: Now we need to return something. We do this via a redirect so that the URL is correct. Unfortunately, the way we do this depends on whether we live in a product or in a class. If we live in a product, we need to use DestinationURL to decide where to go. If we live in a class, DestinationURL won't be available, so we use URL2. qU__ac_local_roles__q }q Utseaverq ]q UOwnerq asUglobalsq}qU__name__qUFAQ_addqU_varsq}qu."è’((UZClasses.ZClassqUZClassqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping PM qNRq}q(U'_Access_contents_information_Permissionq U'_Access_contents_information_Permissionq U"_Create_class_instances_Permissionq U_Add_portal_content_Permissionq U_View_Permissionq U_View_PermissionqubU_zclass_propertysheets_classqU"ìqQUidqUFAQqU_zbasesq]q(cZClasses.ZClass ZObject qcProducts.CMFCore _ZClass_for_PortalContent qcProducts.CMFDefault _ZClass_for_DefaultDublinCoreImpl qeU__ac_local_roles__q}qUtseaverq]qUOwnerqasU_zclass_qU"íqQUtitleqUFrequently-Asked Questionq Upropertysheetsq!U"îq"Qu."é((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(UtitleqUFAQ constructor input formqUrawqT7 Add FAQ

Add FAQ

Id
qU__ac_local_roles__q }q Utseaverq ]q UOwnerq asUglobalsq}qU__name__qU FAQ_addFormqU_varsq}qu."ë^((U App.FactoryqUFactoryqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping PM qNRq}qU_Use_Factories_Permissionq U_Add_portal_content_Permissionq sbUidq U FAQ_factoryq U__ac_local_roles__q }qUtseaverq]qUOwnerqasUinitialqU FAQ_addFormqU permissionqUAdd portal contentqUtitleqU FAQ factoryqU object_typeqUFAQqu."И((UHelpSys.HelpSysqU ProductHelpqtqNt.}q(UtitleqUCMF_FAQqUcatalogq(U"Ñq(UProducts.ZCatalog.ZCatalogq UZCatalogq ttQUidq UHelpq u."ìu(cExtensionClass ExtensionClass q(UFAQ_PropertySheetsClassq(cZClasses.ZClass PersistentClass qcZClasses.Property ZInstanceSheets qtq}q(UiconqUU _p_changedqKU__doc__q UFAQ Property Sheetsq UFAQ_propertiesq (U"õq (UZClasses.Propertyq UZInstanceSheetqttQU__propset_attrs__q(h tqU_p_oidqU"ìqU __module__qNU _p_serialqU>‰;ˆDÝqutqt.N."íÜ(cExtensionClass ExtensionClass q(UFAQq(cZClasses.ZClass PersistentClass qcProducts.CMFCore.PortalContent PortalContent qcProducts.CMFDefault.DublinCore DefaultDublinCoreImpl qcOFS.SimpleItem SimpleItem qtq}q(Uiconq UU _p_changedq KU__doc__q UFrequently-Asked Questionq U faq_questionq UU_p_oidqU"íqUfaq_urlsq]qUaU faq_replyqUU meta_typeqUFAQqUpropertysheetsqU"òqQUmanage_optionsq(}q(UlabelqU Dublin CoreqUactionqUmanage_metadataqu}q(hUEditqhU manage_editqu}q (hUViewq!hUviewq"u}q#(hUUndoq$Uhelpq%(UOFSPq&UUndo.stxq'thUmanage_UndoFormq(u}q)(hU Ownershipq*h%(h&U Ownership.stxq+thU manage_ownerq,Ufilterq-cAccessControl.Owned ownableFilter q.u}q/(hUSecurityq0h%(h&U Security.stxq1thU manage_accessq2utq3U__ac_permissions__q4((UAdd FAQsq5)(UManagerq6tttq7U _p_serialq8U>‰"jŽ@æq9U faq_sectionsq:]q;(U1U1eU __module__q(U#eq?(UZClasses.Methodq@UMWpqAttQutqBt.N."î¤(U"ïqQNt.}q(Ucommonq(U"ðq(UZClasses.PropertyqUZInstanceSheetsSheetqttQUmethodsq(U"ñq(UZClasses.Methodq UZClassMethodsSheetq ttQu."Ñ,((UProducts.ZCatalog.ZCatalogqUZCatalogqtqNt.}q(UidqUcatalogqU_objectsq(}q(U meta_typeq U Vocabularyq hh utq U thresholdq M'Uvocab_idq h h (U"Òq(UProducts.ZCatalog.VocabularyqU VocabularyqttQU_catalogq(U"Óq(UProducts.ZCatalog.CatalogqUCatalogqttQUtitleqUu."õƒ((UZClasses.PropertyqUZInstanceSheetqtqNt.}q(U_mdq}qU_baseq(U"ôq(hU ZCommonSheetq ttQUidq UFAQ_propertiesq u."ò(U"ìqQNt.}q.#ek((UZClasses.MethodqUMWpqtqNt.(U#fq(U#Products.PythonScripts.PythonScriptqU PythonScriptqttQ."ïP(cExtensionClass ExtensionClass q(UFAQ_ZPropertySheetsClassq(cZClasses.ZClass PersistentClass qcOFS.PropertySheets PropertySheets qhcZClasses.ZClass ZClassSheets qcApp.PersistentExtra Persistent qtq}q(Uiconq UU _p_changedq KU__doc__q UFAQ_ZPropertySheetsClassq U_p_oidq U"ïqU meta_typeqh U __module__qNutqt.N."ðº((UZClasses.PropertyqUZInstanceSheetsSheetqtqNt.}q(UFAQ_propertiesq(U"ôq(hU ZCommonSheetqttQU_objectsq(}q (U meta_typeq UCommon Instance Property Sheetq Uidq hutu."ñ•((UZClasses.MethodqUZClassMethodsSheetqtqNt.}q(U_mdq}qUidqUmethodsqU_objectsq (}q (U meta_typeq UScript (Python)q Uidq UTitle qutu."Òé((UProducts.ZCatalog.VocabularyqU VocabularyqtqNt.}q(UtitleqU VocabularyqUidqhU__ac_local_roles__q}q Utseaverq ]q UOwnerq asUlexiconq (U"ãq(USearchIndex.GlobbingLexiconqUGlobbingLexiconqttQUglobbingqKu."ÓI((UProducts.ZCatalog.CatalogqUCatalogqtqNt.}q(Uschemaq}q(U permissionsqKU categoriesqKU title_or_idq KUidq KUurlq KuU__len__q (U"Ôq (U BTrees.LengthqULengthqttQUdataq(U"Õq(UBTrees.IOBTreeqUIOBTreeqttQUnamesq(hhh h h tqUindexesq}q(USearchableTextq(U"Öq(USearchIndex.UnTextIndexqU UnTextIndexqttQh(U"×q(USearchIndex.UnKeywordIndexqUUnKeywordIndexqttQh(U"Øq(hUUnKeywordIndexq ttQuUuidsq!(U"Ùq"(UBTrees.OIBTreeq#UOIBTreeq$ttQUlexiconq%U Vocabularyq&Upathsq'(U"Úq((hUIOBTreeq)ttQu."ô!((UZClasses.PropertyqU ZCommonSheetqtqNt.}q(UtitleqUU_mdq}qUidqUFAQ_propertiesq U _propertiesq (}q (Umetaq }q hU faq_sectionsqUtypeqUtokensqu}q(h }qhU faq_questionqhUtextqu}q(h }qhU faq_replyqhUtextqu}q(Umetaq}qUidqUfaq_urlsqUtypeqUlinesqutu.#f¿((U#Products.PythonScripts.PythonScriptqU PythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature FuncCode qoq}q(U co_varnamesq (Ustringq Usectionq U $loop_watcherq U $read_guardq U $write_guardqU$guardqtqU co_argcountqKubU_paramsqUUidqUTitleqU__ac_local_roles__q}qUtseaverq]qUOwnerqasU_tq(hN(KKKKUmt}|ƒt}t}t }k}||ƒi|tƒidƒ}d||tƒifSdSq(NU.U%s %sqtq(h UjoinqUcontextqU faq_sectionsq h U faq_questionq!h h hhtq"hUScript (Python)q#hKU q$)tN}q%tq&U_bodyq'Usimport string section = string.join( context.faq_sections, '.' ) return '%s %s' % ( section, context.faq_question )q(U _bind_namesq)(cShared.DC.Scripts.Bindings NameAssignments q*oq+}q,U_asgnsq-}q.(Uname_containerq/U containerq0U name_subpathq1Utraverse_subpathq2U name_m_selfq3Uscriptq4U name_contextq5Ucontextq6usbU Python_magicq7U™N q8U func_defaultsq9Nu."ãñ((USearchIndex.GlobbingLexiconqUGlobbingLexiconqtqNt.}q(U _inverseLexq(U"äq(UBTrees.IOBTreeqUIOBTreeqttQU_digramsq (U"åq (UBTrees.OOBTreeq UOOBTreeq ttQU_lexiconq (U"æq(UBTrees.OIBTreeqUOIBTreeqttQu."Ô&((U BTrees.LengthqULengthqtqNt.K."Õ'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."Ö ((USearchIndex.UnTextIndexqU UnTextIndexqtqNt.}q(U ignore_exqNUidqUSearchableTextqU_indexq(U"áq (UBTrees.IOBTreeq UIOBTreeq ttQU_unindexq (U"âq (h UIOBTreeqttQU_lexiconq(U"ãq(USearchIndex.GlobbingLexiconqUGlobbingLexiconqttQU call_methodsqNu."×((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNU__len__q(U"Þq(U BTrees.LengthqULengthq ttQUidq U categoriesq U_indexq (U"ßq (UBTrees.OOBTreeqUOOBTreeqttQU_unindexq(U"àq(UBTrees.IOBTreeqUIOBTreeqttQU call_methodsqNu."Ø((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNU__len__q(U"Ûq(U BTrees.LengthqULengthq ttQUidq U permissionsq U_indexq (U"Üq (UBTrees.OOBTreeqUOOBTreeqttQU_unindexq(U"Ýq(UBTrees.IOBTreeqUIOBTreeqttQU call_methodsqNu."Ù'((UBTrees.OIBTreeqUOIBTreeqtqNt.N."Ú'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."ä'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."å'((UBTrees.OOBTreeqUOOBTreeqtqNt.N."æ'((UBTrees.OIBTreeqUOIBTreeqtqNt.N."á'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."â'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."Þ&((U BTrees.LengthqULengthqtqNt.K."ß'((UBTrees.OOBTreeqUOOBTreeqtqNt.N."à'((UBTrees.IOBTreeqUIOBTreeqtqNt.N."Û&((U BTrees.LengthqULengthqtqNt.K."Ü'((UBTrees.OOBTreeqUOOBTreeqtqNt.N."Ý'((UBTrees.IOBTreeqUIOBTreeqtqNt.N.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ