[Zope-CVS] SVN: zpkgtools/branches/fdrake-zconfig-branch/zpkgtools/include.py remove dead code

Fred L. Drake, Jr. fdrake at gmail.com
Wed Aug 31 12:29:05 EDT 2005


Log message for revision 38196:
  remove dead code

Changed:
  U   zpkgtools/branches/fdrake-zconfig-branch/zpkgtools/include.py

-=-
Modified: zpkgtools/branches/fdrake-zconfig-branch/zpkgtools/include.py
===================================================================
--- zpkgtools/branches/fdrake-zconfig-branch/zpkgtools/include.py	2005-08-31 16:22:34 UTC (rev 38195)
+++ zpkgtools/branches/fdrake-zconfig-branch/zpkgtools/include.py	2005-08-31 16:29:05 UTC (rev 38196)
@@ -220,92 +220,6 @@
     return normalize_path(path, type)
 
 
-##class SpecificationSchema(cfgparser.Schema):
-##    """Specialized schema that handles populating a set of Specifications.
-##    """
-
-##    def __init__(self, source, filename):
-##        self.filename = filename
-##        self.source = source
-
-##    def getConfiguration(self):
-##        conf = cfgparser.SectionValue(None, None, None)
-##        conf.loads = Specification(
-##            self.source, self.filename, "load")
-##        conf.collection = Specification(
-##            self.source, self.filename, "collection")
-##        conf.distribution = Specification(
-##            self.source, self.filename, "distribution")
-##        return conf
-
-##    def startSection(self, parent, typename, name):
-##        if not isinstance(parent, cfgparser.SectionValue):
-##            raise cfgparser.ConfigurationError("unexpected section")
-##        if typename == "collection":
-##            return parent.collection
-##        elif typename == "distribution":
-##            return parent.distribution
-##        elif typename == "load":
-##            return parent.loads
-##        raise cfgparser.ConfigurationError("unknown section type: %s"
-##                                           % typename)
-
-##    def endSection(self, parent, typename, name, child):
-##        if child.includes and child.excludes:
-##            # XXX not sure what the exact semantics should be of
-##            # allowing both inclusions and exclusions at the same
-##            # time; which takes precedence?  what about precedence
-##            # when wildcards are involved?
-##            raise cfgparser.ConfigurationError(
-##                "exclusions and inclusions cannot coexist in a single section")
-
-##    def createSection(self, name, typename, typedef):
-##        raise NotImplementedError(
-##            "createSection() should not be called for SpecificationSchema")
-
-##    def finishSection(self, section):
-##        return section
-
-##    def addValue(self, section, workfile, other):
-##        if not isinstance(section, Specification):
-##            raise cfgparser.ConfigurationError(
-##                "all inclusion lines must be in a section")
-
-##        if other == "-":
-##            # This is an exclusion.
-##            if section.group != "collection":
-##                raise cfgparser.ConfigurationError(
-##                    "exclusions are only permitted in <collection>")
-##            workfile = normalize_path(workfile, "exclusion", section.group)
-##            section.excludes.append(workfile)
-##            return
-
-##        if section.group == "load":
-##            if not other:
-##                raise cfgparser.ConfigurationError(
-##                    "referenced file must be named explicitly"
-##                    " in <load> section")
-##            # perhaps should make sure workfile and other don't refer
-##            # to the same file
-##            other = normalize_path_or_url(other, "source", section.group)
-##        elif other:
-##            # workfile and other have a backward relationship for this:
-##            # <destination>
-##            #   target workfile
-##            # </destination>
-##            other = normalize_path(other, "destination", section.group)
-
-##        if workfile:
-##            workfile = normalize_path(workfile, "workspace file",
-##                                      section.group)
-
-##        if other:
-##            section.includes[other] = workfile
-##        else:
-##            L = section.includes.setdefault(None, [])
-##            L.append(workfile)
-
-
 class Specification:
     """Specification for files to include.
 



More information about the Zope-CVS mailing list