You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » CMF Product RPMs » CMF Visual Editor » Patch to avoid duplicated editor registeration » View Document

Log in
Name

Password

 

Patch to avoid duplicated editor registeration

--- CMFVisualEditor/Extensions/Install.py.orig 2003-02-11 22:18:49.000000000 +0800
+++ CMFVisualEditor/Extensions/Install.py 2004-04-30 14:03:01.000000000 +0800
@@ -13,6 +13,8 @@
attrname='available_editors'
if site_props is not None:
editors=list(site_props.getProperty(attrname))
+ while 'Visual Editor' in editors:
+ editors.remove('Visual Editor')
editors.append('Visual Editor')
site_props._updateProperty(attrname, editors)
print >>out, "Added 'Visual Editor' to available editors in Plone."