Re: [Zope-dev] Streaming large files

2004-07-09 Thread Eugene
Hello Thilo, Thursday, July 8, 2004, 9:07:18 PM, you wrote: I don't know how it relates to Zope. There's FFServer (http://ffmpeg.sf.net) - powerful streaming solution. Or you may be interested in www.MMManager.org - Multimedia manager for Zope. TS hi! TS I have to stream large mpeg-files over

[Zope-dev] Re: Streaming large files

2004-07-09 Thread Godefroid Chapelle
Thilo Staebler wrote: hi! I have to stream large mpeg-files over http with range support. this works quite nice until the client seeks in the (media)player and the files aren't to large, because zope caches the whole file... ...so each seek means streaming the whole file from the requested

[Zope-dev] TALParser barfing on byte-order marked utf8 XML files.

2004-07-09 Thread Romain Slootmaekers
Yo, We are using TAL for things other than ZPT. but are having problems with files that include a BOM preamble. the problem is that althought the underlying XML parser is capable of parsing these kind of files, TALParser initialises his parent without encoding (XMLParser.__init__(self) in

[Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-09 Thread Brad Clements
I am using ZsapdbDA with SAPDB (now MaxDB) and have run into problems when Zope has more than one thread. The folks at SAP suggest that there should be one database connection per thread, rather than sharing one connection across threads. I haven't yet looked at the Zsapdb source, but I think

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-09 Thread sathya
sathya wrote: we have been looking at psycopg for postgres. zope opens atleast one connection per zope thread. I have obeserved the same for mysql as well. Are you creating your own threads within zope ? in which case you have to do the locking yourself Brad Clements wrote: I am using

Re: [Zope-dev] Streaming large files

2004-07-09 Thread Marc Lindahl
On Thursday, July 8, 2004, at 01:07 PM, Thilo Staebler wrote: hi! I have to stream large mpeg-files over http with range support. this works quite nice until the client seeks in the (media)player and the files aren't to large, because zope caches the whole file... ...so each seek means

Re: [Zope-dev] Streaming large files

2004-07-09 Thread Thilo Staebler
thanks a lot for your answeres! I think switching to Zope 2.7.1 and using IStreamIterators did the job for me :-) thilo Thilo Staebler wrote: hi! I have to stream large mpeg-files over http with range support. this works quite nice until the client seeks in the (media)player and the files

[Zope-dev] cStringIO strange errors

2004-07-09 Thread Tor Oskar Wilhelmsen
Hi I'm using the code below to fetch an image from a database, and for inserting the image as an Image object in ZOPE. The strange thing is that the code causes python to crash, but sometimes it work (for 1 of 10 or something like that).Im using Python 2.3.3 for Windows and Zope 2.7.0 for

[Zope-dev] Re: cStringIO strange errors

2004-07-09 Thread Tres Seaver
Tor Oskar Wilhelmsen wrote: Hi I'm using the code below to fetch an image from a database, and for inserting the image as an Image object in ZOPE. The strange thing is that the code causes python to crash, but sometimes it work (for 1 of 10 or something like that). Im using Python 2.3.3 for

[Zope-dev] Re: hasattr geddon

2004-07-09 Thread Casey Duncan
On Fri, 9 Jul 2004 16:22:17 +0200 Dieter Maurer [EMAIL PROTECTED] wrote: [..] The hasattr replacement in Python's __builtin__ could look like: _marker = [] def hasattr(obj, attr): return getattr(obj, attr, _marker) is not _marker Opinions? +1 Another advantage to a

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-09 Thread Dieter Maurer
Brad Clements wrote at 2004-7-9 09:35 -0400: I am using ZsapdbDA with SAPDB (now MaxDB) and have run into problems when Zope has more than one thread. The folks at SAP suggest that there should be one database connection per thread, rather than sharing one connection across threads. This is

Re: [Zope-dev] How to add sections to zope.conf?

2004-07-09 Thread Dieter Maurer
Chris Withers wrote at 2004-7-4 09:19 +0100: Say I have a process which needs some configuration but which is based on zope. How do I add arbitary sections into zope.conf at the top level and then how do I get hold of the configuration? What I'd like to do (and tried!) is to write a

Re: [Zope-dev] Zope 2.7.0 and Pythom Image Library

2004-07-09 Thread Dieter Maurer
John Ziniti wrote at 2004-7-6 20:44 -0400: ... I've had problems using PIL-based products in Zope because Zope has its own module called ImageFile and Zope does some sys.path munging so that when certain PIL modules do import ImageFile, they import the Zope version, instead of the ImageFile.py