[Zope-Coders] Zope tests: 7 OK, 1 Failed

2005-08-19 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Thu Aug 18 11:01:02 2005 UTC to Fri Aug 19 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Test failures - Subject: FAILED (errors=1) : Zope-trunk Python-2.4.1 : Linux From: Zope Unit Tests Date: Thu Aug 18

[Zope] Cancelling long processes in Zope

2005-08-19 Thread Ausum Studio
How do you stop a long process just triggered, i.e., by accident? One of our apps allows our users to trigger long processes. The way we used to deal with them is to stream response lines so that the user has an idea of what's going on. Nonetheless, some processes aren't worth to watch, so they

Re: [Zope] Cancelling long processes in Zope

2005-08-19 Thread Andreas Jung
I think it is good practice to deal with long-running processes using a dedicated ZEO client and not to use a website for this. Especially because a long-running request allocates one thread. If you have four threads (default) and a user double or trible-clicks on the same link this will eat

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Jens Vagelpohl
On 19 Aug 2005, at 02:22, Willi Langenberger wrote: According to Interesstingly, if i run the test with strace, i never see the test fail (i tried at least 30 times): This sounds like something Tim had mentioned at one point, where tests can fail on a machine that is too fast? Both with

[Zope] Uninstalling a product in a ZopeTestCase

2005-08-19 Thread Marco Bizzarri
Hi all. I'm trying to write a ZopeTestCase where I can check if the import of a missing module is catch or no. I would therefore test something like this: def testImportIsCaught(self): import sys oo_path = filter(lambda x: 'program' in x, sys.path)

[Zope] setting mime type for a python script

2005-08-19 Thread santiago
hello I'm looking for a way to set the mime type served by zope for a python script. I found something for products (looks like : self.self.setFormat(self.content_type) ) but I just can't get that working in my script, because self is not available in scripts any idea of how I could get my

Re: [Zope] setting mime type for a python script

2005-08-19 Thread Andreas Jung
--On 19. August 2005 15:49:31 +0200 santiago [EMAIL PROTECTED] wrote: hello I'm looking for a way to set the mime type served by zope for a python script. I found something for products (looks like : self.self.setFormat(self.content_type) ) but I just can't get that working in my script,

[Zope] Workflow automatic trigger from FTP (PUT) (was Workflow Problem)

2005-08-19 Thread David Pratt
An automatic trigger in workflow appears possible from FTP'd content but to soon to be involved in zope heirarchy. You can get hold of the state_change object from the workflow itself but methods that would normally be available such as its data attribute or manage_ xxxObjects type methods

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Willi Langenberger] Ok, here some data points... bender:~/Zope-2.7.7-final$ cat /proc/version Linux version 2.6.9-11.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.3 20050227 (Red Hat 3.4.3-22)) #1 SMP Fri May 20 18:26:27 EDT 2005 bender:~/Zope-2.7.7-final$ python2.3 Python 2.3.5 (#1,

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Willi Langenberger] Interesstingly, if i run the test with strace, i never see the test fail (i tried at least 30 times): [Jens Vagelpohl] This sounds like something Tim had mentioned at one point, where tests can fail on a machine that is too fast? Dieter said that. I believe him, but it

FIXED: Re: [Zope] URL0 returns index_html not index.html

2005-08-19 Thread Mark Barratt
John Eikenberry wrote: Mark Barratt wrote: I can vaguely see why this is happening. My question: is there a straightforward way of making the links (and error reports) return the actual page address? By actual page address you want the URL with index.html instead of index_html? Given your

Re: [Zope] Uninstalling a product in a ZopeTestCase

2005-08-19 Thread Dieter Maurer
Marco Bizzarri wrote at 2005-8-19 10:49 +0200: You may look how the refresh Product function uninstalls a product. You find the code in App.RefreshFuncs.performRefresh. -- Dieter ___ Zope maillist - Zope@zope.org

Re: [Zope] Cancelling long processes in Zope

2005-08-19 Thread Dieter Maurer
Ausum Studio wrote at 2005-8-19 01:31 -0500: How do you stop a long process just triggered, i.e., by accident? If the process is an external process (rather than a thread), you sent it a signal (e.g. a SIGTERM). This may not work in Python 2.3.x for most signal, as these Python versions block

Re: [Zope] Workflow question

2005-08-19 Thread Dieter Maurer
David Pratt wrote at 2005-8-18 20:57 -0300: ... All for exception of one thing - I want to delete the object as part of the workflow since it is no longer needed. ... I use manage_delObjects like so: # Delete original object from the upload folder

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Dieter Maurer
Tim Peters wrote at 2005-8-18 17:16 -0400: ... I'm not sure Dieter's info is current either. The SIGCHLD handler in current Zope 2.7.7's zopectl.py explicitly catches and ignores the specific exception you reported: Good! Something like that I did for our Zope 2.7.2. ... But looks like

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Dieter Maurer
Hi Tim, Tim Peters wrote at 2005-8-19 11:15 -0400: ... The tests are dodgy sounds appealing until you think about what they do related to the point of failure: spawn a process, and wait for it to exit later, passing waitpid() the pid returned by spawnve(). There just isn't anything complicated

[Zope] OOP and Zope.

2005-08-19 Thread Fernando Lujan
Hi, I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation... For instance, how can I define classes and instances once I just work with dtml-methods and dtml-documents? Thanks. Fernando Lujan ___

Re: [Zope] Workflow question

2005-08-19 Thread David Pratt
Hi Dieter. This is an excellent idea! I was looking at this to restrict the content that could be put into the folder as well. This fits really well with this too. First step is to make new type - will do this today but might need to ask a question or two when I get to bobo traverse

Re: [Zope] OOP and Zope.

2005-08-19 Thread Andreas Jung
--On 19. August 2005 12:16:55 -0600 Fernando Lujan [EMAIL PROTECTED] wrote: Hi, I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation... For instance, how can I define classes and instances once I just work with dtml-methods and

Re: [Zope] OOP and Zope.

2005-08-19 Thread Andreas Jung
--On 19. August 2005 12:16:55 -0600 Fernando Lujan [EMAIL PROTECTED] wrote: Hi, I try to find information about programming in Zope with the OO paradigm. I didn't find many documentation... For instance, how can I define classes and instances once I just work with dtml-methods and

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Dieter Maurer] There is one essential thing you stress over and over again -- but which I am not sure: You say, the exception in tearDown means that the test completed successfully -- without any error. Oh no, that's not what I'm saying. As you say next, However, I am