On 9 Jul 2004 at 21:17, Dieter Maurer wrote:
> Check whether the connection is maintained in a "_v_" attribute
> (in this case, it is per thread).
> Otherwise, the connection would need to be maintained in a module
> global registry indexed with a DA id (e.g. its ZODB path).
This is the deep magi
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 ImageFi
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 componen
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
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 advanta
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 Wind
Yesterday, I upgraded to Zope 2.7.1.
Because several of our extensions broke, I have to look into detail
at the changed and I saw that the "hasattr geddon" was started.
Unfortunately, in a way that I feel as not optimal and error prone...
In the module I saw, "if hasattr(obj, attr)" has been repl
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 w
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 aren'
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 strea
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 ZsapdbDA
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
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 TALPa
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
p
14 matches
Mail list logo