Go to the documentation of this file.00001 class FileExportPlugin(object):
00002 option_types={}
00003 plugin_name=''
00004 file_types=()
00005 def __init__(self):
00006 self.options={}
00007 for k,v in self.option_types.items():
00008 self.options[k]=v[2]
00009
00010 def pluginName(self):
00011 return self.plugin_name
00012
00013 def fileTypes(self):
00014 return self.file_types
00015
00016 def listOptions(self):
00017 return self.option_types
00018
00019 def setOption(self,option,value):
00020 check = self.checkOption(option,value)
00021 if check==True:
00022 self.options[option]=value
00023 else:
00024 raise check
00025
00026 def getOption(self,option):
00027 return self.options.get(option,None)
00028
00029 def checkOption(self,option,value):
00030 return True
00031
00032 def export(self,data,filename,filetype):
00033 raise NotImplemented