;ō ągAc@sMdZdklZdklZdklZlZdkl Z d„Z dS(sū This file is an installation script for this tool. To use, either: use the PortalQuickInstaller tool if you have it installed (it comes with plone 2.0), - or - install by hand as follows: Add an external method to the root of the CMF Site that you want the tool registered in with the configuration: id: install_events title: Install ZSyncer Tool *optional* module name: ZSyncer.Install function name: install Then go to the management screen for the newly added external method and click the 'Try it' tab. The install function will execute and give information about the steps it took to register and install the tool into your CMF Site instance. You may then delete the external method. (saddDirectoryViews(s getToolByName(s ZSyncerTools zs_globals(sStringIOc Cstƒ} t|dƒ}t|dƒ} t|dƒ} | iƒ}t i }||i ƒj o/|i didt iƒ| id|ƒn| id|ƒd}||i ƒjo%t|d tƒ| id |ƒn|iƒ}xū|D]ķ}|i|ƒ} gi}| id ƒD]}||iƒƒq~} || joG| i|ƒd i| ƒ} |i|| ƒ| id ||fƒqð| id||fƒqðWt i }|| i ƒjo| id|ƒn| i!|ƒ| id|ƒ| i"ƒSdS(s8 Register the ZSyncerTool with portal_types and friends s portal_skinss portal_urlsportal_actionssZSyncerstypesAdded %s tool sAlready have %s tool, skipping s zsyncer_skinssskinss(Added %s directory view to portal_skins s,s, sAdded %s to %s skin s'Skipping %s skin, %s is already set up s0%s is already registered as an action provider. s(Registered %s as a new action provider. N(#sStringIOsouts getToolByNamesselfs skinstoolsurltools actionstoolsgetPortalObjectsps ZSyncerToolsidstool_ids objectIdssmanage_addProductsmanage_addTools meta_typeswrites skinfol_namesaddDirectoryViewss zs_globalssgetSkinSelectionssskinssskins getSkinPathspathsappends_[1]ssplitsssstripsjoinsaddSkinSelectionslistActionProviderssaddActionProvidersgetvalue( sselfstool_ids skinfol_namesskinspsskinss_[1]s skinstoolsssurltoolspaths actionstoolsout((sF/mnt/gmirror/ports/www/zope-zsyncer/work/ZSyncer/Extensions/Install.pysinstall"s@    6    N( s__doc__sProducts.CMFCore.DirectoryViewsaddDirectoryViewssProducts.CMFCore.utilss getToolByNamesProducts.ZSyncers ZSyncerTools zs_globalss cStringIOsStringIOsinstall(s zs_globalssStringIOs ZSyncerToolsinstalls getToolByNamesaddDirectoryViews((sF/mnt/gmirror/ports/www/zope-zsyncer/work/ZSyncer/Extensions/Install.pys?s