Python script to hide ploneformgen form after user has filled it out. (For Plone-4.3.2-64.)

前端 未结 3 1029
失恋的感觉
失恋的感觉 2021-01-22 19:53

After a user has filled out a (ploneformgen) form , I would like to use a custom script adapter to call a python script to change the user’s local role so that they can’t see th

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-22 20:18

    I worked out what was going on, but I'm not sure how to describe it precisely. Basically, I found that by calling the script as a Custom Success Action (form > edit > overrides), I don't get the problem. So I think that by calling the script as custom script adapter I was trying to change the user's permission while they were still engaged with the form and that is impossible, even with the Manager proxy role.

    I hope that helps. And if anyone has a more precise description of the problem, that would be appreciated.

提交回复
热议问题