Re: Was:([Zope-dev] HELP PLEASE)
Hi, After viewing all log-files, i have found out, that everytime when a SQL-Method was called and the SQL-Method takes several minutes to return a result then a erro code 13 was raised. Last time i change the DA from ZPygres to ZPsycopg, because of the error code 13, but that was not the problem. The problem seems that if a SQL-query takes several time, then the error is raised. There was a message from Shai Berger written on Mon, 06 Aug 2001 18:44:06 +0300 which describes(for me) this problem. thanls as Andre Schubert schrieb: The only things i know, are the following lines in the stupid_log_file. 2001-10-14T18:03:21 ERROR(200) zdaemon zdaemon: Sun Oct 14 20:03:21 2001: Aiieee! 32437 exited with error code: 13 -- 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001: Houston, we have forked -- 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001: Houston, we have forked -- 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001: Hi, I just forked off a kid: 588 as Richard Jones schrieb: On Monday 15 October 2001 17:09, Andre Schubert wrote: Hi all, i have serious problems with my zope. Last time he dies very often with error code 13,and since to today he slows down extremly. To view the Control_Panel/DebugForm it takes up to 1 minute and thats not acceptable. How can i track down these problems. I run Zope-2.2.4 on Immunix-RedHat 6.2 Hi, all Is there anybody, who can help me tracking down where the Error Code: 13 comes from, it is very important for my Zope Installation. You probably need to give more information - like where this error code 13 appears. If it's an OSError or IOError, it's probably an Access Error (as defined in the errno module, EACCES). What _that_ means depends entirely on the _rest_ of the error, which you haven't supplied. A full traceback of the error will go a long way to helping you. Richard ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZCatalogIndexes
The patch is now in the CVS. Thanks for submitting. Andreas - -Andreas Jung Zope Corporation- - EMail: [EMAIL PROTECTED]http://www.zope.com - - Python Powered http://www.python.org - - Makers of Zope http://www.zope.org - -Endings are just Beginnings - - - Original Message - From: brian.r.brinegar.1 [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 17, 2001 17:41 Subject: [Zope-dev] ZCatalogIndexes A bug in ZCatalog/dtml/manageIndex.dtml prevents users from adding Indexes without having JavaScript enabled. The manageIndex.dtml form submits to addIndexForm which was used before PluginIndexes (2.4 I think). ZCatalog/dtml/addIndexForm.dtml is no longer needed ZCatalog/dtml/manageIndex.dtml needs the following changes to work without javascript: line 75: form action=addIndexForm method=get Change to: form action=dtml-absolute_url; method=get line 77: select class=form-element name=index_type Change to: select class=form-element name=:action This fixes the problem. --Brian Brinegar ECN Web Technician MSEE 104 A 494-3106 http://www.geeksoft.net/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] standard_error_message and displaying non-html content.
Steve Alexander writes: seb bacon wrote: I don't believe there is a clean way. I've changed the source not to display its own html at all. It's not nice, but I suppose that's the benefit of OSS. Is there a FishBowl proposal on remedying this? If not, there should be one. Perhaps someone who has this itch to scratch can get the ball rolling? First, thanks for the quick response. Secondly, I would be willing to start this process, but my knowledge of Zope internals is patchy at best, so I might not be the best person for this. Still, if no-one else wants to, I will give it a go. Just to clarify, I am only concerned at present with the code in HTTPResponse that, in the case of an exception, scans for !doctype html or html, and wraps them in html if these are not found. (Seb, does this cover the problems you experienced?) I think there is a more general problem of making Zope content-neutral, but that is a proposal for another time. Regards, Noel Duffy. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] standard_error_message and displaying non-html content.
On Thursday 18 October 2001 10:19 am, Noel Duffy allegedly wrote: [snip] Just to clarify, I am only concerned at present with the code in HTTPResponse that, in the case of an exception, scans for !doctype html or html, and wraps them in html if these are not found. (Seb, does this cover the problems you experienced?) I think there is a more general problem of making Zope content-neutral, but that is a proposal for another time. Regards, Noel Duffy. I think the way to proceed is to create a fishbowl proposal to change ZPublisher so that no HTML wrapping takes place if the Content-Type is some thing other than text/html. Unfortunately changing magic like this has a tendancy to break code that unwittingly relies on it. The fishbowl allows everyone to give that due consideration. I think this is a great idea BTW. /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] zope redistibution
hi, i use zope 2.4.1 and the redistribution fuction works not. i can not distribute a product under allowance of redistribution. if i want to distrbute on another zope installation it says, that this is not redistributable, although i marked explicitely 'allow redistribution' on the other distribution! it's now a problem for me, because i relied on this. i can not reuse my improved product! can anyone help me, please. thanx lukas ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] standard_error_message and displaying non-html content.
I think the way to proceed is to create a fishbowl proposal to change ZPublisher so that no HTML wrapping takes place if the Content-Type is some thing other than text/html. Unfortunately changing magic like this has a tendancy to break code that unwittingly relies on it. The fishbowl allows everyone to give that due consideration. I think this is a great idea BTW. Yeah it would be useful since I currently check to see if the request is an xmlrpc one to return xml instead of html. This may be simply part of the new component architecture to have text/plain treated differently. Cheers. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] standard_error_message and displaying non-html content.
I wanted to throw 2 cents in to this thread from my previous problems/questions about error_message. I think they are slightly related. Maybe someone can filter my newbie-isms and use some of this in the Dogbowl. I would like to have more control over the standard_error_message auto-rendering of error_message and error_tb. These should be treated more like typical methods in Zope to be consistent with everything else. (like standard_html_header) ;) -Trevor What is error_message? Where does the autoformatting come from, and how do I alter it? Can I modify it to just grab the error and not all the other Zope stuff? Why is this so stealthy compared to the rest of Zope? Why should I have to turn off debugging for tracebacks to be commented out in the HTML? With my Zope understanding so far...if it is an object, then I can include it or not in my standard_error_message. So why is it hardcoded in Zope? Example: If I have error_tb in my standard_error_message, then it renders, if not - it's hidden. Current Zope renders it anyway. Why isn't it treated like an object like the rest of Zope? Is there a library of these error messages that can be modified to provide better information for users to find what they are looking for. They come from somewhere? Formulator allows you to customize your error messages. It would be great if Zope_Error handling were that friendly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Noel Duffy Sent: Thursday, October 18, 2001 10:20 AM To: Steve Alexander Cc: seb bacon; [EMAIL PROTECTED] Subject: Re: [Zope-dev] standard_error_message and displaying non-html content. Steve Alexander writes: seb bacon wrote: I don't believe there is a clean way. I've changed the source not to display its own html at all. It's not nice, but I suppose that's the benefit of OSS. Is there a FishBowl proposal on remedying this? If not, there should be one. Perhaps someone who has this itch to scratch can get the ball rolling? First, thanks for the quick response. Secondly, I would be willing to start this process, but my knowledge of Zope internals is patchy at best, so I might not be the best person for this. Still, if no-one else wants to, I will give it a go. Just to clarify, I am only concerned at present with the code in HTTPResponse that, in the case of an exception, scans for !doctype html or html, and wraps them in html if these are not found. (Seb, does this cover the problems you experienced?) I think there is a more general problem of making Zope content-neutral, but that is a proposal for another time. Regards, Noel Duffy. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to get the FULL path of an uploaded file?
Does anyone know offhand how to get the FULL path of an uploaded file? I am using the standard HTML input type=file within a form inside a DTML document. Inside my python method, I am getting a ZPublisher.HTTPRequest.FileUpload object. Fine. This stuff wraps the standard python cgi module to give you access to the headers and contents of the file. You can use a FileUpload the same way you would use a file. The problem is: the name of the FileUpload is the leaf name of the file, but not the entire path. Does anyone know how to get the FULL PATHNAME as listed in the input field in the HTML form? I believe Python is being too clever by half and by the time I get my grubby hands on it, the value is gone. The only thing I could come up with was an awful little JavaScript hack where I snag the value from the input field into another hidden field using OnChange/OnClick/OnBlur, and grab it later. Any suggestions would be greatly appreciated. Thanks! (Should I repost this question on a python-dev list? hm) --Craeg ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to get the FULL path of an uploaded file?
On Thursday 18 October 2001 02:37 pm, Craeg K. Strong allegedly wrote: Does anyone know offhand how to get the FULL path of an uploaded file? Some browsers (IE notably) supply this information. Most others do not, they only provide the file name. It is not however, terribly useful to the server or secure to store this information unless such data is not publically accessible. I am using the standard HTML input type=file within a form inside a DTML document. Inside my python method, I am getting a ZPublisher.HTTPRequest.FileUpload object. Fine. This stuff wraps the standard python cgi module to give you access to the headers and contents of the file. You can use a FileUpload the same way you would use a file. The problem is: the name of the FileUpload is the leaf name of the file, but not the entire path. Does anyone know how to get the FULL PATHNAME as listed in the input field in the HTML form? I believe Python is being too clever by half and by the time I get my grubby hands on it, the value is gone. This is not a Python issue, many browsers simply do not provide this information when the data is posted. The only thing I could come up with was an awful little JavaScript hack where I snag the value from the input field into another hidden field using OnChange/OnClick/OnBlur, and grab it later. That is probably the best way I can think of. Don't feel bad though, Javascript code is always a hack! 8^) Any suggestions would be greatly appreciated. Thanks! (Should I repost this question on a python-dev list? hm) --Craeg /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to report stuff with the collector down?
On Tue, 16 Oct 2001, Ken Manheimer wrote: On Tue, 16 Oct 2001, Andy McKay wrote: So what is going on with the Collector, its been what a month now? See http://dev.zope.org/Wikis/DevSite/Projects/CollectorReplacement/CurrentStatus for current status. In fact, i'm hoping to have something to test tomorrow. I've set up the new collector on new.zope.org, so anyone with an account there can create one and try it out. There are a few small (probably quick fix) but crippling bugs - most notably malfunctioning full-text search - which i don't have time to fix before leaving for some RR, so it's definitely not yet ready for prime time. I expect to get to them on monday, and have them solved soon after - and maybe people in the know will look at the issue collection i assembled in http://new.zope.org/Members/klm/ColDev and have some answers ready for me when i return...-) If you create a tracker of your own, you can try out the workflow - i'm pretty keen on what's possible with that kind of facility. For the whole picture, do a CVS checkout of the CMF and install the collector in a site of your own - there's an INSTALL.txt in the product directory with instructions. Visit the portal_workflow tool in your portal, and examine the collector_issue_workflow. Lotsa potential. Feel free to add reports of substantial bugs in the collector i mention above, as long as they're not mentioned in existing issues - which, in the absence of full text search, means scanning the existing ones... -- Ken [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZCatalog UnpickleableError
Under a 2.4.1 install I recieve the following error while trying to add a ZCatalog. Traceback (innermost last): File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /data/www/Zope/src/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /data/www/Zope/src/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 240, in commit File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZODB/Transaction.py, line 302, in commit File /data/www/Zope/src/Zope-2.4.1-src/lib/python/ZODB/Connection.py, line 418, in commit (Info: (('Products.PluginIndexes.TextIndex.GlobbingLexicon', 'GlobbingLexicon'), '\x00\x00\x00\x00\x00\t\xb1\xac', '')) UnpickleableError: Cannot pickle lt;type 'module'gt; objects Any hints on debugging/fixing the problem? --Brian Brinegar ECN Web Technician MSEE 104 A 494-3106 http://www.geeksoft.net/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Zope Cygwin
Chris McDonough writes: Hope it's OK to continue crossposting this thread. I wanted to torture test the Zope session manager under the cygwin-built Zope using ab, which is good real-world threading test. It appears that neither ab nor wget much like something about their communication with the cygwin-built Zope. Here's a wget session with a cygwin-built python/Zope combo: --22:14:42-- http://localhost/ = `index.html' Connecting to localhost:80... connected! HTTP request sent, awaiting response... 200 OK 2 Server: Zope/(unreleased version, python 2.1.1, cygwin) ZServer/1.1b1 3 Date: Wed, 17 Oct 2001 02:14:42 GMT 4 Connection: close 5 Content-Type: text/html 6 Content-Length: 3012 7 0K - .. (freeze) Here's a session with a VC++-built Zope: $ wget -S http://localhost:8080/ --22:17:20-- http://localhost:8080/ = `index.html' Connecting to localhost:8080... connected! HTTP request sent, awaiting response... 200 OK 2 Server: Zope/(unreleased version, python 2.1.0, win32) ZServer/1.1b1 3 Date: Wed, 17 Oct 2001 02:17:20 GMT 4 Connection: close 5 Content-Type: text/html 6 Content-Length: 194 7 0K -[100%] 22:17:20 (9.47 KB/s) - `index.html' saved [194/194] It's almost as if the wrong content-length is provided by the Cygwin-built Zope and both wget and ab are waiting for data. Browsers OTOH don't seem to care; they happily render the page as its given to them by the Cygwin-built Zope. I'll investigate this further when possible. Yup... I get the same results :-( If you can tell me where the code is in Zope that is determining the Content-Length I will look into the Python Cygwin 'C code that is being called. Cheers Norman ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Cygwin
I think its in ZServer/HTTPResponse.py - Original Message - From: Norman Vine [EMAIL PROTECTED] To: 'Chris McDonough' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 20:18 Subject: RE: [Zope-dev] Zope Cygwin If you can tell me where the code is in Zope that is determining the Content-Length I will look into the Python Cygwin 'C code that is being called. Cheers Norman ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )