[Zope-Checkins] CVS: Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter - Setup:1.2.4.1 __init__.py:1.3.4.1

Andreas Jung andreas@zope.com
Tue, 7 Aug 2001 15:33:49 -0400


Update of /cvs-repository/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter
In directory cvs.zope.org:/tmp/cvs-serv2823/ZopeSplitter

Modified Files:
      Tag: Zope-2_4-branch
	Setup __init__.py 
Log Message:
Complete splitter interface reworked to make MacOsX happy:

- every Splitter is now a package and defines a Splitter()
  function visible to Python

- the C implementation of every splitter has been removed to 
  <XXXX>Splitter.c where <XXXX> is the specific name of the splitter

- the internal Splitter() function has been renamed to <XXXX>Splitter()

- The __init__.py of every Splitter package imports the right functiion
  from the module and creates an alias to 'Splitter' using 
  'from ... import .. as Splitter'



=== Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/Setup 1.2 => 1.2.4.1 ===
-Splitter src/Splitter.c
+ZopeSplitter src/ZopeSplitter.c


=== Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py 1.3 => 1.3.4.1 ===
-
-class ZopeSplitter:
-
-    meta_type="Splitter"
-    description="Zope Default Splitter"
-
-    Splitter = Splitter
-
-    def __init__(self):
-        print "__init__"
-
-    def a(self):
-        """a"""
-        print "initialize",self.meta_type
-        pass
-
-    def b(self):
-        """b"""
-
-        print "binitialize",self.meta_type
-        pass
-
+from ZopeSplitter import ZopeSplitter as Splitter