python api
This commit is contained in:
18
python/devsup/interfaces.py
Normal file
18
python/devsup/interfaces.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
from zope.interface import Interface
|
||||
|
||||
class DeviceSupport(Interface):
|
||||
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.
|
||||
"""
|
||||
|
||||
def process(record, reason):
|
||||
"""Callback for record processing action.
|
||||
"""
|
||||
Reference in New Issue
Block a user