Re: [Zope-dev] opinion: speeding up large PUT uploads
Hello, If you look above I had problems with zope creating temp files, as I am using Mac OS X and Webdav to Zope mounted on the same machine. There is some race condition on locks in mach kernel, and sometimes zope dies, as open system call never returns. I had two choices, one to fix Darwin kernel, and one to make TempFile use StringIO, which worked wonderfully. You can override make_file of FieldStorage to return StringIO(), or cStringIO(). Now there are no problems with locked out files, for me. laters, pavel ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] OS X 10.3.8 + mount_webdav + Zope all on powerbook
Florent Guillaume wrote: But why oh why are you useing mount_webdav for Zope's files ? In the best case it would still slow down things immensely. Because I am using vim, which in comparison to cadaver, can be configured to recognize extensions in from of *_html *_py and *_sql. Because I can use grep and find and other unix tools to locate stuff that i need. Because I am a power unix user and cadaver strips away everything I know about file manipulation. regards, pavel ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] editing zope files
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 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
FIXED: Re: [Zope-dev] editing zope files
Was a spacing issue thanks to #zope on freenode, pavel ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zope /tmp file usage
Hi, I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files. I am using zope over webdav and sometimes webdav tries to create a tmp file, of some sort and some parts of the system lock up. There are xml parsers,mime decoders all of which do have binary code bits, so I asking for expert advice, if someone knows of what circuimstances zope would use /tmp directory to create a file... your help will be greatly appreciated. Pavel ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )