[Checkins] SVN: Products.ExternalEditor/trunk/ Don't emit a warning about deprecated 'methods' in Zope >= 2.10

Florent Guillaume fg at nuxeo.com
Tue Jun 13 17:31:44 EDT 2006


Log message for revision 68623:
  Don't emit a warning about deprecated 'methods' in Zope >= 2.10

Changed:
  U   Products.ExternalEditor/trunk/CHANGES.txt
  U   Products.ExternalEditor/trunk/__init__.py

-=-
Modified: Products.ExternalEditor/trunk/CHANGES.txt
===================================================================
--- Products.ExternalEditor/trunk/CHANGES.txt	2006-06-13 19:36:04 UTC (rev 68622)
+++ Products.ExternalEditor/trunk/CHANGES.txt	2006-06-13 21:31:43 UTC (rev 68623)
@@ -1,5 +1,9 @@
 External Editor Change Log
 
+  mm/dd/yyyy
+
+    - Don't emit a warning about deprecated 'methods' in Zope >= 2.10.
+
   6/23/2005 - 0.9.1 Release
 
     - Older pyc files for plugins were included in the 0.9 release.

Modified: Products.ExternalEditor/trunk/__init__.py
===================================================================
--- Products.ExternalEditor/trunk/__init__.py	2006-06-13 19:36:04 UTC (rev 68622)
+++ Products.ExternalEditor/trunk/__init__.py	2006-06-13 21:31:43 UTC (rev 68623)
@@ -17,6 +17,7 @@
 from Globals import ImageFile, DTMLFile
 from OFS.ObjectManager import ObjectManager
 from OFS.FindSupport import FindSupport
+from OFS.Folder import Folder
 from App.Management import Tabs
 from ExternalEditor import ExternalEditor, EditLink
 
@@ -25,8 +26,8 @@
 misc_ = {'edit_icon': ImageFile('edit_icon.gif', globals())}
 
 # Insert the global external editor resources
-methods = {'externalEdit_': ExternalEditor(),
-           'externalEditLink_': EditLink}
+Folder.externalEdit_ = ExternalEditor()
+Folder.externalEditLink_ = EditLink
 
 # Monkey patch in our manage_main for Object Manager
 ObjectManager.manage_main = DTMLFile('manage_main', globals())



More information about the Checkins mailing list