Files
pyDevSup/python/devsup/interfaces.py
2013-05-25 13:56:04 -04:00

27 lines
688 B
Python

from zope.interface import Interface, Attribute
class DeviceSupport(Interface):
raw = Attribute('True if this support modifies VAL instead of RVAL')
def detach(record):
"""Disconnect from the record.
This is the last method called.
"""
def allowScan(record):
"""Return True to allow SCAN='I/O Intr'
or False to prevent this.
If a callable object is returned then if
will be invoked when I/O Intr scanning
is disabled. A Record instance is passed
as the first (and only) argument.
"""
def process(record, reason):
"""Callback for record processing action.
"""