[kupu-dev] Kupu and anonymous content submission

Vitalie Cherpec vitalie at gmail.com
Thu Nov 30 14:17:04 CET 2006


Thank you!

  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).

  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



                                                 Vitalie

On 11/30/06, Duncan Booth <duncan.booth at suttoncourtenay.org.uk> wrote:
> "Vitalie Cherpec" <vitalie at gmail.com> wrote:
>
> >    I'm using plone 2.1 and archetypes to develop a website (something
> > like wiki). I do need to allow anonymous users to submit content without
> > login. I do have an TextField with RichWidget and I've customized kupu
> > to show a minimal toolbar. The solution is working fine for logged
> > users, but anonymous users are seeing only a textarea.
> >
> > I've checked kupu's .js and .css files are loaded.
> > Do you have any tips for solving this problem ?
>
> Kupu uses the contentUsesKupu.py script in kupu_plone_layer to decide
> whether to show kupu or a textarea. This script calls:
>
> if not tool.isKupuEnabled(REQUEST=REQUEST, context=context,
> fieldName=fieldname):
>     return False
>
> isKupuEnabled takes another keyword parameter allowAnonymous which defaults
> to False.
>
> If you edit/customise contentUsesKupu.py:
>
> if not tool.isKupuEnabled(REQUEST=REQUEST, context=context,
> fieldName=fieldname, allowAnonymous=True):
>     return False
>
> then it should work.
>
> _______________________________________________
> kupu-dev mailing list
> kupu-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/kupu-dev
>


More information about the kupu-dev mailing list