[kupu-checkins] r32836 - kupu/trunk/kupu/plone
duncan at codespeak.net
duncan at codespeak.net
Tue Oct 3 12:57:51 CEST 2006
Author: duncan
Date: Tue Oct 3 12:57:50 2006
New Revision: 32836
Modified:
kupu/trunk/kupu/plone/plonelibrarytool.py
Log:
Avoid throwing an exception when the user is anonymous.
Modified: kupu/trunk/kupu/plone/plonelibrarytool.py
==============================================================================
--- kupu/trunk/kupu/plone/plonelibrarytool.py (original)
+++ kupu/trunk/kupu/plone/plonelibrarytool.py Tue Oct 3 12:57:50 2006
@@ -250,7 +250,7 @@
"""Find the appropriate template to use for the kupu widget"""
pm = getToolByName(self, 'portal_membership')
user = pm.getAuthenticatedMember()
- editor = user.getProperty('wysiwyg_editor').lower()
+ editor = user.getProperty('wysiwyg_editor', '').lower()
if editor=='fck editor':
editor = 'editor_fck'
More information about the kupu-checkins
mailing list