Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.setdefaulteditor

How to install collective.setdefaulteditor

  1. Download and install ActivePython
  2. Buy and install the Business Edition license from account.activestate.com
  3. Open Command Prompt
  4. Type pypm install collective.setdefaulteditor

collective.setdefaulteditor contains builds that are only available via PyPM when you have a current ActivePython Business Edition subscription.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.3
1.3 Available View build log
1.2 Available View build log
Windows (64-bit)
1.2
1.3Never BuiltWhy not?
1.2 Available View build log
Mac OS X (10.5+)
1.3
1.3 Available View build log
1.2 Available View build log
Linux (32-bit)
1.3
1.3 Available View build log
1.2 Available View build log
Linux (64-bit)
1.3
1.3 Available View build log
1.2 Available View build log
 
License
GPL
Dependencies
Depended by

Introduction

When you install a new visual editor in your Plone 3 Site, you can set wysiwyg_editor in portal_memberdata to the proper value for this new editor. This only means that new users will get this new editor. To change the editor for all existing users, use this package.

In Plone 4 this should be less necessary, because this Plone version introduces an option for members to simply use whatever the current default editor of the site is. If you migrate from Plone 3 you can still use this package to change all members so they use this option.

This package makes available a browser view @@set-default-editor to change the editor setting of members. Follow the instructions there. This has slightly different functionality for Plone 3 and Plone 4. You can choose to run this in dry-run mode and see how many users would be changed. When dry run is not selected, details are logged to the instance log.

On the same form you can also select to set the default editor for new users (Plone 3) or set the editor that is used when 'Use site default' is selected (Plone 4).

Todo

  • Add tests.

Contributors

I (Maurits van Rees) found the main code in an article by Rob Gietema. He apparently got the script from Kelly Craig. And I have seen the same code in a post to the plone-setup list by Reinout van Rees. So I claim it back in defense of our family honour. ;-)

Changelog

1.4 (2012-11-23)
  • Be smarter about getting all users, also when many_users is true and you are using ldap. [maurits]
  • Use the default_editor site property when it is there (Plone 4). [maurits]
1.3 (2012-10-27)
1.2 (2010-04-27)
  • When there are many users (site_properties/many_users) try to get all members by searching for a login with 'a', then 'b', etc. Not ideal, but if for example LDAP gives problems because it returns too many results (which means it does not actually return anything) then this may help. [maurits]
1.1 (2010-04-21)
  • Also offer option to set the chosen editor as new default in portal_memberdata. [maurits]
  • Added form to make setting the editor more user friendly. [maurits]
  • Check that the input for the wanted editor is sane: is that editor actually installed? [maurits]
1.0 (2010-03-17)
  • Initial release [maurits]

Subscribe to package updates

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.