Exemplo n.º 1
0
 def clean_completion_conditions(self):
     """Validates the unlock conditions of the quest."""
     data = self.cleaned_data["completion_conditions"]
     predicate_mgr.validate_form_predicates(data)
     return data
Exemplo n.º 2
0
 def clean_unlock_condition(self):
     """Validates the unlock conditions of the action."""
     data = self.cleaned_data["unlock_condition"]
     predicate_mgr.validate_form_predicates(data)
     return data
Exemplo n.º 3
0
 def clean_completion_conditions(self):
     """Validates the unlock conditions of the quest."""
     data = self.cleaned_data["completion_conditions"]
     predicate_mgr.validate_form_predicates(data)
     return data