This is more freevo specific then python specific. If any of you have written any plugins for freevo maybe you can see what I am doung wrong.
below is my code
Code:
#!/usr/bin/env python
#
# this is my first attempt to make a freevo plugin
import os
import plugin
import config
class PluginInterface(plugin.ItemPlugin):
"""
this is a test plugin to see if I can add a command to the menu
"""
def __init__(self):
plugin.ItemPlugin.__init__(self)
def actions(self, item):
return [ (self.test_command, "shane's command") ]
def test_command(self):
item = self.item
os.system('touch %s'%item.filename)
I am getting this error in my freevo log
Code:
action( arg=arg, menuw=self )
File "/usr/lib/python2.4/site-packages/freevo/menu.py", line 87, in select
self.function(arg=self.arg, menuw=menuw)
TypeError: test_command() got an unexpected keyword argument 'arg'
any suggestions would be appreciated