Re: [Zope] Cobalt Qube
Hello, Inexplicably I purchased a Qube 2 to play around with but am wondering whether I should keep or dispose of it now. I've left the shrinkwrap on while I decide. It was *cheap*! It's a reliable little box. Plug it in and it will keep running. However. Lately it has become difficult to find RAM for it. You'll want 128MB + to do anything interesting. Zope will run on it. Performance would be approximately equivalent to a Pentium 133. More than enough to saturate a 10Mb network, let alone a T1. So it makes for a very good Apache server. However, it does not make a very good Zope server. It runs Zope well enough to support a small site or intranet. But if you got Slashdotted heavily, it might fall over. The more RAM you have the better. Is it possible to set up Zope +/- SSL on this box without having to purchase software modules from Cobaltnetworks? ( I have no Linux experience ) Well, if you have no Linux experience, and are intimidated by Linux, then don't touch it. But if you put in a bit of effort, you'll find it worth the time. The best SSL option would be buying the sw from Cobalt. You'll have to go to the command line to do it, though. Moderate SSL use will kill the Qube, however. If you want to use Zope heavily and do a lot of SSL, then get an Athlon or P3. A P3-1000 is almost 15 X faster than the Qube2 when it comes to running Zope. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] OpenBSD 2.8 woes
Hello Jan: I don't really know what else I could do. Right now it looks pretty much as if I'm going to switch to FreeBSD, my second favourite :-| Has anyone got Zope 2.2.5 running under OpenBSD 2.8??? If so, I'd be really curious what steps you followed to get it to work.- You will have to use FreeBSD or use OpenBSD 2.7. 2.8 will not work because there is a bug in the threading library included with OpenBSD 2.8. Zope triggers it when you call the management screen. However, in the Zope code for the management screens there are "thread-safe" calls used which are not, as far as I know, used elsewhere in Zope. Maybe there is a bug in that code? But for now I believe the bug to be in OpenBSD 2.8. I have not found anything to suggest that it has been fixed or looked at. None of the patches released so far for 2.8 mention it. I went through this in early December. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: running zope with OpenBSD 2.8 i386
At 06:25 PM 2000/12/13 +0100, you wrote: My question is: Did someone of you got zope running with obsd 2.8? The documentation of zope says it runs in any case with 2.7 and python 1.6 You cannot run Zope with OpenBSD 2.8. Zope triggers an obscure bug in the threading library that comes with 2.8. Zope runs wonderfully with OpenBSD 2.7. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Failed upgrade to 2.2.4 - solutions?
Hello, I've just tried and failed to upgrade to 2.2.4 from 2.2.2. A python instance starts up and slowly swallows the CPU, ending with 99% of the CPU. A second python instance starts and doesn't do anything naughty. If I issue a ./stop, the second python instance ends properly, but the first continues to consume all CPU resources. I've tried recompiling it several times, reinstalling Python, but no go. It did once start up properly, but as soon as I tried logging into Zope, python took over the CPU. I'm using OpenBSD 2.8, python 1.5.2, x86, 196MB of RAM, GBs of free disk space. I've been using Zope since 2.0 and have never had this much trouble upgrading. the only Zope product I'm using is SiteAccess (the same setup as the old Zope.org before the cluster upgrade). Any ideas? thanks, Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Failed upgrade to 2.2.4 - solutions?
Hello To enable profiling, restart the Zope process with the environment variable PROFILE_PUBLISHER defined. The value of this variable should be the full system path to a file that will be used to dump a profile report when the process restarts or exits. PROFILE_PUBLISHER='/home/luke/sw/zopeProfile.txt' like so in my z2.py? it didn't do anything. But I can get a python core dump! I tried just a basic install, without my Data.fs. Same result. I tried 2.2.2. Same result. Looks like an incompatibility with OpenBSD 2.8 (I was running 2.7 until 2 weeks ago.) Any ideas? C-compiler or Python incompatibility between what is on OpenBSD 2.8 and Zope? OpenBSD 2.8 comes with Python 1.6. I removed all traces of Python and reinstalled 1.52 from the source. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Failed upgrade to 2.2.4 - solutions?
Michel Pelletier wrote: bash$: export PROFILE_PUBLISHER=/home/luke/sw/zopeProfile.txt bash$: python z2.py -D Tried that. Nothing written to the text file. But I did get this after doing a control-c ... --- File "z2.py", line 537, in ? Traceback (innermost last): File "z2.py", line 719, in ? asyncore.loop() zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) File "/home/luke/sw/zope224/lib/python/zdaemon.py", line 208, in run p,s = os.waitpid(pid, 0) File "/home/luke/sw/zope224/ZServer/medusa/asyncore.py", line 138, in loop KeyboardInterrupt luke$ poll_fun (timeout, map) File "/home/luke/sw/zope224/ZServer/medusa/asyncore.py", line 66, in poll r,w,e = select.select (r,w,e, timeout) --- With the python 1.5.2 source I did a make test, and it failed on test_fcntl. With the python 2.0 source I did a make test, and Python core dumped on test_poll. I'm guessing, but it looks like Zope on my box has a poll issue. It's possible you have library missmatch. Python library or C library? I made pretty certain that I'd removed all traces of Python from the box before reinstalling. /usr/local/bin /usr/local/lib /usr/local/include Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is Zope slow?
Hello, I'm considering using Zope as the development tool for my next web project. However, I read from a recent benchmark test (from Qube, i think) that Zope(running thru Zserver?) is much SLOWER than Apache and AOLserver. Is that true? To all Zope users and 'guru's, what is yr experience using Zope? I run the QubeQuorner weblog where those numbers came from. Zope isn't slow. It's slower than Apache serving static pages. But Zope is dynamic. I haven't yet had time to do proper dynamic comparisons between the various servers. I run a few Zope sites. And I'm adding more Zope sites. I wouldn't do that if I thought it was too slow. There is a lot involved in making a site faster or slower. Adding a few graphics to your web page is going to make it slower than an all-text page. An all-text page vs a mixed text and graphics page can be almost twice as fast. Your connection to the site is going to affect "apparent" performance. For example, while I have a cable modem at home, and my Zope server sits on a fast T1 (there are slow T1s and fast ones), the connection in the evenings is too slow for me use my server. That's @Home's fault, not Zope's. And our T1 will fill up well before Zope runs out of steam on my box. Technocrat.net is a Zope site. They were Slashdotted and survived without any apparent problems. And they were running Zope on a Pentium 120! I believe they upgraded to a PII-450 after that episode, just to be safe. I have a list of Pystone benchmarks on my QQ site too: http://weblogs.userland.com/qube/stories/storyReader$289 A PIII-850 gives tremendous Python performance, which should translate to impressive Zope numbers too. Zope.org, however, doesn't run on nearly the fastest hardware available, and it rarely seems slow to me. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is there a better way to code this?
Hello Andrew, You should set flags to say when it's safe to render the header/footer, or you should remove the header/footer calls from documents you want to embed. Can't do the latter. I'm building a weblog. I need to have the user enter entries for each day. I need for each day to display properly on its own - which means each needs header and footer code. And I need the front page to be created on the fly, consisting of the three latest entries, but, of course, without the header and footer code appearing in the body of the document. It now works as it should, but I want to know if there is a more elegant way of doing what I want to do. No point pointing fellow newbies at something and then have one of the gurus suggest I could have done it much more simply and elegantly. Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope dumps core while querying on id
Hello, Actually I suppose it's Python that's dumping core. The following query causes a core dump: dtml-with history dtml-with 2000 dtml-in "objectValues(['DTML Document'])" size=3 sort=id reverse dtml-var sequence-itembr /dtml-in /dtml-with /dtml-with The following query works as expected: dtml-with history dtml-with 2000 dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse dtml-var sequence-itembr /dtml-in /dtml-with /dtml-with Any idea why? I'm using 2.1.6. The other day I posted a question asking why my bobobase_modification_time was off by 1 day. I got no answer. But upgrading from 2.1.4 to 2.1.6 seems to have fixed that issue. The core dump happened in 2.1.4, so I upgraded to 2.1.6, but the core dump issue remains. thanks, Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] bobobase_modification_time off by 1 day - why?
Hello, Zope reports the bobobase_modification_time to be off by one day (1 day behind). The box has the right time (when checked from the OS), and asking Zope to return ZopeTime returns the correct date and time. Anyone know why? thanks, Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML question
Hello, dtml-in "PARENTS[0].objectValues(['DTML Document'])" size=3 sort=id should work, no? No. This works on my production server, which runs Zope 2.1.14. dtml-with history dtml-with 2000 dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse dtml-var sequence-itembr /dtml-in /dtml-with /dtml-with But if I try that same code on 2.2b2 it doesn't work. If the subfolder is down 1, then size=1 works, but size=2 returns everything. If the subfolder is down 2, then size=1 works, size=2 works, but size=3 returns everything. By down 2 I mean like the example code above (folder I want to query is two levels down). Maybe it's a 2.2 bug? Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] 2.2b3 Tutorial issues
Hello, The tutorial included with 2.2b3 now "works"; however, the documents are in the wrong order (9, 10, 11, 1, 2, 3, 4 etc). And every page generates a JavaScript error on IE 5.01 (syntax error on line 74). Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] DTML question
Hello, I want to retrieve the last 3 filenames from a subfolder and display them in a document. If I set the size of the retrieval to 1, I get just 1 name returned. If I set the size to 3, I get everything in the folder. (if I use 2 I also get everything in the subfolder ) Here is my code (using 2.2b2): dtml-with Document dtml-in "objectValues(['DTML Document'])" size=3 sort=id dtml-var id dtml-var titlebr /dtml-in /dtml-with thanks, Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to retrieve content of a document?
Hello, Yet another question. I've gone through the DTML Reference Guide but couldn't find the answer. How do I display the content of a DTML Document through a query? For example: dtml-with Document dtml-in "objectValues(['DTML Document'])" size=3 sort=id dtml-var id dtml-var titlebr /dtml-in /dtml-with Displays the document's name and title. But how do i display the content of that document within that query? I apologise if it's obvious. thanks, Luke ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )