Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
00004 # All Rights Reserved.
00005 # 
00006 # This software is subject to the provisions of the Zope Public License,
00007 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
00008 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00009 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00010 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00011 # FOR A PARTICULAR PURPOSE.
00012 # 
00013 ##############################################################################
00014 
00015 # Zope External Editor Product by Casey Duncan
00016 
00017 from Globals import ImageFile, DTMLFile
00018 from OFS.ObjectManager import ObjectManager
00019 from OFS.FindSupport import FindSupport
00020 from OFS.Folder import Folder
00021 from App.Management import Tabs
00022 from ExternalEditor import ExternalEditor, EditLink
00023 
00024 # Add the icon and the edit method to the misc_ namespace
00025 
00026 misc_ = {'edit_icon': ImageFile('edit_icon.gif', globals())}
00027 
00028 # Insert the global external editor resources
00029 Folder.externalEdit_ = ExternalEditor()
00030 Folder.externalEditLink_ = EditLink
00031 
00032 # Monkey patch in our manage_main for Object Manager
00033 ObjectManager.manage_main = DTMLFile('manage_main', globals())
00034 
00035 # Add our patch for the find results template
00036 FindSupport.manage_findResult=DTMLFile('findResult', globals(),
00037                                        management_view='Find')
00038 
00039 # Add external editor icon in breadcrumbs under tabs
00040 Tabs.manage_tabs = DTMLFile('manage_tabs', globals())