[Zope] Ape and DBTab Configuration in Zope 2.7

Elena Schulz elena.schulz at gmx.net
Wed Mar 17 04:27:21 EST 2004


Hi Brad,

> But it works for me.
For me not :(my environment: Zope 2.7.0, python 2.3.2, win32)

> Put Ape into 2.7.0/lib/python/Products  (it cannot be in an INSTANCE_HOME
Products
> directory)
Ok, this I changed. I had it in INSTANCE_HOME/Products

> Ape has a file called "component.xml" that tells you what to do for 2.7::
Good to know, but ...

> add the following line near the top of Zope/Startup/zopeschema.xml:
>   <import package="Products.Ape"/>
.. as soon as I add this to my Zope/Startup/zopeschema.xml starting Zope I
get the below error.

Does anybody know about that?

-- Thanks, Elena


Error when starting Zope with <import package="Products.Ape"/> in
Zope/Startup/zopeschema.xml:

L:\Zope\ZopeData\bin>"I:\Python\ActivePython232\python.exe"
"L:\Zope\Zope-2.7.0\lib\python\Zope\Star
tup\run.py" -C "L:\Zope\ZopeData\etc\zope2.7.0.conf"
Traceback (most recent call last):
  File "L:\Zope\Zope-2.7.0\lib\python\Zope\Startup\run.py", line 49, in ?
    run()
  File "L:\Zope\Zope-2.7.0\lib\python\Zope\Startup\run.py", line 18, in run
    opts = _setconfig()
  File "L:\Zope\Zope-2.7.0\lib\python\Zope\Startup\run.py", line 41, in
_setconfig
    opts.realize(doc="Sorry, no option docs yet.")
  File "L:\Zope\Zope-2.7.0\lib\python\zdaemon\zdoptions.py", line 262, in
realize
    self.load_schema()
  File "L:\Zope\Zope-2.7.0\lib\python\zdaemon\zdoptions.py", line 303, in
load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\loader.py", line 37, in
loadSchema
    return SchemaLoader().loadURL(url)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\loader.py", line 71, in
loadURL
    return self.loadResource(r)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\loader.py", line 137, in
loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 43, in
parseResource
    xml.sax.parse(resource.file, parser)
  File "I:\Python\ActivePython232\lib\xml\sax\__init__.py", line 33, in
parse
    parser.parse(source)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 107, in
parse
    xmlreader.IncrementalParser.parse(self, source)
  File "I:\Python\ActivePython232\lib\xml\sax\xmlreader.py", line 123, in
parse
    self.feed(buffer)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 207, in
feed
    self._parser.Parse(data, isFinal)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 300, in
start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 119, in
startElement
    getattr(self, "start_" + name)(attrs)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 309, in
start_import
    self.loadComponent(src)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 315, in
loadComponent
    xml.sax.parse(r.file, parser)
  File "I:\Python\ActivePython232\lib\xml\sax\__init__.py", line 33, in
parse
    parser.parse(source)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 107, in
parse
    xmlreader.IncrementalParser.parse(self, source)
  File "I:\Python\ActivePython232\lib\xml\sax\xmlreader.py", line 123, in
parse
    self.feed(buffer)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 207, in
feed
    self._parser.Parse(data, isFinal)
  File "I:\Python\ActivePython232\lib\xml\sax\expatreader.py", line 300, in
start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 119, in
startElement
    getattr(self, "start_" + name)(attrs)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\schema.py", line 343, in
start_sectiontype
    interface = self._schema.gettype(ifname)
  File "L:\Zope\Zope-2.7.0\lib\python\ZConfig\info.py", line 262, in gettype
    raise ZConfig.SchemaError("unknown type name: " + `name`)
ZConfig.SchemaError: unknown type name: 'zodb.storage'





More information about the Zope mailing list