From: hoka <ho...@us...> - 2004-09-06 13:30:25
|
Update of /cvsroot/collective/CMFVisualEditor/Extensions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31923/Extensions Modified Files: Install.py Log Message: add spanish po add removing from Visual Editor from external_editor by uninstalling Index: Install.py =================================================================== RCS file: /cvsroot/collective/CMFVisualEditor/Extensions/Install.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Install.py 10 Mar 2003 21:14:13 -0000 1.6 +++ Install.py 6 Sep 2004 13:30:12 -0000 1.7 @@ -54,3 +54,20 @@ print >>out, "Done." return out.getvalue() + + +def uninstall_plone(self): + """ remove Visual Editor from 'available_editors' """ + portal_props=getToolByName(self,'portal_properties') + site_props=getattr(portal_props,'site_properties', None) + attrname='available_editors' + if site_props is not None: + editors=list(site_props.getProperty(attrname)) + try: + editors.remove('Visual Editor') + except: + pass + site_props._updateProperty(attrname, editors) + +def uninstall(self): + uninstall_plone(self) \ No newline at end of file |