ocarina/src/core/disable.py

40 lines
678 B
Python

#! /usr/bin/python
# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="bjschuma"
__date__ ="$Dec 20, 2009 12:52:29 AM$"
global name, app, type, path, opt
name = "disable"
app = "scion"
type = "core"
path = ""
opt = []
from manager import manager
# Called every time the plugin is enabled
def open():
pass
# Called every time the plugin is stopped
def close():
# Run this to prevent disable from ever being disabled
manager.run("enable",("disable"))
pass
# Called when the plugin needs to perform some action
def run(args=None):
if args == None:
return
for plugin in args:
manager.disablePlugin(plugin)