def open(self, type='r'): """Recorded.open(type='r') -> file or FileTransfer object""" return ftopen("myth://%s@%s/%s" % ( self.storagegroup, self.hostname, self.basename), type, db=self._db, chanid=self.chanid, starttime=self.starttime)
def __call__(self, mode='r', nooverwrite=False): if self.inst.host == '': raise MythFileError('File access only works ' 'with Storage Group content') return ftopen('myth://%s@%s/%s' % ( self.sgroup, self.inst.host, self.inst[self.type]), mode, False, nooverwrite, self.inst._db)
def __call__(self, mode='r', nooverwrite=False): if self.inst.host == '': raise MythFileError('File access only works ' 'with Storage Group content') return ftopen( 'myth://%s@%s/%s' % (self.sgroup, self.inst.host, self.inst[self.type]), mode, False, nooverwrite, self.inst._db)
def open(self, type='r'): """Recorded.open(type='r') -> file or FileTransfer object""" return ftopen("myth://%s@%s/%s" % (self.storagegroup, self.hostname, self.basename), type, db=self._db, chanid=self.chanid, starttime=self.starttime)
def __call__(self, mode="r", nooverwrite=False): if self.inst.host == "": raise MythFileError("File access only works " "with Storage Group content") return ftopen( "myth://%s@%s/%s" % (self.sgroup, self.inst.host, self.inst[self.type]), mode, False, nooverwrite, self.inst._db, )
def open(self, mode='r', nooverwrite=False): return ftopen('myth://Videos@{0.host}/{0.filename}'.format(self), mode, False, nooverwrite, self._db)
def open(self, mode='r'): return ftopen('myth://{0.imagetype}@{0.hostname}/{0}'.format(self), mode)