Plone: ​​changing the freeze state for an object (conditional)

Is it possible to freeze a state change for a given object based on a condition?

What do I have:

  • meetings (e.g. events)
  • subscribers (meeting participants)
  • subscribers can be approved or not

What I need:

  • subscribers to old meetings should freeze the state (no one should change approved, not to approve, etc.).

Can you suggest a solution for this case?

+3


source to share


1 answer


The solution was to use a transition guard: https://docs.plone.org/4/en/old-reference-manuals/archgenxml/basic-features/workflows.html?highlight=guard#transition-guards

I used the expression python:here.is_allowed_state_change() is True

.



I have determined is_allowed_state_change

to return True

if the meeting has not ended.

+2


source







All Articles