ZEXP "Ï ((UApp.ProductqUProductqtqNt.}q(UidqUCMF_FAQqUFAQ_addq(U "çq(UOFS.DTMLMethodq U
DTMLMethodq
ttQUFAQq(U "èq(UZClasses.ZClassq
UZClassqttQU_objectsq(}q(U meta_typeqUProduct HelpqhUHelpqu}q(hUZ ClassqhUFAQqu}q(hUDTML MethodqhUFAQ_addFormqu}q(hhhhu}q(hUZope FactoryqhUFAQ_factoryqutUtitleqU U__ac_local_roles__q}q Utseaverq!]q"UOwnerq#ash(U "éq$(h U
DTMLMethodq%ttQh(U "ëq&(UApp.Factoryq'UFactoryq(ttQh(U "Ðq)(UHelpSys.HelpSysq*UProductHelpq+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]qUOwnerq
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_PermissionqU_Add_portal_content_PermissionqU_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
qU__ac_local_roles__q }q
Utseaverq]qUOwnerq
asUglobalsq}qU__name__qUFAQ_addFormqU_varsq}qu. "ë ^((UApp.FactoryqUFactoryqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping
PM
qNRq}qU_Use_Factories_Permissionq U_Add_portal_content_Permissionq
sbUidqUFAQ_factoryqU__ac_local_roles__q
}qUtseaverq]qUOwnerqasUinitialqUFAQ_addFormqU
permissionqUAdd portal contentqUtitleqUFAQ factoryqUobject_typeqUFAQqu. "Ð ˜((UHelpSys.HelpSysqUProductHelpqtqNt.}q(UtitleqUCMF_FAQqUcatalogq(U "Ñq(UProducts.ZCatalog.ZCatalogq UZCatalogq
ttQUidqUHelpqu. "ì u(cExtensionClass
ExtensionClass
q(UFAQ_PropertySheetsClassq(cZClasses.ZClass
PersistentClass
qcZClasses.Property
ZInstanceSheets
qtq}q(UiconqU U
_p_changedqKU__doc__q UFAQ Property Sheetsq
UFAQ_propertiesq(U "õq(UZClasses.Propertyq
UZInstanceSheetqttQU__propset_attrs__q(htqU_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 U U
_p_changedq
KU__doc__qUFrequently-Asked QuestionqUfaq_questionq
U U_p_oidqU "íqUfaq_urlsq]qU aU faq_replyqU U meta_typeqUFAQqUpropertysheetsqU "òqQUmanage_optionsq(}q(UlabelqUDublin CoreqUactionqUmanage_metadataqu}q(hUEditqhUmanage_editqu}q (hUViewq!hUviewq"u}q#(hUUndoq$Uhelpq%(UOFSPq&UUndo.stxq'thUmanage_UndoFormq(u}q)(hU Ownershipq*h%(h&U
Ownership.stxq+thUmanage_ownerq,Ufilterq-cAccessControl.Owned
ownableFilter
q.u}q/(hUSecurityq0h%(h&USecurity.stxq1thU
manage_accessq2utq3U__ac_permissions__q4((UAdd FAQsq5)(UManagerq6tttq7U _p_serialq8U>‰"jŽ@æq9Ufaq_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
utqU thresholdqM'Uvocab_idq
h
h
(U "Òq(UProducts.ZCatalog.VocabularyqU
VocabularyqttQU_catalogq(U "Óq(UProducts.ZCatalog.CatalogqUCatalogqttQUtitleqU u. "õ ƒ((UZClasses.PropertyqUZInstanceSheetqtqNt.}q(U_mdq}qU_baseq(U "ôq(hUZCommonSheetq ttQUidq
UFAQ_propertiesqu. "ò (U "ìqQNt.}q. #e k((UZClasses.MethodqUMWpqtqNt.(U #fq(U#Products.PythonScripts.PythonScriptqUPythonScriptqttQ. "ï P(cExtensionClass
ExtensionClass
q(UFAQ_ZPropertySheetsClassq(cZClasses.ZClass
PersistentClass
qcOFS.PropertySheets
PropertySheets
qhcZClasses.ZClass
ZClassSheets
qcApp.PersistentExtra
Persistent
qtq}q(Uiconq U U
_p_changedq
K U__doc__qUFAQ_ZPropertySheetsClassqU_p_oidq
U "ïqU meta_typeqhU
__module__qNutqt.N. "ð º((UZClasses.PropertyqUZInstanceSheetsSheetqtqNt.}q(UFAQ_propertiesq(U "ôq(hUZCommonSheetqttQU_objectsq(}q (U meta_typeq
UCommon Instance Property SheetqUidqhutu. "ñ •((UZClasses.MethodqUZClassMethodsSheetqtqNt.}q(U_mdq}qUidqUmethodsqU_objectsq (}q
(U meta_typeqUScript (Python)qUidq
UTitle qutu. "Ò é((UProducts.ZCatalog.VocabularyqU
VocabularyqtqNt.}q(UtitleqU
VocabularyqUidqhU__ac_local_roles__q}q Utseaverq
]qUOwnerqasUlexiconq
(U "ãq(USearchIndex.GlobbingLexiconqUGlobbingLexiconqttQUglobbingqKu. "Ó I((UProducts.ZCatalog.CatalogqUCatalogqtqNt.}q(Uschemaq}q(UpermissionsqKU
categoriesqK Utitle_or_idq KUidq
KUurlqKuU__len__q(U "Ôq
(U
BTrees.LengthqULengthqttQUdataq(U "Õq(UBTrees.IOBTreeqUIOBTreeqttQUnamesq(hhh hh
tqUindexesq}q(USearchableTextq(U "Öq(USearchIndex.UnTextIndexqUUnTextIndexqttQh(U "×q(USearchIndex.UnKeywordIndexqUUnKeywordIndexqttQh(U "Øq(hUUnKeywordIndexq ttQuUuidsq!(U "Ùq"(UBTrees.OIBTreeq#UOIBTreeq$ttQUlexiconq%U
Vocabularyq&Upathsq'(U "Úq((hUIOBTreeq)ttQu. "ô !((UZClasses.PropertyqUZCommonSheetqtqNt.}q(UtitleqU U_mdq}qUidqUFAQ_propertiesq U_propertiesq
(}q(Umetaq}q
hUfaq_sectionsqUtypeqUtokensqu}q(h}qhUfaq_questionqhUtextqu}q(h}qhU faq_replyqhUtextqu}q(Umetaq}qUidqUfaq_urlsqUtypeqUlinesqutu. #f ¿((U#Products.PythonScripts.PythonScriptqUPythonScriptqtqNt.}q(U func_codeq(cShared.DC.Scripts.Signature
FuncCode
qoq}q(Uco_varnamesq (Ustringq
UsectionqU
$loop_watcherqU$read_guardq
U$write_guardqU$guardqtqUco_argcountqK ubU_paramsqU UidqUTitleqU__ac_local_roles__q}qUtseaverq]qUOwnerqasU_tq(hN(K KKKUmt } | ƒ t } t } t } k } | | ƒ i | t ƒ i d ƒ } d | | t ƒ i f Sd Sq(NU.U%s %sqtq(h
UjoinqUcontextqUfaq_sectionsq hUfaq_questionq!hh
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 containerq0Uname_subpathq1Utraverse_subpathq2Uname_m_selfq3Uscriptq4Uname_contextq5Ucontextq6usbUPython_magicq7U™N
q8U
func_defaultsq9Nu. "ã ñ((USearchIndex.GlobbingLexiconqUGlobbingLexiconqtqNt.}q(U_inverseLexq(U "äq(UBTrees.IOBTreeqUIOBTreeqttQU_digramsq (U "åq
(UBTrees.OOBTreeqUOOBTreeqttQU_lexiconq
(U "æq(UBTrees.OIBTreeqUOIBTreeqttQu. "Ô &((U
BTrees.LengthqULengthqtqNt.K . "Õ '((UBTrees.IOBTreeqUIOBTreeqtqNt.N. "Ö ((USearchIndex.UnTextIndexqUUnTextIndexqtqNt.}q(U ignore_exqNUidqUSearchableTextqU_indexq(U "áq (UBTrees.IOBTreeq
UIOBTreeqttQU_unindexq(U "âq
(h
UIOBTreeqttQU_lexiconq(U "ãq(USearchIndex.GlobbingLexiconqUGlobbingLexiconqttQUcall_methodsqNu. "× ((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNU__len__q(U "Þq(U
BTrees.LengthqULengthq ttQUidq
U
categoriesqU_indexq(U "ßq
(UBTrees.OOBTreeqUOOBTreeqttQU_unindexq(U "àq(UBTrees.IOBTreeqUIOBTreeqttQUcall_methodsqNu. "Ø ((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNU__len__q(U "Ûq(U
BTrees.LengthqULengthq ttQUidq
UpermissionsqU_indexq(U "Üq
(UBTrees.OOBTreeqUOOBTreeqttQU_unindexq(U "Ýq(UBTrees.IOBTreeqUIOBTreeqttQUcall_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.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ