# download class import string from thing import thing class download(thing): def __init__(self,sdb,parent=''): thing.__init__(self,sdb,parent) self.ftype = 'download' def process(self): # convert to file extension ext = string.split(self.name,'.')[-1] t = thing(self.sdb,self.uuid) t.url = t.uuid t.name = self.name t.path = self.path t.ftype = ext t.insert_line(self.sdb) return True