ZEXP((U App.ProductqUProductqtqNt.}q(UidqUProductContentqU__ac_local_roles__q}qUgrunyanq ]q UOwnerq asU_objectsq (}q (U meta_typeqUZ ClassqhUzContentqu}q(hU DTML MethodqhUzContent_addFormqu}q(hhhU zContent_addqu}q(hUZope PermissionqhUzContent_add_permissionqu}q(hU Zope FactoryqhUzContent_factoryqu}q(U meta_typeqU Product HelpqUidqUHelpq utUversionq!U1.1q"UzContent_add_permissionq#(Uq$(UApp.Permissionq%U Permissionq&ttQUzContentq'(Uq((UZClasses.ZClassq)UZClassq*ttQUzContent_addFormq+(Uq,(UOFS.DTMLMethodq-U DTMLMethodq.ttQUzContent_factoryq/(Uq0(U App.Factoryq1UFactoryq2ttQU zContent_addq3(Uq4(h-U DTMLMethodq5ttQUtitleq6UNOLABox Product Contentq7h (U q8(UHelpSys.HelpSysq9U ProductHelpq:ttQUconfigurable_objects_q;]q<(UzContentq=UzContent_addFormq>U zContent_addq?UzContent_add_permissionq@UzContent_factoryqAUHelpqBeUredistributableqCU1u.((UApp.PermissionqU PermissionqtqNt.}q(UtitleqUzContent constructor permissionqUidqUzContent_add_permissionqUnameq U Add zContentsq U__ac_local_roles__q }q Ugrunyanq ]qUOwnerqasu.((UZClasses.ZClassqUZClassqtqNt.}q(U_permissionMapperqcAccessControl.PermissionMapping PM qNRq}qU"_Create_class_instances_Permissionq U_Add_zContents_Permissionq sbU_zclass_propertysheets_classq Uq QUidq UzContentqU_zbasesq]q(cZClasses.ZClass ZObject qcProducts.ZCatalog _ZClass_for_CatalogAware qcProducts.OFSP _ZClass_for_DTMLDocument qeU__ac_local_roles__q}qUgrunyanq]qUOwnerqasU_zclass_qUqQUtitleqUZope Product ContentqUpropertysheetsqUqQu.((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(UtitleqUzContent constructor input formqUrawqT Add zContent

Add zContent

Title
qU__ac_local_roles__q }q Ugrunyanq ]q UOwnerq asUglobalsq}qU__name__qUzContent_addFormqU_varsq}qu.((U App.FactoryqUFactoryqtqNt.}q(UtitleqUzContent factoryqUidqUzContent_factoryqUinitialq UzContent_addFormq U object_typeq UzContentq U__ac_local_roles__q }qUgrunyanq]qUOwnerqasU permissionqU Add zContentsqu.b((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(UtitleqUzContent constructorqUrawqT Add zContent 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. 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 Ugrunyanq ]q UOwnerq asUglobalsq}qU__name__qU zContent_addqU_varsq}qu. ((UHelpSys.HelpSysqU ProductHelpqtqNt.}q(UtitleqUProductContentqUcatalogq(U q(UProducts.ZCatalog.ZCatalogq UZCatalogq ttQUidq UHelpq u.0(cExtensionClass ExtensionClass q(UzContent_PropertySheetsClassq(cZClasses.ZClass PersistentClass qcZClasses.Property ZInstanceSheets qtq}q(UiconqUU _p_changedqKU__doc__q UzContent Property Sheetsq U__propset_attrs__q )U_p_oidq Uq U __module__qNU _p_serialqU7\nqutqt.N.(cExtensionClass ExtensionClass q(UzContentq(cZClasses.ZClass PersistentClass qcProducts.ZCatalog.CatalogAwareness CatalogAware qcOFS.DTMLDocument DTMLDocument qcOFS.SimpleItem SimpleItem qtq}q(Uiconq U9Control_Panel/Products/ProductContent/zContent/ziconImageq U _p_changedq KU__doc__q UZope Product Contentq U_p_oidqUqU meta_typeqUzContentqUpropertysheetsqUqQU index_htmlq(Uq(UZClasses.MethodqUMWpqttQUmanage_optionsq(}q(UlabelqUEditqUactionqU manage_mainqu}q(hUUploadqhUmanage_uploadFormq u}q!(hU Propertiesq"hUmanage_propertiesFormq#u}q$(hUViewq%hUu}q&(hUProxyq'hUmanage_proxyFormq(u}q)(hUSecurityq*hU manage_accessq+utq,U ziconImageq-(U6q.(U OFS.Imageq/UImageq0ttQU__ac_permissions__q1((U Add zContentsq2)(UManagerq3tttq4U _p_serialq5U7,q6U __module__q7U*CbPxtGK36EsI5BnrQDx6Vw==q8utq9t.N.(UqQNt.}q(Ucommonq(Uq(UZClasses.PropertyqUZInstanceSheetsSheetqttQUmethodsq(Uq(UZClasses.Methodq UZClassMethodsSheetq ttQu. ,((UProducts.ZCatalog.ZCatalogqUZCatalogqtqNt.}q(UidqUcatalogqU_objectsq(}q(U meta_typeq U Vocabularyq hh utq U thresholdq M'Uvocab_idq Uh (U q(UProducts.ZCatalog.VocabularyqU VocabularyqttQU_catalogq(U q(UProducts.ZCatalog.CatalogqUCatalogqttQUtitleqUu.(UqQNt.}q.T((UZClasses.MethodqUMWpqtqNt.(Uq(UOFS.DTMLMethodqU DTMLMethodqttQ.6((U OFS.ImageqUImageqtqNt.}q(UsizeqMUdataqTGIF89a켿췻갴꯳鵷髯䘝䗝䗜㬯㕚㔙╗┖ކޅބ~ۈۆxqvckqwinemsxipgl]fv{flyU^\bMWffW^kpU]OV@JSS7= ,$-#"--(%#!     !,@( Yϛ'4\H BN0H U Ha,>l!ȍ?$˰xpha1 "8E0P 8 ꢐ%0IF!Ο0pH08NxbIq("R. 1b8LҔ""!=&RTR)$q*օpp"M~` ;qU__name__qU ziconImageq Utitleq UU content_typeq U image/gifq U preconditionq UUwidthqU16qUheightqU17qu.K(cExtensionClass ExtensionClass q(UzContent_ZPropertySheetsClassq(cZClasses.ZClass PersistentClass qcOFS.PropertySheets PropertySheets qhcZClasses.ZClass ZClassSheets qcApp.PersistentExtra Persistent qtq}q(Uiconq UU _p_changedq KU__doc__q UzContent_ZPropertySheetsClassq U_p_oidq UqU __module__qNutqt.N.G((UZClasses.PropertyqUZInstanceSheetsSheetqtqNt.}qU_objectsq)s.((UZClasses.MethodqUZClassMethodsSheetqtqNt.}q(U_mdq}qUidqUmethodsqU_objectsq (}q (U meta_typeq U DTML Methodq Uidq U index_html qutu. ((UProducts.ZCatalog.VocabularyqU VocabularyqtqNt.}q(UtitleqU VocabularyqUidqhU__ac_local_roles__q}q Urunyagaq ]q UOwnerq asUlexiconq (U q(USearchIndex.GlobbingLexiconqUGlobbingLexiconqttQUglobbingqKu. ((UProducts.ZCatalog.CatalogqUCatalogqtqNt.}q(Uschemaq}q(U permissionsqKU categoriesqKU title_or_idq KUidq KUurlq KuUdataq (U q (UBTreeqUBTreeqttQUindexesq}q(USearchableTextq(U q(USearchIndex.UnTextIndexqU UnTextIndexqttQh(U q(USearchIndex.UnKeywordIndexqUUnKeywordIndexqttQh(U q(hUUnKeywordIndexqttQuUnamesq(hhh h h tqUuidsq(U q(UOIBTreeqUBTreeq ttQUlexiconq!U Vocabularyq"Upathsq#(U q$(UIOBTreeq%UBTreeq&ttQu.((UOFS.DTMLMethodqU DTMLMethodqtqNt.}q(UtitleqUUrawqT>
 

 
qU__ac_local_roles__q}q Urunyagaq ]q UOwnerq asUglobalsq }qU__name__qU index_htmlqU_varsq}qu. ((USearchIndex.GlobbingLexiconqUGlobbingLexiconqtqNt.}q(U _inverseLexq(U q(UIOBTreeqUBTreeqttQUcounterq KU_digramsq (U q (UBTreeq UBTreeq ttQU_lexiconq(U q(UOIBTreeqUBTreeqttQu. ((UBTreeqUBTreeqtqNt.). ((USearchIndex.UnTextIndexqU UnTextIndexqtqNt.}q(U ignore_exqNUidqUSearchableTextqU_indexq(U q (UIOBTreeq UBTreeq ttQU_unindexq (U q (h UBTreeqttQU_lexiconqU VocabularyqU call_methodsqNu. ((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNUidqU categoriesqU_indexq(U q (UBTreeq UBTreeq ttQU_unindexq (U q (UIOBTreeqUBTreeqttQU call_methodsqNu. ((USearchIndex.UnKeywordIndexqUUnKeywordIndexqtqNt.}q(U ignore_exqNUidqU permissionsqU_indexq(U q (UBTreeq UBTreeq ttQU_unindexq (U q (UIOBTreeqUBTreeqttQU call_methodsqNu. ((UOIBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.). ((UBTreeqUBTreeqtqNt.). ((UOIBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.). ((UBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.). ((UBTreeqUBTreeqtqNt.). ((UIOBTreeqUBTreeqtqNt.).