Have RclExecM inherit the shared CmdTalk now that the latter is used anyway for the korean splitter. Main diff: cmdtalk strips the colon from param names and does not lowercase them

This commit is contained in:
Jean-Francois Dockes
2020-03-27 11:07:51 +01:00
parent 9a3cea2728
commit 90dd64fc61
17 changed files with 101 additions and 184 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ class TarExtractor:
def openfile(self, params):
self.currentindex = -1
try:
self.tar = tarfile.open(name=params["filename:"], mode='r')
self.tar = tarfile.open(name=params["filename"], mode='r')
#self.namen = [ y.name for y in filter(lambda z:z.isfile(),self.tar.getmembers())]
self.namen = [ y.name for y in [z for z in self.tar.getmembers() if z.isfile()]]
@@ -57,7 +57,7 @@ class TarExtractor:
return False
def getipath(self, params):
ipath = params["ipath:"]
ipath = params["ipath"]
ok, data, ipath, eof = self.extractone(ipath)
if ok:
return (ok, data, ipath, eof)