RE: [Zope] Random Module

2005-08-25 Thread Jim Abramson
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

[Zope] funny-looking events in the event.log

2005-08-10 Thread Jim Abramson
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

RE: [Zope] How to instruct my Zope to use another pytrhon than the oneit was budled with.

2005-08-03 Thread Jim Abramson
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

RE: [Zope] zserver blocking behavior with a slow request

2005-08-03 Thread Jim Abramson
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.

RE: [Zope] zserver blocking behavior with a slow request

2005-08-03 Thread Jim Abramson
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)

RE: [Zope] Sharing global data between threads / locking a method

2005-06-27 Thread Jim Abramson
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

RE: [Zope] External editor for ZMI

2005-06-23 Thread Jim Abramson
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

[Zope] merging the contents of two acl_users folders

2005-06-23 Thread Jim Abramson
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.

RE: [Zope] Exiting a Loop

2005-06-15 Thread Jim Abramson
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

RE: [Zope] python question

2005-05-31 Thread Jim Abramson
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

RE: [Zope] python question

2005-05-31 Thread Jim Abramson
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

RE: [Zope] display object without index_html

2005-05-19 Thread Jim Abramson
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

[Zope] the joy of hacking ZPublisher

2005-05-18 Thread Jim Abramson
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

RE: [Zope] custom_zodb.py and Control_Panel

2005-05-02 Thread Jim Abramson
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

RE: [Zope] high loads, more threads, spinning wheels

2005-05-02 Thread Jim Abramson
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?)

RE: [Zope] high loads, more threads, spinning wheels

2005-04-29 Thread Jim Abramson
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

[Zope] custom_zodb.py and Control_Panel

2005-04-29 Thread Jim Abramson
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',

[Zope] tuples of length 2 in DTML

2005-04-14 Thread Jim Abramson
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

[Zope] how to generate debug.log for requestprofiler

2005-04-14 Thread Jim Abramson
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

RE: [Zope-DB] Returning values from Oracle function/procedurewithZSQLMethod

2005-04-11 Thread Jim Abramson
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.