check.py
unter /py/customer/ppms/interface/parameter/conditional
import os from ppms.interface import BaseConditional class FileExistsConditional(BaseConditional): """Check if the file configured in the parameter exists""" @property def is_satisfied(self): return os.path.isfile(self.parameter) @property def value(self): if self.is_satisfied: return 'Datei existiert!' return 'Datei existiert nicht!'
Siehe auch: Systeme in PLANTA link |
stamp_mts.py
eintragen.
from ppms.interface import Config config = Config('config-uuid') # copy/execute the interface ...
from ppms.interface import StaticConfig config = StaticConfig('config-uuid') # copy/execute the interface ...
I | Attachment | History | Size | Date | Comment |
---|---|---|---|---|---|
txt | stamp_mts.py.txt | r1 | 2.5 K | 2016-04-27 - 21:39 |