python api

This commit is contained in:
Michael Davidsaver
2013-03-30 18:44:27 -04:00
parent 9ba4acb696
commit f1cd3e4d2d
2 changed files with 33 additions and 1 deletions

View 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.
"""