Re: [Zope-dev] Re: Future of ZClasses
Above all, I should mention that I believe this discussion is largely about Z3, and I do not live in Z3 world yet. Actually I am developing more in 2.7 currently. But the policy I state below is valid for 2.x also, afaik. On 10/4/06, Jean-Marc Orliaguet [EMAIL PROTECTED] wrote: Patrick Gerken wrote: I think we use Interfaces in Z3 to publish Methods. So maybe it makes sense to have a smaller core API with longer deprecation periods, so that standard projects can try to rely on core API with long deprecation phase and extender would use the one year deprecation phase. But as I said earlier, I think we are quite ahead already. I guess the motivation of this API stability discussion is also motivated by JMOs comment about how much more stable is the Java API, in Point 2 and 3 of this entry: Everyone deprecates stuff, this is not the question. But what is marked as 'stable', 'official' or 'standard' may not be deprecated in the same way as something that is still under development or private. It is more a question of defining and maintaining a contract with API users than a question of technicalities (how often to deprecate, what version numbers to use, how to inform...) This is all about defining and maintaining a social contract with the user. No one prevents you from deprecating parts of an API that is marked as being under development or private -- as long as you say it from the start. Check out for instance: http://openide.netbeans.org/tutorial/api-design.html especially the chapter Life-cycle of an API I can see no guarantee for a time line What is unclear in zope is what is official, what is stable, what is still under development, etc. It seems that all the different packages have the same status, or rather that they have no status. Apart from the packages that were added recently (zc. ...) there is no information in the repository about the quality of the different APIs. There are no version numbers on the packages either so I don't know what is alpha, beta, or final. It gives the impression that the framework is stable, but not mature. I'd expect that the API defined in the 'interfaces.py' files for instance are 'official' in the sense that there is a commitment that the API is ready and that it won't change until the next major version, but I doubt that this is understood by everyone putting stuff into these files. Deprecation can happen at any time. Anything deprecated in one release will create deprecation warnings when used for two major releases. After that the code is removed. That is the official policy. Though I believe this was never mentioned explicitly, this policy relates to the releases packaged by Andreas and Philip. So for any code released in these packages this policy is used. I BELIEVE, this is also true for all other packages on svn.zope.org Through it is unclear, which of these have stable releases. I would say that everything just in svn is unstable, and stable is, what is in the zope core packages or on cheeseshop. in Java, you can mark a class as 'final', meaning that no one will be able to subclass it, or methods can be marked as 'private'. Abstract classes can specify the methods that must be implemented. Also if a class says that it implements an interface it has to implement it otherwise the code won't compile. So here I must admit that I am from Zope2 world mostly, but some smaller Z3 code I checked actually hat assertions in their code (not in the tests directory), that checks whether its own objects really obey the interface. This is worse than in Java but shows that at least these developers were aware of these things. Sadly, except for using Meta classes I see no way to make these checks implicit like they are in Java. This is a language problem. Again this is all about defining contracts. Considering the standard JBoss modules, there is no way to compare with zope really since they strive to implement the specifications thoroughly (EJB3, JSR-168, ...) and the APIs are final already, so they don't change. Well, I can only answer with accusations like they influence the standards so much that you could already say they define the standard, and about the API I could ask how the react to changing environments, but that would not be fair, since I did not research the accusations nor how stable the API really is and what the API defines. Maybe somebody with better background can put these accusations on solid ground until then I have to believe Jean-Marc here. Anyway I appreciate your critics Jean-Marc. best regards, Patrick ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] Help! Zope Crashed! Production Server!
Since you're running it with runzope (i.e. in foregreound mode): 1) Can you confirm Zope provided the message Zope Ready to handle requests 2) What is the top command showing? Is python/zope process using CPU, or is it simple unresponsive? 3) Can you check if there are different processes when you start and when you do your first request? With some C extensions of python, you can end with hanging python processes (at least on Linux; don't know on FreeBSD). 4) Is the zope process able to write to Z2.log, event.log and (if used) trace.log? Hope this can help. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/ ___ 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] Help! Zope Crashed! Production Server!
The most common issue on *BSD is this: http://tomster.org/blog/archive/2006/09/27/size-does-matter Stefan On 4. Okt 2006, at 20:43, Javier Subervi wrote: The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. -- It doesn't necessarily do it in chronological order, though. --Douglas Adams ___ 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] TimerService/ZopeScheduler runs but doesn't run scripts......
michaelntmilne wrote: Simply good advice. I'm not asking for people to do my work for me! Did anyone ask you for advice? ;-) I'm perfectly capable of doing it myself thanks very much. I'm sure the authors look forward to your patches and unit tests... There is a general disdain of Windows which does have a basis but which I find slightly short sighted at times. You're ranting at one of the few people on this list who does a lot of Zope development on Windows... Anyway, this product should say it doesn't work or hasn't been tested on Windows if that is the case. Should is say it doesn't work on a Sinclair Spectrum or iPod while it's at it? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] external method: importing and updating method
Alan wrote: Thanks for help. I did what suggested below. We also set a crontab to restart the zope server every night, Why?! Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] external method: importing and updating method
Hi List, crontab is really a bad idea. We quitted that. Thanks for your commentaries. Alan On 05/10/06, Chris Withers [EMAIL PROTECTED] wrote: Alan wrote: Thanks for help. I did what suggested below. We also set a crontab to restart the zope server every night, Why?! Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk -- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ 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] Surprising load test results?
Hi, We made some basic load testing against different Zope2 versions and found some unexpected results. Everything is summarized here : http://talk.lastminute.com/wiki/index.php/Loadtest We would appreciate any comment about it, and of course will answer any question you might have about our test. Thanks a lot. Pascal ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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] external method: importing and updating method
--On 5. Oktober 2006 10:24:31 +0100 Alan [EMAIL PROTECTED] wrote: Hi List, crontab is really a bad idea. We quitted that. Why is using crontab a bad idea? It's the most common and most reliable solution to run scripts in Zope periodically. -aj pgpHnQfkHcCKi.pgp Description: 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: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts......
By the way, it used to work fine on cygwin (was Zope 2.7 when I last used it on a windows+cygwin box)... ;) My 2 euro cents. Pascal De : Chris Withers [EMAIL PROTECTED] Date : Thu, 05 Oct 2006 09:38:25 +0100 À : [EMAIL PROTECTED] Cc : zope@zope.org Objet : Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts.. michaelntmilne wrote: Simply good advice. I'm not asking for people to do my work for me! Did anyone ask you for advice? ;-) I'm perfectly capable of doing it myself thanks very much. I'm sure the authors look forward to your patches and unit tests... There is a general disdain of Windows which does have a basis but which I find slightly short sighted at times. You're ranting at one of the few people on this list who does a lot of Zope development on Windows... Anyway, this product should say it doesn't work or hasn't been tested on Windows if that is the case. Should is say it doesn't work on a Sinclair Spectrum or iPod while it's at it? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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] Legacy Perl code and Zope. A pipe dream?
On 10/4/06, Derek Basch [EMAIL PROTECTED] wrote: Thanks for all the replies everyone! This all certainly helped me in deciding which direction to go. Well, that's all we can hope for at this point! :) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.nuxeo.org/ ___ 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] Surprising load test results?
Pascal Peregrina wrote: We made some basic load testing against different Zope2 versions and found some unexpected results. What's unexpected in particular? How many runs did you do for each setup and how did you average them? Also, was the hardware, memory usage and processor load, excluding that used by Zope identical over the course of all runs? (common problems are doing load tests on a box that is also doing other things) Also, what was the config? Plain Zope with FileStorage? ZEO? etc... What do you mean by wsgi enabled? How does wsgi+ differ from wsgi? The speed drop in ZPT I think is due to using Zope 3's ZPT engine in 2.10. Zope 3 has, unless someone tells me otherwise, the policy of being slow but right at the moment. Optimisation may be something the Zope 3 guys want to focus on once they've finished refactoring everything to death for the 7th or 8th time ;-) I'd be interested to see how Twiddler would compare against ZPT in your 2.10 test, mail me off list if you're interested... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] TimerService/ZopeScheduler runs but doesn't run scripts......
Did anyone ask you for advice? ;-)Well if you're not open to opinion then you have a closed mindI'm sure the authors look forward to your patches and unit tests...? I'm not a programmer and don't aspire to be one. Does everyone have to program? What about division of labour or are you stuck in the dark ages?You're ranting at one of the few people on this list who does a lot of Zope development on Windows...Your mind is more open that I thought :-)Should is say it doesn't work on a Sinclair Spectrum or iPod while it's at it?Illogical - Does Zope run on a Spectrum?No. Does Zope run on an iPod? No. (not even a computing plaform by the way) Does Zope run on Windows? Yes. Does the product claim to work on Zope on Windows - Yes.Chris Withers [EMAIL PROTECTED] wrote: michaelntmilne wrote: Simply good advice. I'm not asking for people to do my work for me! Did anyone ask you for advice? ;-) I'm perfectly capable of doing it myself thanks very much. I'm sure the authors look forward to your patches and unit tests... There is a general disdain of Windows which does have a basis but which I find slightly short sighted at times. You're ranting at one of the few people on this list who does a lot of Zope development on Windows... Anyway, this product should say it doesn't work or hasn't been tested on Windows if that is the case.Should is say it doesn't work on a Sinclair Spectrum or iPod while it's at it?Chris-- Simplistix - Content Management, Zope Python Consulting- http://www.simplistix.co.uk Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail.___ 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] Surprising load test results?
Hi Chris, On 10/5/06, Chris Withers [EMAIL PROTECTED] wrote: Pascal Peregrina wrote: We made some basic load testing against different Zope2 versions and found some unexpected results. What's unexpected in particular? The average response time for the different types with different versions. How many runs did you do for each setup and how did you average them? There were a few runs for each case but I can't remember the exact number. Every run shown similar results. The last one was picked. The average shown is for the latest one. Also, was the hardware, memory usage and processor load, excluding that used by Zope identical over the course of all runs? (common problems are doing load tests on a box that is also doing other things) Hardware is detailed in the page. The box was doing nothing else except running one zope instance at the time. Also, what was the config? Plain Zope with FileStorage? ZEO? etc... FileStorage with stock zope.conf except for enabling wsgi were noted. What do you mean by wsgi enabled? How does wsgi+ differ from wsgi? The wsgi directive was enabled in 2.10.0b2. Re wsgi+, do you mean in the graphic? I need to correct that as the text was truncated. It should be wsgi+SpeedPack and wsgi+profile. The speed drop in ZPT I think is due to using Zope 3's ZPT engine in 2.10. Zope 3 has, unless someone tells me otherwise, the policy of being slow but right at the moment. Optimisation may be something the Zope 3 guys want to focus on once they've finished refactoring everything to death for the 7th or 8th time ;-) yes, i think that's the cause of the tal speedup in 2.10, but then static content is painfully slower. cheers, f.- ___ 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] TimerService/ZopeScheduler runs but doesn't run scripts......
By the way, it used to work fine on cygwin (was Zope 2.7 when I last used iton a windows+cygwin box)... ;)My 2 euro cents.PascalThing is the documentation doesn't mention anything about cygwin at all.Pascal Peregrina [EMAIL PROTECTED] wrote: By the way, it used to work fine on cygwin (was Zope 2.7 when I last used iton a windows+cygwin box)... ;)My 2 euro cents.Pascal De: Chris Withers <[EMAIL PROTECTED]> Date: Thu, 05 Oct 2006 09:38:25 +0100 À: <[EMAIL PROTECTED]> Cc:Objet: Re: [Zope] TimerService/ZopeScheduler runs but doesn't run scripts.. michaelntmilne wrote: Simply good advice. I'm not asking for people to do my work for me! Did anyone ask you for advice? ;-) I'm perfectly capable of doing it myself thanks very much. I'm sure the authors look forward to your patches and unit tests... There is a general disdain of Windows which does have a basis but which I find slightly short sighted at times. You're ranting at one of the few people on this list who does a lot of Zope development on Windows... Anyway, this product should say it doesn't work or hasn't been tested on Windows if that is the case. Should is say it doesn't work on a Sinclair Spectrum or iPod while it's at it? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 )**This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom theyare addressed. If you have received this email in error please notifythe system manager.This footnote also confirms that this email message has been swept byMIMEsweeper for the presence of computer viruses.www.mimesweeper.com** All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine___ 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 2.10.0 released
Andreas Jung, on 2006-10-04: I fixed the tar-ball generation part of the makefile and recreated the 2.10.0 and 2.9.5 archives with the right permissions. Yes, that helped. Thank you! A few related notes though: Strange: when I compare the new 2.9.5 tar ball with the old one I got a few days before, there are more differences than just some permission changes. Here are the tar files in my download dir: $ ls -ltr Zope-2.*tgz # edited a bit to prevent long lines. 6977165 2006-10-02 17:41 Zope-2.9.5-final.ori.tgz 7123131 2006-10-03 09:42 Zope-2.10.0-final.ori.tgz 6984923 2006-10-04 16:27 Zope-2.9.5-final.tgz 7122626 2006-10-05 12:45 Zope-2.10.0-final.tgz $ diff -q -r Zope-2.9.5-final.ori Zope-2.9.5-final Files Zope-2.9.5-final.ori/lib/python/zope/configuration/config.py and Zope-2.9.5-final/lib/python/zope/configuration/config.py differ Files Zope-2.9.5-final.ori/lib/python/zope/configuration/xmlconfig.py and Zope-2.9.5-final/lib/python/zope/configuration/xmlconfig.py differ And some more of those lines. These differences are not about permissions, but real content. So I'm not sure what happened there. $ diff -r Zope-2.10.0-final.ori Zope-2.10.0-final gives no output, so that means only permission changes in the new 2.10.0. That's good. BTW, after a ./configure, make, sudo make install I get: $ find -user root ./lib/python/zope.proxy ./lib/python/zope.proxy/proxy.h ./build-base/python-2.4/build-lib/version.txt So those three files (in the directory where I extracted the tar ball to) are owned by root, which is a bit strange. No big deal, bit if this can be fixed, it would be nice. Anyway, the new tarballs work. -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc Do only what only you can do. --- Edsger Wybe Dijkstra ___ 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 2.10.0 released
Maurits, you seem to be working as root, which is the root of all evil (pun intended). Don't do that, ever. The permission issues you reported also only crop up if the tarball is extracted while root. Don't do that! Stefan On 5. Okt 2006, at 13:12, Maurits van Rees wrote: BTW, after a ./configure, make, sudo make install I get: $ find -user root ./lib/python/zope.proxy ./lib/python/zope.proxy/proxy.h ./build-base/python-2.4/build-lib/version.txt So those three files (in the directory where I extracted the tar ball to) are owned by root, which is a bit strange. No big deal, bit if this can be fixed, it would be nice. -- Anything that happens, happens. --Douglas Adams ___ 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 2.10.0 released
--On 5. Oktober 2006 13:19:26 +0200 Stefan H. Holek [EMAIL PROTECTED] wrote: Maurits, you seem to be working as root, which is the root of all evil (pun intended). Don't do that, ever. The permission issues you reported also only crop up if the tarball is extracted while root. Don't do that! However there was an issue. The file permissions inside the tarball should not depend on the umask on my system leading to a different behavior on client systems. Andreas pgp2pZtlqhSkG.pgp Description: 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] Re: Zope 2.10.0 released
Stefan H. Holek, on 2006-10-05: Maurits, you seem to be working as root, which is the root of all evil (pun intended). Don't do that, ever. The permission issues you reported also only crop up if the tarball is extracted while root. Don't do that! Actually, I don't. :) Extract the original tar ball, do a 'find -perm 600' and you'll see lots of files that have the wrong permissions. The new tar is good in that respect. But let's look at the 'root' cause: ~/download $ tar xzf Zope-2.10.0-final.tgz # That's the current one. ~/download $ cd Zope-2.10.0-final/ ~/download/Zope-2.10.0-final $ find -user root ~/download/Zope-2.10.0-final $ ./configure (snip the usual output) ~/download/Zope-2.10.0-final $ make (snip the usual output) [EMAIL PROTECTED]:~/download/Zope-2.10.0-final $ make install /usr/bin/python /home/maurits/download/Zope-2.10.0-final/setup.py \ build --build-base=/home/maurits/download/Zope-2.10.0-final/build-base/python-2.4 --build-lib=/home/maurits/download/Zope-2.10.0-final/build-base/python-2.4/build-lib --build-scripts=/home/maurits/download/Zope-2.10.0-final/build-base/python-2.4/build-scripts --build-temp=/home/maurits/download/Zope-2.10.0-final/build-base/python-2.4/build-temp (snip) running build_ext creating zope.proxy copying zope/proxy/proxy.h - zope.proxy copying /home/maurits/download/Zope-2.10.0-final/lib/python/version.txt - /home/maurits/download/Zope-2.10.0-final/build-base/python-2.4/build-lib running install_lib creating /opt/Zope-2.10 error: could not create '/opt/Zope-2.10': Permission denied make: *** [install] Error 1 That's logical, as I don't have the permissions to install anything in /opt as normal user. [EMAIL PROTECTED]:~/download/Zope-2.10.0-final $ find -user root [EMAIL PROTECTED]:~/download/Zope-2.10.0-final $ sudo make install (snip) Zope binaries installed successfully. Now run '/opt/Zope-2.10/bin/mkzopeinstance.py' [EMAIL PROTECTED]:~/download/Zope-2.10.0-final $ find -user root ./lib/python/zope.proxy ./lib/python/zope.proxy/proxy.h ./build-base/python-2.4/build-lib/version.txt Bingo, there is your error. Well, like I said, that's not a big deal, but still... -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc Do only what only you can do. --- Edsger Wybe Dijkstra ___ 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] external method: importing and updating method
Well the complete story was: We also set a crontab to restart the zope server every night, but them I was wondering if it is a good idea. And later on: crontab is really a bad idea. We quitted that. And in that case (using crontab to restart Zope every night), I think it was a bad idea. Of course, for stuff like starting some processing at a given time in the Zope instance, crontab can be great... Well, there is also this interesting on-going thread about TimerService/ZopeScheduler :)) Pascal De : Jens Vagelpohl [EMAIL PROTECTED] Date : Thu, 5 Oct 2006 08:03:53 -0400 À : zope Mailing List zope@zope.org Objet : Re: [Zope] external method: importing and updating method -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5 Oct 2006, at 05:24, Alan wrote: Hi List, crontab is really a bad idea. We quitted that. Might make sense to back up blanket nonsensical statements like that with some hard facts. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFFJPSqRAx5nvEhZLIRAkKWAJ45fYr4khMmREaF89vfFJEGvo2v3gCfSe8g bXYxESSH8t4mi4nFmVWY67A= =wI9T -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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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: Upload file to server for encoding...
- Original Message - From: torugor1404 [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Sent: Thursday, October 05, 2006 10:33 AM Subject: Re: Upload file to server for encoding... Thank you Jonathan, I was begining to get to the same conclusion after some days of google search. My problem is indeed to get the information from the client system. Now I must decide if it is better to make the user upload it everytime (user gets annoyed), just upload one time and save on the server the data (unsecure), or upload onetime and hold the file in the html by the use of either session or hidden inputs (site opens slowly). Anyone has another option I haven't explored to this problem? If you want to encrypt/decrypt something specific to a user why don't you prompt the user to enter a key, and then use they supplied key to encrypt/decrypt. This will function somewhat like a password - if the user doesn't supply the same key that was used to encrypt the data, the decrypt will not work. Jonathan --- In [EMAIL PROTECTED], Jonathan [EMAIL PROTECTED] wrote: Please keep your posts on the lists... - Original Message - From: torugor1404 [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Sent: Wednesday, October 04, 2006 11:54 PM Subject: Re: Upload file to server for encoding... Hello Jonathan, I saw your reply to this message about uploading a file, and I thought you could help me. I have a database in my server where people from place information into. Some information is confidential and i would like to encrypt, leaving the key of encription inside the computer of the person who placed the information there. I was planning in leaving a file (.txt) in the outside computer and when he wants to place a information in my database, I would call a python script to encrypt it, using the key on the .txt file. After when he wants to read it again, i read the txt file and reverse the process. My problem with the way using a page-template is that i would have to ask the person to open upload the file everytime he wants to see that infoor hold the key in my server what is also not a good idea. Is there a way to read the file directly from a python script? If you want to read a file from the server filesystem then you will need an External Method, but this is very easy to do (googling will get you lots of help and you can also find help in the Zope Book). If the file is on the client system then you will have to ask the user to upload the file each time. Jonathan ___ 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 )
Re: [Zope] Legacy Perl code and Zope. A pipe dream?
Derek Basch wrote: [snip] I saw that the zope-perl project is virtually dead and was hoping that some magical zope to perl bridge existed. Something that would allow me to use our existing perl code as an external method or someting similar. Forgive me if my zope terminology is a bit off as I haven't worked with zope in about three years. As it stands it looks like I will need to use a PHP or Perl web application framework. The closest thing right now available that might help you is Python WSGI technology. Zope 3 has WSGI support; Zope 2's support is still prototypical as far as I know, but Ian Bicking actually mentions work on this in the blog entry I link to below too. There has been some work done to bridge PHP into WSGI, allowing PHP applications can be embedded into Python applications. http://blog.ianbicking.org/2006-wphp.html What you might be able to do is write something based on WSGI that allows bridging Perl applications into Python applications. This should allow you then to embed these Perl applications into a Zope 3 context. Anyway, not a ready-made answer, but perhaps it will help. Regards, Martijn ___ 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] Surprising load test results?
Federico Schwindt wrote: What do you mean by wsgi enabled? How does wsgi+ differ from wsgi? The wsgi directive was enabled in 2.10.0b2. Re wsgi+, do you mean in the graphic? I need to correct that as the text was truncated. It should be wsgi+SpeedPack and wsgi+profile. The speed drop in ZPT I think is due to using Zope 3's ZPT engine in 2.10. Zope 3 has, unless someone tells me otherwise, the policy of being slow but right at the moment. Optimisation may be something the Zope 3 guys want to focus on once they've finished refactoring everything to death for the 7th or 8th time ;-) Chris, the Zope 3 people actually spent a lot of time speeding up component architecture bits in Zope 3.3. People complain that its API got better, um, refactored, but it also got sped up quite a bit. yes, i think that's the cause of the tal speedup in 2.10, but then static content is painfully slower. cheers, It appears TAL is slower in 2.10.0b2 vanilla, but a lot faster in 2.10.b2 WSGI. That's pretty bizarre indeed. It might be WSGI somehow lifts performance issues elsewhere in the publisher stack, which then in this case more than compensate for what looks like a slight TAL slowdown. Why then the static content is so much slower is again weird. It almost looks like there's a fixed speed for WSGI. Someone who knows more about how the WSGI support may be able to say more... Regards, Martijn ___ 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 gets killed on startup
On 10/4/06, Einar Næss Jensen [EMAIL PROTECTED] wrote: Yes. I guessed that somehow, the acl_users in the root object, had been deleted (or was missing). Why this happened I do not know. I do not think I did it myselfe ( I certanly do not have a memory of doing so). Note that Plone 2.5 uses PlonePAS, which for some reason feels the need to replace the root-level acl_users folder when you create a Plone site. -- Martijn Pieters ___ 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 gets killed on startup
On 10/5/06, Martijn Pieters [EMAIL PROTECTED] wrote: Note that Plone 2.5 uses PlonePAS, which for some reason feels the need to replace the root-level acl_users folder when you create a Plone site. (and to finish that email) That means that if you had Plone 2.5 installed, then removed it from your Zope server, you also removed the underlying software needed for the root acl_users folder to work. -- Martijn Pieters ___ 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 gets killed on startup
Hi Martijn, Martijn Pieters wrote: Note that Plone 2.5 uses PlonePAS, which for some reason feels the need to replace the root-level acl_users folder when you create a Plone site. I've just been bitten by this, and aren't at all happy. Is there any reason I can't zap this and revert to a standard acl_users folder? I presume I'll need to do emergency user stuff to do this, but I'm really not comfortable about having something unnecessarily complex in my root - I might not feel this way if I could find more docs on PlonePAS, but I can't, so I do! -- Regards, PhilK Say what you mean. Bear witness. Iterate. —John M. Ford ___ 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-DB] Zope database connectivity
My error was about self.db attribute in '_v_database_connection' not about '_v_database_connection' attribute itself. During abort() of this resource manager self.db was None so self.db.rollback() failed. I'll check this again... I've messed up things. Error that I've found is in StoredProcedures in DCOracle2 - SP.py and this issue seems to be specific to DCOracle2 SP class. SP class is ResourceManager that uses self._v_db attribute that is in fact another ResourceManger. When stored procedure in database raises an exception self._v_db attribute of SP class instance disappears (if it was created during same request). As a result AttributeError: _v_db is raised when ResourceManager (SP) is being aborted because it tries to call self._v_db.db.rollback(). I'm not sure why DCOracle2 treats SP as another ResourceManager while it still uses same db connection as the other ZSQLs etc. As a result if we have a lot of SP calls during one request there is a lot of commits (rollbacks) to the same db connection. Maybe it's something about caching procedure objects in volatile attributes. -- Maciej Wisniowski ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db