<s> from zope . interface import Interface , Attribute <EOL> class IDroneDApplication ( Interface ) : <EOL> """<STR_LIT>""" <EOL> name = Attribute ( "<STR_LIT>" ) <EOL> def recoverInstance ( occurance ) : <EOL> """<STR_LIT>""" <EOL> def getInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def startInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def stopInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def statusInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> class IDroneModelApp ( Interface ) : <EOL> """<STR_LIT>""" <EOL> name = Attribute ( "<STR_LIT>" ) <EOL> shouldRunOn = Attribute ( """<STR_LIT>""" ) <EOL> managedOn = Attribute ( """<STR_LIT>""" ) <EOL> configuredOn = Attribute ( """<STR_LIT>""" ) <EOL> appversions = Attribute ( """<STR_LIT>""" ) <EOL> appinstances = Attribute ( """<STR_LIT>""" ) <EOL> localappinstances = Attribute ( """<STR_LIT>""" ) <EOL> runningInstances = Attribute ( """<STR_LIT>""" ) <EOL> localrunningInstances = Attribute ( """<STR_LIT>""" ) <EOL> def runsOn ( server ) : <EOL> """<STR_LIT>""" <EOL> def doesNotRunOn ( server ) : <EOL> """<STR_LIT>""" <EOL> class IDroneModelAppVersion ( Interface ) : <EOL> """<STR_LIT>""" <EOL> description = Attribute ( "<STR_LIT>" ) <EOL> app = Attribute ( "<STR_LIT>" ) <EOL> version = Attribute ( "<STR_LIT>" ) <EOL> def makeVersion ( version ) : <EOL> """<STR_LIT>""" <EOL> class IDroneModelAppInstance ( Interface ) : <EOL> """<STR_LIT>""" <EOL> appversion = Attribute ( "<STR_LIT>" ) <EOL> app = Attribute ( "<STR_LIT>" ) <EOL> server = Attribute ( "<STR_LIT>" ) <EOL> shouldBeRunning = Attribute ( "<STR_LIT>" ) <EOL> label = Attribute ( "<STR_LIT>" ) <EOL> context = Attribute ( "<STR_LIT>" ) <EOL> info = Attribute ( """<STR_LIT>""" ) <EOL> version = Attribute ( "<STR_LIT>" ) <EOL> crashed = Attribute ( "<STR_LIT>" ) <EOL> state = Attribute ( """<STR_LIT>""" ) <EOL> description = Attribute ( "<STR_LIT>" ) <EOL> localInstall = Attribute ( """<STR_LIT>""" ) <EOL> pid = Attribute ( "<STR_LIT>" ) <EOL> running = Attribute ( """<STR_LIT>""" ) <EOL> process = Attribute ( "<STR_LIT>" ) <EOL> enabled = Attribute ( """<STR_LIT>""" ) <EOL> def enabler ( occurrence ) : <EOL> """<STR_LIT>""" <EOL> def updateInfo ( info ) : <EOL> """<STR_LIT>""" <EOL> def start ( ) : <EOL> """<STR_LIT>""" <EOL> def stop ( ) : <EOL> """<STR_LIT>""" <EOL> def restart ( ) : <EOL> """<STR_LIT>""" <EOL> class IDroneModelAppManager ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def log ( message , label ) : <EOL> """<STR_LIT>""" <EOL> def start ( ) : <EOL> """<STR_LIT>""" <EOL> def stop ( ) : <EOL> """<STR_LIT>""" <EOL> def conditionalEvents ( ) : <EOL> """<STR_LIT>""" <EOL> def registerEvent ( name , callback , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> def triggerEvent ( name , data , delay ) : <EOL> """<STR_LIT>""" <EOL> def disableEvent ( name ) : <EOL> """<STR_LIT>""" <EOL> def enableEvent ( name ) : <EOL> """<STR_LIT>""" <EOL> def expose ( name , method , args , doc , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> def unexpose ( name , blacklist ) : <EOL> """<STR_LIT>""" <EOL> def rebuildHelp ( ) : <EOL> """<STR_LIT>""" <EOL> def addInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def removeInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def enableInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def disableInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def startInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def stopInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def statusInstance ( label ) : <EOL> """<STR_LIT>""" <EOL> def instanceOperation ( func ) : <EOL> """<STR_LIT>""" <EOL> class IDroneModelApplicationEvent ( Interface ) : <EOL> """<STR_LIT>""" <EOL> event = Attribute ( "<STR_LIT>" ) <EOL> name = Attribute ( "<STR_LIT>" ) <EOL> service = Attribute ( "<STR_LIT>" ) <EOL> condition = Attribute ( "<STR_LIT>" ) <EOL> recurring = Attribute ( "<STR_LIT>" ) <EOL> silent = Attribute ( "<STR_LIT>" ) <EOL> func = Attribute ( "<STR_LIT>" ) <EOL> def trigger ( data , delay ) : <EOL> """<STR_LIT>""" <EOL> __all__ = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] </s>
