40 lines
659 B
Python
40 lines
659 B
Python
# This is a simple test plugin, to make sure everything is working
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Jan 9, 2010 7:22:31 PM$"
|
|
|
|
|
|
global name, app, type, path, opt
|
|
name = "lsset"
|
|
app = "scion"
|
|
type = "extra"
|
|
path = ""
|
|
opt = []
|
|
|
|
from bt.message import write
|
|
import settings
|
|
|
|
|
|
# Called every time the plugin is enabled
|
|
def open():
|
|
pass
|
|
|
|
|
|
# Called every time the plugin is stopped
|
|
def close():
|
|
pass
|
|
|
|
|
|
# Called when the plugin needs to perform some action
|
|
def run(args=None):
|
|
keys = settings.settings.keys()
|
|
join = ", "
|
|
|
|
if args == None:
|
|
str = join.join(keys)
|
|
write(str)
|
|
else:
|
|
if settings.has(args[0]) == True:
|
|
write( settings.get(args[0], True) )
|
|
|