[kupu-dev] Kupu and anonymous content submission

Jon Stahl jon at onenw.org
Wed Dec 6 02:09:21 CET 2006


Vitalie-

Thanks for solving this problem.  I know it's going to be very useful to
a bunch of folks.

This would be a great how-to for http://plone.org/documentation, and
maybe even a great little add-on Product (if that's possible).

best,
jon
 

> -----Original Message-----
> From: kupu-dev-bounces at codespeak.net 
> [mailto:kupu-dev-bounces at codespeak.net] On Behalf Of Vitalie Cherpec
> Sent: Saturday, December 02, 2006 2:08 AM
> To: kupu-dev at codespeak.net
> Subject: Re: [kupu-dev] Kupu and anonymous content submission
> 
> 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
> 
> 
>                                    Vitalie
> 
> 
> 
> On 11/30/06, Duncan Booth <duncan.booth at suttoncourtenay.org.uk> wrote:
> > "Vitalie Cherpec" <vitalie at gmail.com> wrote:
> >
> > >   I've customized that script, but when I do submit content as 
> > > anonymous, that script isn't called (I've inserted a 
> trace line at 
> > > the begin).
> >
> > There are some other calls to isKupuEnabled, but I didn't 
> think they 
> > would be affected.
> >
> > >
> > >   I've observed that I can't access  the following kupu files as
> > >   anonymous
> > > user (it requires login):
> > >
> > >
> > > /kupulibraries.xml
> > > /kupumyitems.xml
> > > /kupurecentitems.xml
> > > and
> > > kupucollection.xml
> > >
> > You need to give anonymous the "Kupu: Query libraries" permission.



More information about the kupu-dev mailing list