[svn r948] Added new function to retrieve old schedules in order to reactivate them
3 __author__ = "Gustavo Sverzut Barbieri / Artur Duque de Souza"
4 __author_email__ = "barbieri@gmail.com / artur.souza@indt.org.br"
8 __all__ = ("Transcoder")
10 class Transcoder(object):
11 """Transcoder's Class: parent class to implement
12 a plugin for transcoding data."""
13 priority = 0 # negative values have higher priorities
14 name = None # to be used in requests
19 def __init__(self, params):
23 def params_first(self, key, default=None):
25 return self.params[key][0]
28 return self.params[key][0]
33 def get_mimetype(self):
34 return "application/octet-stream"
37 def start(self, outfile):
45 def get_length (self):
49 def get_progress (self):
54 return '%s: %s( params=%s ) - Status: %s%%' % \
55 (self.__class__.__name__, self.tid,
56 self.params, self.status)