;ς )δHEc@sγdZdkZdkZdkZdklZdklZdkl Z dk l Z l Z dk lZdklZdklZd klZd klZd klZlZd klZd klZdklZd„Z dS(sm CMF ZWiki Installation script This file is a CMF installation script for LatexWiki. It's meant to be used as an External Method. Compatible with the CMF quick installer, or to use manually, add an external method to the root of the CMF or Plone Site that you want LatexWiki registered in with the configuration: id: cmf_install_latexwiki title: module name: LatexWiki.Install function name: install Then call this method in the context of the CMF/Plone site, by visiting http://SITEURL/cmf_install_latexwiki . The install function will execute and give information about the steps it took. N(s workingDir(sStringIO(s DTMLMethod(sImagesFile(scustomImporters(sPersistentMapping(sContentFactoryMetadata(saddDirectoryViews(s getToolByName(s wiki_globalssfactory_type_information(s ZWikiPage(s_addDTMLMethod(sPAGE_PORTALTYPEc Cstƒ}|idƒ|idƒ o|idddƒn|idƒ o|idddƒn|idƒ o|idd d ƒn|id ƒ o|id d d ƒntitti ƒ o"ti tƒ|id tƒnd}t }y)dkl}||dtt t ƒ}Wn tj o|idƒnX|t jo|i||ddƒn|idƒd}tiditid} ti| ti ƒ otiditid} nt| ti|ƒiƒ}t|dddd|ƒd}t| ti|ƒiƒ}|idtdd|ƒƒd}|iƒi}|id|i!| ti|dt"ƒƒd }t#||ƒo/|i$|ƒ}|i|t&|dd!ƒƒn<|iƒ}t'i(d"|ƒ o|d#}n|i|ƒ|i)ƒSd$S(%sR Create images directory and add some necessary properties to the folder. sAdding properties to folder s allow_dtmlstruesbooleanslatex_font_sizeisintslatex_align_fudgef0.0sfloatslatex_res_fudgef0.96999999999999997s$LatexWiki image directory %s createdsimages(sLocalFSss:Error: LocalFS not installed. LatexWiki requires LocalFS.s set_owneris3ERROR: Failed to find a suitable filesystem productslatexwiki.css.dtmls __builtin__s Products/ZWiki/content/latexwikis latexwiki.cssstitlesfiles blank.gif.gifs blank.gifspngbehavior.htc.zexpspngbehavior.htcscustomImporterssploneCustom.csss@import url("latexwiki.css");s@import url\("latexwiki.css"\);s @import url("latexwiki.css");N(*sStringIOsoutswritesselfs hasPropertysmanage_addPropertysossaccesss workingDirsF_OKsmkdirsidsNonesobsProducts.LocalFS.LocalFSsLocalFSs ImportErrors _setObjectsfilenamessyssmoduless SOFTWARE_HOMEssepsdirs INSTANCE_HOMEsopensreadstexts_addDTMLMethodsImagesgetPhysicalRoots_p_jars connections importFilescustomImportersshasattrs_getObs ploneCustomsFilesresmatchsgetvalue( sselfstexts ploneCustomsidsoutsfilenamesobs connectionsLocalFSsdir((sU/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/plugins/mathaction/Extensions/Install.pysinstall/s\          (!s__doc__sstringsosssyssProducts.LatexWiki.utils workingDirs cStringIOsStringIOsOFS.DTMLMethods DTMLMethods OFS.ImagesImagesFilesOFS.ObjectManagerscustomImporterssZODB.PersistentMappingsPersistentMappingsProducts.CMFCore.TypesToolsContentFactoryMetadatasProducts.CMFCore.DirectoryViewsaddDirectoryViewssProducts.CMFCore.utilss getToolByNamesProducts.ZWiki.CMFInits wiki_globalssfactory_type_informationsProducts.ZWiki.ZWikiPages ZWikiPagesProducts.ZWiki.ZWikiWebs_addDTMLMethodsProducts.ZWiki.DefaultssPAGE_PORTALTYPEsinstall(sPersistentMappingsfactory_type_informationsstringsStringIOscustomImporterssImages workingDirs wiki_globalss DTMLMethodssyssPAGE_PORTALTYPEs ZWikiPagesinstalls_addDTMLMethodsFiles getToolByNamesaddDirectoryViewssossContentFactoryMetadata((sU/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/plugins/mathaction/Extensions/Install.pys?s