check.py file under /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 'File exists!'
return 'File does not exist!'| See also: Systems in PLANTA link |
stamp_mts.py
module subclass
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 |
|---|---|---|---|---|---|
| |
stamp_mts.py.txt | r1 | 2.5 K | 2016-04-27 - 21:39 |