From 52428be665b56f67675031a6b193b32bfd4be885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 10 Feb 2011 10:49:07 +0200 Subject: [PATCH] add cleanID call --- doku.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doku.py b/doku.py index c547ff6..2f65207 100644 --- a/doku.py +++ b/doku.py @@ -16,7 +16,6 @@ class DokuWiki: key = "%s-%s" % (call, id) if not self.callcache.has_key(key): cmd = ['./doku.php', call, id] - print cmd res = subprocess.Popen(cmd, stdin = None, stdout = subprocess.PIPE, stderr = sys.stderr, close_fds = True).communicate() self.callcache[key] = res[0] return self.callcache[key] @@ -29,3 +28,6 @@ class DokuWiki: def getNS(self, id): return self.__call('getNS', id) + + def cleanID(self, id): + return self.__call('cleanID', id)