[Zope] submission
[EMAIL PROTECTED] wrote: Send Zope mailing list submissions to zope@zope.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.zope.org/mailman/listinfo/zope or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Zope digest..." Today's Topics: 1. Re: Permissions, files and folders (Paul Winkler) 2. Re: REQUEST.form variables order (Gaute Amundsen) 3. Rendering Product by index_html (Thomas Adams) 4. Re: Rendering Product by index_html (Andreas Jung) 5. zope-2.8.4 and ZopeXMLMethods (Milos Negovanovic) -- Message: 1 Date: Fri, 21 Apr 2006 12:45:43 -0400 From: Paul Winkler <[EMAIL PROTECTED]> Subject: Re: [Zope] Permissions, files and folders To: zope@zope.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=us-ascii On Fri, Apr 21, 2006 at 09:54:15AM +0200, Erik Billing wrote: Btw, what editor would you recommend for writing python outside Zope. I've frequently used Eclipse with PyDev before, but it's a bit slow and heavy. I've looked around a bit on the free editors without finding anything I like so I'm thinking it might be worth trying a commercial editor. What do you guys use? Emacs :-) It takes a bit of work to get it set up nicely, but there are some really nice features like good pdb integration. e.g. try this: put a "pdb.set_trace()" somewhere in your code, and then run the program from a shell within emacs - e.g. you can start a shell by typing "M-x shell", and then type the command to run your program. When you enter pdb, you can step around the code and emacs shows you where you are in another buffer, opening modules as you step into them. I've said it before: All hail Ken Manheimer! I'm sure plenty of IDEs can do stuff like that, but I'm surprised how many emacs users don't seem to know it's there. (dunno if all that works on Windows, never tried.) The code-completion support is pretty rudimentary, though. It seems to only be good for repeating symbols already in your source file. And no built-in browsing of documentation afaict. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope unresponsive
I'll chime in with a "me too" ( see me thread within the last week on the same list). I haven't looked into it as deeply as you, but I have tried the DeadlockDebugger which itself was inaccessible during the time when zope was spinning. Nothing in the logs. My install is Zope 2.8.5 on RHEL 4 without Zeo. Florent Guillaume wrote: Try DeadlockDebugger. Florent Andy Altepeter wrote: Hey All, I'm experiencing hanging issues with my Zope-2.8.6+zeo setup/ RHEL 4. The hanging isn't categorized by 100% cpu usage. Actually, I had the same issues using 2.8.5, but I've upgraded since then. Here's the situation: I have one zeo client connected to a zeo server on the same box. Apache sits in front, using RewriteRules to request data from zope. After some time (could be 2 minutes or an hour), the zeo client stops responding. Apparently this is called a deadlock or a "spinning zope". I've tried using gdb to attach to the zeo client pid, and use the recipe http://zopelabs.com/cookbook/1073504990 to print a traceback, but the call always aborted with SIGABORT. I've captured all of the requests sent to zope during an uptime window (via Z2.log), and using wget to "replay" the requests. I've also pulled from apache's rewrite log all requests proxied to zope, thinking the Z2.log only writes finished requests. I setup another zeo client (on the same box, different port) and used wget to replay these captures as well. Just running these captures does not cause zope to hang. In fact, I have not been able to cause zope to hang by replaying. There doesn't seem to be any one url or sequence of urls that cause zope to hang. I've tried reinstalling the zope instance, but that didn't help. I've tried using requestprofiler.py to inspect the trace.log. This shows a high number of "hangs", but not on a url that actually triggers a spinning zope. Basically, that's where I'm stuck. Is there anything else I can try? Am I missing something? Thanks for the help, Andy ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: zope unresponsive
Try DeadlockDebugger. Florent Andy Altepeter wrote: Hey All, I'm experiencing hanging issues with my Zope-2.8.6+zeo setup/ RHEL 4. The hanging isn't categorized by 100% cpu usage. Actually, I had the same issues using 2.8.5, but I've upgraded since then. Here's the situation: I have one zeo client connected to a zeo server on the same box. Apache sits in front, using RewriteRules to request data from zope. After some time (could be 2 minutes or an hour), the zeo client stops responding. Apparently this is called a deadlock or a "spinning zope". I've tried using gdb to attach to the zeo client pid, and use the recipe http://zopelabs.com/cookbook/1073504990 to print a traceback, but the call always aborted with SIGABORT. I've captured all of the requests sent to zope during an uptime window (via Z2.log), and using wget to "replay" the requests. I've also pulled from apache's rewrite log all requests proxied to zope, thinking the Z2.log only writes finished requests. I setup another zeo client (on the same box, different port) and used wget to replay these captures as well. Just running these captures does not cause zope to hang. In fact, I have not been able to cause zope to hang by replaying. There doesn't seem to be any one url or sequence of urls that cause zope to hang. I've tried reinstalling the zope instance, but that didn't help. I've tried using requestprofiler.py to inspect the trace.log. This shows a high number of "hangs", but not on a url that actually triggers a spinning zope. Basically, that's where I'm stuck. Is there anything else I can try? Am I missing something? Thanks for the help, Andy ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zope.conf question
Hi. Is there a way to create an INSTANCE_HOME variable in zope.conf more dynamically than hardcoding the path. I want an app to be platform portable so this will be different? Alternatively, I have been considering overriding zope.conf settings for use in zope.app.twisted.main and an interested in any suggestion for best approach to this. In z3 services are started with: service = setup(load_options(args)) args are a list ['-C', '/path/to/my/instance/etc/zope.conf'] In load_options, the default zope.conf.in is looked for else it gives it a value of None then options are utilized with options.realize(args) Regards, David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zope unresponsive
Hey All, I'm experiencing hanging issues with my Zope-2.8.6+zeo setup/ RHEL 4. The hanging isn't categorized by 100% cpu usage. Actually, I had the same issues using 2.8.5, but I've upgraded since then. Here's the situation: I have one zeo client connected to a zeo server on the same box. Apache sits in front, using RewriteRules to request data from zope. After some time (could be 2 minutes or an hour), the zeo client stops responding. Apparently this is called a deadlock or a "spinning zope". I've tried using gdb to attach to the zeo client pid, and use the recipe http://zopelabs.com/cookbook/1073504990 to print a traceback, but the call always aborted with SIGABORT. I've captured all of the requests sent to zope during an uptime window (via Z2.log), and using wget to "replay" the requests. I've also pulled from apache's rewrite log all requests proxied to zope, thinking the Z2.log only writes finished requests. I setup another zeo client (on the same box, different port) and used wget to replay these captures as well. Just running these captures does not cause zope to hang. In fact, I have not been able to cause zope to hang by replaying. There doesn't seem to be any one url or sequence of urls that cause zope to hang. I've tried reinstalling the zope instance, but that didn't help. I've tried using requestprofiler.py to inspect the trace.log. This shows a high number of "hangs", but not on a url that actually triggers a spinning zope. Basically, that's where I'm stuck. Is there anything else I can try? Am I missing something? Thanks for the help, Andy ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope crashes on request of certain page
Sven Jacobs wrote at 2006-4-24 08:26 +0200: >Dieter Maurer schrieb: > >>> Well, for testing I tried to copy the Zope DB (Data.fs.*) into a fresh >>> OpenSuSE 10.0 installation. Zope version there is 2.7.7. It works but >>> now I get an authorization request dialog on every page. Any idea what >>> could have gone wrong during the upgrade? >> >> Install the product "VerboseSecurity" and look (tell us) what >> it reports. > >Did that! But the authorization dialog did not change. There is no extra >information about why an authorization is required. Or where do I find >this information? You read the installation instructions for "VerboseSecurity". It (hopefully) tells you that you have to activate Python implemented Zope Security, to reconfigure the "error_log" object (to not ignore "Unauthorized" exceptions) and then to look in the "error_log" object for information about the resulting "Unauthorized" exception. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] keeping files in the local filesystem
gf wrote at 2006-4-24 07:28 -0600: > ... >I have come across several products (e.g. ExternalFile) for keeping >files in the local filesystem. >I was wondering about the wisdom of keeping objects, such as images, >dtml documents, and page templates, in the local filesystem. On the >face of it, it seems like a good idea since tools like version >control/management and backup software could manage the files >directly. We do it this way (using CMF's "SkinTool") and are pleased with the approach. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: RE : zope 2.8.5 becomes unresponsive.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Erik Myllymaki wrote: > I got a chance to try and debug with the the DeadlockDebugger, but it > was unresponsive... > > Still nothing in the event log. > > Any other ideas? You might enable the 'trace_log' option, and then use the 'requestprofiler.py' script to show which requests are failing to complete. Configuring the log file: http://mail.zope.org/pipermail/zope/2005-April/158309.html To use the profiler: $ /path/to/python $ZOPE_HOME/utilities/requestprofiler.py --help Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFETO48+gerLs4ltQ4RAi2IAKC8vOHl/0ZLXYb82gipl3ehikrKYQCfYv8i 8kIvCFnUYLFsfwmYaiiB4Gg= =SNAL -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: RE : [Zope] zope 2.8.5 becomes unresponsive.
I got a chance to try and debug with the the DeadlockDebugger, but it was unresponsive... Still nothing in the event log. Any other ideas? Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21 Apr 2006, at 07:52, Sébastien VINOT wrote: I've read documentation about deadlock and apparently the CPU usage should be high, isn't it ? Because in my case the CPU usage is falling to 0.0 (while the python process is still alive). No. Deadlocks cannot be identified by CPU usage. If Zope hangs, there is a deadlock. Use the diagnostic methods described in the documents you looked up. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFESJ2iRAx5nvEhZLIRAiQ7AKCdWKcS8d0nh80djOdVNkrtGFzsRACgssng JNnz286zi8qJMFI4CgQe0iI= =27JP -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] keeping files in the local filesystem
Hi, I am a Zope newbie and would appreciate some counsel from experienced Zope users. I have come across several products (e.g. ExternalFile) for keeping files in the local filesystem. I was wondering about the wisdom of keeping objects, such as images, dtml documents, and page templates, in the local filesystem. On the face of it, it seems like a good idea since tools like version control/management and backup software could manage the files directly. What do you see as the upsides and downsides? Thank you for your input. Best Regards, gyro ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope crashes on request of certain page
On 24.04.06 08:26:02, Sven Jacobs wrote: > Dieter Maurer schrieb: > > >>Well, for testing I tried to copy the Zope DB (Data.fs.*) into a fresh > >>OpenSuSE 10.0 installation. Zope version there is 2.7.7. It works but now I > >>get an authorization request dialog on every page. Any idea what could have > >>gone wrong during the upgrade? > >Install the product "VerboseSecurity" and look (tell us) what > >it reports. > > Did that! But the authorization dialog did not change. There is no extra > information about why an authorization is required. Or where do I find this > information? Have a look at the error_log in your Zope root. Andreas -- Increased knowledge will help you now. Have mate's phone bugged. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )