[Zope] Zope pretends to receive and send XMLRPC data, but strace sees nothing !

2007-01-19 Thread yacine chaouche
Sorry, it seems I didn't click on the right button :), here is the message sent to the list this time : Thank you Andreas for showing me this nice tool which is tcpflow. Thanks to it, I am now sure that the probleme is coming from zope. Would you take a look at this : [EMAIL

Re: [Zope] Zope pretends to receive and send XMLRPC data, but strace sees nothing ! (fwd)

2007-01-19 Thread yacine chaouche
The toutCompter methode does a lot of thing and it would take a triple couples of lines to describe what it does all. Anyway, is there a way for me to detect ConflictErrors ? they don't appear on the console so i guess they are catched. Y.Chaouche 2007/1/19, Gabriel Genellina [EMAIL PROTECTED]:

Re: [Zope] Zope pretends to receive and send XMLRPC data, but strace sees nothing ! (fwd)

2007-01-19 Thread yacine chaouche
I mean triple couples of lines of code. 2007/1/19, yacine chaouche [EMAIL PROTECTED]: The toutCompter methode does a lot of thing and it would take a triple couples of lines to describe what it does all. Anyway, is there a way for me to detect ConflictErrors ? they don't appear on the console

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Maciej Wisniowski
Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. Have you tried to go into Edit form of your external method and just hit Save button? This should tell you that External method was

Re: [Zope] Running egg-packaged product tests

2007-01-19 Thread S├ębastien Nicouleaud
Maybe I should reformulate : Is there a simple way to run unit tests for products packaged as eggs with Zope 2.9.6+Five 1.4.2, or with Zope 2.10.1 ? Thanks Seb 2007/1/12, S├ębastien Nicouleaud [EMAIL PROTECTED]: Hello, I'm trying to run tests for an egg-packaged product (deployed in

Re: [Zope] How to get modules that are called by external methodsreloaded?

2007-01-19 Thread Jonathan
- Original Message - From: Gaute Amundsen [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, January 19, 2007 4:36 AM Subject: [Zope] How to get modules that are called by external methodsreloaded? Subject says it sall. Only way I have found so far is to restart zope, and on a

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Gaute Amundsen
On Friday 19 January 2007 12:13, Maciej Wisniowski wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. Have you tried to go into Edit form of your external method and just hit

Re: [Zope] How to get modules that are called by external methodsreloaded?

2007-01-19 Thread Gaute Amundsen
On Friday 19 January 2007 13:42, Jonathan wrote: - Original Message - From: Gaute Amundsen [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, January 19, 2007 4:36 AM Subject: [Zope] How to get modules that are called by external methodsreloaded? Subject says it sall. Only way I

Re: [Zope] How to get modules that are called by external methodsreloaded?

2007-01-19 Thread Maciej Wisniowski
If you are really stuck with a single server for production and development one possible work-around is that you could copy the module source code into your external method, develop/debug, then move it out into its own file when has been completed. One may try with different Zope setup. I

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread yacine chaouche
I think that when you restart zope, it compiles everything that is in the products directory. So what happens when you compile it for yourself while zope is running ? If you have only one machine, you can setup multiple zope instances to develop and debug on them so that you are not obliged to

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
I forgot to answer one question: the Python I'm using is 2.3.5. (As with Zope, I chose this version to match the version on the server I'm developing for.) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 10:19 PM To: Ken Winter;

Re: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Jonathan
- Original Message - From: Ken Winter [EMAIL PROTECTED] To: 'Zope List' zope@zope.org Sent: Friday, January 19, 2007 8:52 AM Subject: RE: [Zope] FW: Problem Starting Zope after Installation Here is the .bat file: @set PYTHON=C:\Program Files\Zope-2.8.8-final\bin\python.exe @set

Re: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Jonathan
- Original Message - From: Ken Winter [EMAIL PROTECTED] To: 'Jonathan' [EMAIL PROTECTED]; 'Zope List' zope@zope.org Sent: Friday, January 19, 2007 9:45 AM Subject: RE: [Zope] FW: Problem Starting Zope after Installation Jonathan ~ I tried your suggestion and got basically the same

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Jan 2007, at 14:09, yacine chaouche wrote: I think that when you restart zope, it compiles everything that is in the products directory. So what happens when you compile it for yourself while zope is running ? Sorry, that's just plain

Re: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Maciej Wisniowski
I just checked an older version of python (2.3.4) on my linux server and the 'from datetime import datetime' command worked just fine, so your 2.3.5 version should have 'datetime'. All i can think of is that your python installation is pooched. Can you 'uninstall' python, and then

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread yacine chaouche
You are right Jens, but I thought that Gaute wanted to apply some modifications to a module and see the results live, without restarting zope. Y.Chaouche 2007/1/19, Jens Vagelpohl [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Jan 2007, at 14:09, yacine chaouche

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Andreas Jung
--On 19. Januar 2007 12:01:06 -0500 Ken Winter [EMAIL PROTECTED] wrote: I just uninstalled *both* Zope and Python, then downloaded and installed Zope 2.9.6 (rather than 2.8.8, since I just heard that my server is upgrading). Trying to run this yielded the attached error, which at least is a

Re: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread rawsystems
google is your friend. http://plone.org/documentation/error/importerror-no-module-named-implpython bobb - Original Message - From: Ken Winter [EMAIL PROTECTED] To: 'Jonathan' [EMAIL PROTECTED]; 'Zope List' zope@zope.org Sent: Friday, January 19, 2007 12:01 PM Subject: RE: [Zope] FW:

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Dieter Maurer
Gaute Amundsen wrote at 2007-1-19 10:36 +0100: Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. You can use Python's reload builtin to reload them. Be warned however, that you must reload also any module that

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Andreas Jung
--On 19. Januar 2007 10:36:04 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. 10 minutes is too long. Even Plone starts on modern

Re: [Zope] How to get modules that are called by external methodsreloaded?

2007-01-19 Thread Gabriel Genellina
At Friday 19/1/2007 09:42, Jonathan wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. AFAIK there is no way to reload a module called by an External Method without restarting

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
Andreas ~ I'm installing the Zope for Dummies version (appropriate to my level of expertise): Download Zope-2.9.6-win32.exe, double-click on it, and take all the defaults (except that I don't install it as a Windows service). I'm not sure how even I can do that wrong. Is there a way? ~ Thanks

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Gabriel Genellina
At Friday 19/1/2007 11:45, Ken Winter wrote: I tried your suggestion and got basically the same error (see attached screen shot). What does that imply about what to do next? Something is really *wrong* with your Zope install - C:\Program Files\Zope-2.8.8-final\lib\python\DateTime should be

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
Thanks Bobb ~ What I got from the reference your provided is that Zope 2.9.6 requires Python 2.4. So, trying to be as thorough as I can in light of messages from other forum participants, I: 1. Uninstalled Python (2.3) and Zope (2.9.6) again. 2. Deleted the remaining files from Zope instance

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Ken Winter
P.S. Attached is a screen shot showing that ImplPython.py and ImplPython.pyc do exist on my machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Winter Sent: Friday, January 19, 2007 4:54 PM To: [EMAIL PROTECTED]; 'Jonathan'; 'Zope List';

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Gaute Amundsen
On Friday 19 January 2007 19:45, Dieter Maurer wrote: Gaute Amundsen wrote at 2007-1-19 10:36 +0100: Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. You can use Python's reload builtin to reload them.

Re: [Zope] How to get modules that are called by external methods reloaded?

2007-01-19 Thread Gaute Amundsen
On Friday 19 January 2007 19:51, Andreas Jung wrote: --On 19. Januar 2007 10:36:04 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours..

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Andreas Jung
--On 19. Januar 2007 15:34:35 -0500 Ken Winter [EMAIL PROTECTED] wrote: Andreas ~ I'm installing the Zope for Dummies version (appropriate to my level of expertise): Download Zope-2.9.6-win32.exe, double-click on it, and take all the defaults (except that I don't install it as a Windows

RE: [Zope] FW: Problem Starting Zope after Installation

2007-01-19 Thread Andreas Jung
--On 19. Januar 2007 17:14:42 -0500 Ken Winter [EMAIL PROTECTED] wrote: P.S. Attached is a screen shot showing that ImplPython.py and ImplPython.pyc do exist on my machine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Winter Sent: Friday,

[Zope-dev] Zope Tests: 7 OK

2007-01-19 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Jan 18 12:00:00 2007 UTC to Fri Jan 19 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Jan 18 21:06:59 EST 2007

[Zope-dev] Re: [Plone-developers] ploneout - Or how using zc.buildout for a common Zope2 project might look like

2007-01-19 Thread Martijn Faassen
Hanno Schlichting wrote: Martijn Faassen wrote: [snip] Great idea! We should try this. Hanno? :) Yep, we can try that one too. I thought I remembered people reporting bugs about the multiple Products directories at some point, but I cannot remember where that was exactly. I only did go for

[Zope-dev] [Zope2] 'zopectl test' failing on the trunk and 2.10 branch

2007-01-19 Thread Andreas Jung
Hi, although make test reports no errors for the trunk/2.10 branch I get the following errors when running zopectl test. Any ideas? Andreas -- Traceback (most recent call last): File /develop/sandboxes/Zope/Zope2/trunk/lib/python/Testing/ZopeTestCase/profiler.py, line 88, in

Re: [Zope-Perl] Installing pyperl on Mac OS X?

2007-01-19 Thread Felix Schwarz
Daryl Spitzer schrieb: I installed pyperl-1.0.1 (apparently) without error, but `python test.py` fails: pdb tells me that import perl results in ImportError: perl2.so not found. I get the same message if I try import perl in the Python interpreter. So I guess it didn't install properly. Does

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Maciej Wisniowski
Please, stay on the list :) First, isn't Charlie Clark solution good for you? It seems to be reasonable. I have try to use external method but without success... (I have read some post as you suggested it) Create database connection object called 'myconnection' in ZMI and connect it to

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Charlie Clark
Am 19.01.2007, 13:27 Uhr, schrieb Maciej Wisniowski [EMAIL PROTECTED]: Please, stay on the list First, isn't Charlie Clark solution good for you? It seems to be reasonable. Thanks! ;-) I have try to use external method but without success... (I have read some post as you suggested it)

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Maciej Wisniowski
The only thing that's missing for me is using this idiom with existing ZSQL methods and that's because I've forgotten how to get them to render the query rather than execute it. Anyone care to enlighten me! ;-) Not sure if I understand you, but do you think about src__=1 parameter when

Re: RE : [Zope-DB] How lunch SQL request from python script ?

2007-01-19 Thread Ed Leafe
On Jan 19, 2007, at 7:31 AM, Charlie Clark wrote: keep replies on the mailing list so that others can learn from them. rant This is repeated so often that you'd think that the list administrators would get a clue and set the default Reply-to: header to include the list address.

Re: [Zope-DB]found reason: sql query works in database connector but not in ZSQL method

2007-01-19 Thread Charlie Clark
Am 19.01.2007, 17:50 Uhr, schrieb robert rottermann [EMAIL PROTECTED]: it in deed seems not to work. however I do not understand why. If you use callproc() we could probably help you. This is now academical as I resolved to not to use stored procedures that return a record set (tough its a

Re: [Zope-DB] Process one PloneFormGen request into many SQL tables

2007-01-19 Thread Dennis Schulz
Hi Paul, Ok to tell you honestly the truth, as a beginner you should try to leave your fingers of zope 3 /alchemist. The learning curve is steep. You will have to learn about Zope 3 widgets, schemas, interfaces, adapters You have to know how to configure the mapper, have to know how to

Re: [Zope-DB] Process one PloneFormGen request into many SQL tables

2007-01-19 Thread Paul Eipper
Thanks for all the responses, they really help 2) Is a ZSQL Method automatically executed as a transaction? Or do I need to manually define BEGIN; COMMIT; to guarantee I am getting the correct data? Yes. Hmm, that was Yes, it does the transaction thing automatically. or a Yes, you need to