[Zope-dev] editing zope files

Pavel Zaitsev pavel at md5.ca
Thu Mar 31 21:14:06 EST 2005


I try to edit zope file in zope istalled directory, HTTPServer in 
particular, i want to debug some things,
but I get syntax errors on any code i try insert like a=1 , or 'print'.

like:


# 
/opt/web/bin/runzope                                                                                                              
</opt/zope_core/lib/python/Zope/Startup neo[5135]
Traceback (most recent call last):
  File "/opt/zope_core/lib/python/Zope/Startup/run.py", line 50, in ?
    run()
  File "/opt/zope_core/lib/python/Zope/Startup/run.py", line 18, in run
    opts = _setconfig()
  File "/opt/zope_core/lib/python/Zope/Startup/run.py", line 42, in 
_setconfig
    opts.realize(doc="Sorry, no option docs yet.")
  File "/opt/zope_core/lib/python/zdaemon/zdoptions.py", line 271, in 
realize
    self.load_schema()
  File "/opt/zope_core/lib/python/zdaemon/zdoptions.py", line 312, in 
load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/opt/zope_core/lib/python/ZConfig/loader.py", line 37, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/opt/zope_core/lib/python/ZConfig/loader.py", line 71, in loadURL
    return self.loadResource(r)
  File "/opt/zope_core/lib/python/ZConfig/loader.py", line 137, in 
loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/opt/zope_core/lib/python/ZConfig/schema.py", line 43, in 
parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/__init__.py", line 
31, in parse
    parser.parse(filename_or_stream)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", 
line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", 
line 312, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/opt/zope_core/lib/python/ZConfig/schema.py", line 119, in 
startElement
    getattr(self, "start_" + name)(attrs)
  File "/opt/zope_core/lib/python/ZConfig/schema.py", line 306, in 
start_import
    src = self._loader.schemaComponentSource(pkg, file)
  File "/opt/zope_core/lib/python/ZConfig/loader.py", line 154, in 
schemaComponentSource
    __import__(package)
  File "/opt/zope_core/lib/python/ZServer/__init__.py", line 36, in ?
    from HTTPServer import zhttp_server, zhttp_handler
  File "/opt/zope_core/lib/python/ZServer/HTTPServer.py", line 79
    print
    ^

How can I rectify this?
pavel


More information about the Zope-Dev mailing list