[kupu-dev] Kupu and anonymous content submission
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Fri Dec 8 16:42:12 CET 2006
"Vitalie Cherpec" <vitalie at gmail.com> wrote:
> I've solved the problem. I've modified 2 files:
>
> kupu/plone/kupu_plone_layer/wysiwyg_support.pt
> kupu/plone/plonelibrarytool.py
>
> The patch is attached maybe someone will need it.
>
> There is a function call( lower() ) on None object returned by
> getProperty() in plonelibrarytool.py, my solution:
>
> user = pm.getAuthenticatedMember()
> - if user.getProperty('wysiwyg_editor').lower() != 'kupu':
> + if not pm.isAnonymousUser() and
> user.getProperty('wysiwyg_editor', '').lower() != 'kupu':
> return False
>
>
Thanks. I'll apply the patch to the trunk: the template doesn't need
modifying in the trunk: all the property access has moved into the tool.
More information about the kupu-dev
mailing list