[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - BaseConverter.py:1.1.2.4
Andreas Jung
andreas@digicool.com
Thu, 14 Mar 2002 19:54:10 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv28583
Modified Files:
Tag: ajung-textindexng-branch
BaseConverter.py
Log Message:
moved popen() into base class
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/BaseConverter.py 1.1.2.3 => 1.1.2.4 ===
__version__ = '$Id$'
+import os
+
class BaseConverter:
""" Base class for all converters """
@@ -26,6 +28,11 @@
if not self.content_description:
raise BaseConverterError,'content_description undefinied'
+
+
+ def execute(self,com):
+ text = os.popen( com ).read()
+ return text
def getDescription(self): return self.content_description
def getType(self): return self.content_type