def read (self, filenm, itemid): try: rec = self._submit('READ', filenm, itemid) if rec[0:3] == _ERROR: raise jError('no such file') else: return rec.split(_AM) except: return ''
def oconv (self, indata, cnv): oval = self._submit('OCONV', indata, cnv) if oval[0:3] == _ERROR: raise jError('illegal oconv') else: return oval