Die Dokumentation ab Version 39.5.17 von PLANTA project finden Sie in der neuen PLANTA Online-Hilfe.

interface - Conditionals

This topic discusses the conditionals feature provided by the PLANTA link API.

Classes

BaseConditional

Methods

Function Parameters Return Value Description
BaseConditional.__init__(self, parameter='') parameter: Value to compare conditional instance Initialize a new conditional object

Properties

Property Getter Setter Description
BaseConditional.is_satisfied Checked Unchecked Returns if the value it was initialized with matches the current value
BaseConditional.value Checked Unchecked This property is abstract and must be implemented in a subclass. It must return the current value for the condition you want to check

UndefinedConditional

The UndefinedConditional class is a dummy class that will always return False from UndefinedConditional.is_satisfied

Functions

Function Parameters Return Value Description
get_conditional_from_class_name(class_name) class_name: The name of the conditional class conditional class Get the class object of a conditional based on its name. When the name can't be resolved to a class, UndefinedConditional is returned instead.

         PLANTA project









 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl