You can keep all the modules/types/etc you want Zope to stop hassling
you about into a single file, restart Zope, and enjoy life again.
create a Product called whatever you like (we called ours
'GlobalModules')...
our looks like this:
in Products/GlobalModules: __init__.py
# Global module
Just found these in the event log of a relatively low-traffic Zope 2.7.4
instance.
Does this just seem like a local network connectivity issue or should I
be concerned? (If yes, any advice where to begin diagnosing this kind
of a report?)
Thanks,
Jim
2005-06-08T11:32:55 ERROR(200) ZServer
I also have another Python version on my system and i was
wondering how could i tell Zope to use that one instead of
the one it comes with from the installation executable package.
If you start up using the runzope.bat script in ZOPE_HOME/bin, just edit
the value of PYTHON to point to the
I'm finding that once a user requests a page which runs a
particularly slow sql (say up to 5 minutes), any other
subsequent requests seem to take the hit as well, and return
very slowly.
Take a look at DadlockDebugger product - you'll see what is
happening with your Zope threads.
I have 8 zserver threads and a ZODB pool size of 10. I'm fairly
certain I'm not maxing these out. So is this blocking effect just
expected behavior for zope?
No, there should be no blocking.
Although some colleagues reported similar behaviour with a
(non Zope/ZServer)
A possible solution: create a property field on the folder
where the external methods are stored. Have your external
method update this property field when the external method
starts and again when it exits. This way you can test
whether or not the external method is currently in
I do recommend Boa Constructor, which feels the most like you're
actually editing source code files (though you're editing the zope
objects in place). This program has actually saved my life.
Caveats: It has a few dependencies you'll need to track down, and it's
a little buggy/quirky. If
Title: merging the contents of two acl_users folders
Can it be done?
If not that, the ability to move selected users from one acl_users to another would be a decent plan B.
This is a one-time move, so I consider any effective solution viable, even if some manual hacking is involved.
Did you try dtml-try around the loop and dtml-raise inside of it?
Never done this myself, just a thought.
Jim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of J Cameron Cooper
Sent: Wednesday, June 15, 2005 1:37 PM
To: Asad Habib
Cc: zope@zope.org
sort() on a sequence does not return anything. It operates on the
[mutable] sequence in place.
You probably want to push this bit into a python script where you have
more elbow room, and do this:
files.sort(etc,etc)
return files[0]
hth,
Jim
-Original Message-
From: [EMAIL
blast!
i'll keep my mouth shut til I get the library memorized.
Jim
-Original Message-
From: Tino Wildenhain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 31, 2005 4:06 PM
To: Jim Abramson
Cc: Kate Legere; Zope
Subject: RE: [Zope] python question
Am Dienstag, den 31.05.2005
Though less elegant, perhaps this will work:
dtmlIndex = DTMLFile('dtml/indexHomepage', globals())
def index_html(self):
docstring!
return self.dtmlIndex(self,self.REQUEST)
hth,
Jim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Title: the joy of hacking ZPublisher
In my Zope 2.7 Product, I'm trying to implement a special folder, which intercepts the publishing call to any subobject and wraps the entire call in another.
A concrete example: where the default action would be to traverse
v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in
INSTANCE_HOME)
custom_zodb.py is no longer used for Zope 2.7.x. You define
databases in zope.conf.
Ah, OK thanks.
Is it for the collector that, aside from messing up the ZMI a bit, the
custom_zodb.py approach is
Thanks Stefan Jens...
if yes, would upping the number of ZODB connections
effectively raise
the ceiling - e.g. 12 ZODB connections - 12 threads should perform
properly ? Is increasing the number of ZODB cx's
possible, let alone
advisable? (why the default of 7 - not 6 or 8?)
Can this be taken to mean that:
- the practical maximum number of threads to run your single (non-ZEO)
zope instance is {number of zodb connections in pool} else you risk
deadlock
if yes, would upping the number of ZODB connections effectively raise
the ceiling - e.g. 12 ZODB connections - 12
Title: custom_zodb.py and Control_Panel
v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in INSTANCE_HOME)
-
import os
import ZODB.FileStorage
import ZODB.DB
filename = os.path.join(INSTANCE_HOME, 'var',
Title: tuples of length 2 in DTML
Tuples of length 2 just don't seem to work in DTML. I don't know what it is, certainly never seen any documented explanation before. The simple test below explains itself .
Can anyone explain why the results are what they are? I'd go to the collector if it
Title: how to generate debug.log for requestprofiler
At some point btn Zope 2.6.2 and 2.7.4, it seems way you set up a logfile to be used by requestprofiler.py has changed.
Now I need debug.log - whats the proper way to generate one? I've just been googling and can't find explicit
When you do our own connection management, are you able to avoid
DCOracle2 leaking connections? In our Zope
2.6.1/DCOracle2-1.3b server, we accumulate sessions where
Oracle is waiting for a response from Zope, but Zope
apparently thinks it closed that connection and opened a new
one.
20 matches
Mail list logo