[Zope] About Zope 2.8.1

2005-07-28 Thread Pascal Peregrina
Hi, I have a doubt... I would like to know if all the fixes included in Zope 2.7.7 (that was out after 2.8.0) will be included in 2.8.1, like for example : * Collector #1781: made create_mount_points ZConfig option actually work (thanks to Dieter Maurer for the patch). * Collector #1797: when a

RE: [Zope] About Zope 2.8.1

2005-07-28 Thread Pascal Peregrina
Ok thanks... Pascal -Message d'origine- De : Andreas Jung [mailto:[EMAIL PROTECTED] Envoyé : jeudi 28 juillet 2005 09:33 À : Pascal Peregrina; 'zope@zope.org' Objet : Re: [Zope] About Zope 2.8.1 --On 28. Juli 2005 08:29:11 +0100 Pascal Peregrina [EMAIL PROTECTED] wrote: Hi, I

[Zope] Split a ZODB

2005-07-28 Thread Yuri
Hi! How can I split a Zodb? I mean, I have a big folder which I would like to became a separate ZODB file to mount on the main one. In unix I would move all the files of that folder on another partition, then mount it on that folder. ___ Zope

[Zope] Composing variables

2005-07-28 Thread Cristi Barladeanu
Good day everyone I've defined some archetypes that contain fields like Title_en, Title_de, Content_en, Content_de, etc. Assuming that I've set a language var related to URL like (lang = 'en'), how can i access them? Thanks, Cristi ___ Zope maillist

[Zope] Re: Zope Foundation Update

2005-07-28 Thread Godefroid Chapelle
Hi Christian, Thanks for this long and balanced post. Far less heated than I (or other hot people of the community) can produce. I hope ZC will take time to answer your legitimate questions... I suppose you'll await some progress on the negotiation before joining us in ZEA... BTW, do you

Re: [Zope] Composing variables

2005-07-28 Thread Andreas Jung
--On 28. Juli 2005 11:59:09 +0300 Cristi Barladeanu [EMAIL PROTECTED] wrote: Good day everyone I've defined some archetypes that contain fields like Title_en, Title_de, Content_en, Content_de, etc. Assuming that I've set a language var related to URL like (lang = 'en'), how can i access

[Zope] DTML parsing outside of Zope

2005-07-28 Thread Peter Bengtsson
I would like to be able to parse a very basic DTML string (a ZSQLMethod on the file system actually) outside Zope, ie. without having the whole zserver running. The DTML inside the string is very basic. It doesn't use REQUEST or aqcuisition. It's using dtml-if 1==2 and stuff. I've tried looking on

Re: [Zope] Split a ZODB

2005-07-28 Thread Yuri
Lennart Regebro wrote: On 7/28/05, Yuri [EMAIL PROTECTED] wrote: Hi! How can I split a Zodb? I mean, I have a big folder which I would like to became a separate ZODB file Well, I suspect the simplest way is to copy the ZODB and delete everything that shouldn't be in it. Export and

Re: [Zope] Split a ZODB

2005-07-28 Thread Lennart Regebro
On 7/28/05, Yuri [EMAIL PROTECTED] wrote: Anyway, some command line tools could help... zodb operations can take longer time (for example, changing the name of the upper folder wake up all the contained objects...) Yeah, but it wouldn't be faster through the command line... -- Lennart

Re: [Zope] DTML parsing outside of Zope

2005-07-28 Thread Jonathan
- Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, July 28, 2005 5:59 AM Subject: [Zope] DTML parsing outside of Zope I would like to be able to parse a very basic DTML string (a ZSQLMethod on the file system actually) outside Zope, ie.

Re: [Zope] DTML parsing outside of Zope

2005-07-28 Thread Peter Bengtsson
import Zope app=Zope.app() No. I've actually found a way to do it without starting zope (thus, not using the ZODB). The trick was in import nvSQL from DA.py and use that. It works now, I can now parse and run ZSQL methods on the filesystem without having any zope running. I'm going to tidy my

[Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread rr
Good day all, Using Zope 2.7.6 I'm trying to use the getPhysicalRoot() function. In a rather large site we have a folder called 'functions' placed in root. This folder contains a formatting function 'far' I want to use in some other folder. But in the path from root to the place I the function

Re: [Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread Andreas Jung
--On 28. Juli 2005 13:24:37 +0200 [EMAIL PROTECTED] wrote: Good day all, Using Zope 2.7.6 I'm trying to use the getPhysicalRoot() function. In a rather large site we have a folder called 'functions' placed in root. This folder contains a formatting function 'far' I want to use in some

Re: [Zope] product organization

2005-07-28 Thread Nicholas Wieland
But how do I get the connection id ? Actually I get it when I instance the product in Zope. What I think is something like class Foo def __init__ (self, conn): self.conn = conn myquery = SQL ('doMyQuery', '', self.conn, '', 'select * from table') but obviously it will not work. TIA, ngw

[Zope] 2 Zope instances on a 2 CPU linux server

2005-07-28 Thread Pascal Peregrina
Hi, I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ? As far a I know, python can not fully take advantage of 2 CPU cause python threads are not OS

[Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Sune B. Woeller
Tim Peters wrote: It's starting to look a lot like the Windows bind() implementation is unreliable, sometimes (but rarely -- hard to provoke) allowing two sockets to bind to the same (address, port) pair simultaneously, instead of raising 'Address already in use' for one of them. Disaster

[Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Sune B. Woeller
Tim Peters wrote: [Sune B. Woeller] I will try to recreate the problem on other flavours of windows asap. I will get back to you later. Cool! If you can, posting a self-contained program that demonstrates the problem is the best way to make progress. I guess my reporting was a bit too

Re: [Zope] 2 Zope instances on a 2 CPU linux server

2005-07-28 Thread Andreas Jung
--On 28. Juli 2005 14:11:18 +0100 Pascal Peregrina [EMAIL PROTECTED] wrote: Hi, I would like to know what if using taskset (CPU affinity utility on linux) to bind each Zope instance to one single CPU can improve overall performance of both instances in any way ? A single Python CPU can

RE: [Zope] 2 Zope instances on a 2 CPU linux server

2005-07-28 Thread Andrew Sawyers
Run as many Zope instances as CPUs you have if you wish to take advantage of this in Zope: i.e. 2 CPUs == 2 Zope Instances. You will basically double the performance of the server with ea. CPU/Instance. At some point there might be a diminishing return, but I doubt any of us have that

[Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Sune B. Woeller
I have made two similar testprograms in c++, and the problem also occurs there. Exactly the same pattern as my python client/server scripts in the mail I am replying to. But then I stumbled upon this flag in the WinSock documentation: SO_EXCLUSIVEADDRUSE See the description here:

[Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Sune B. Woeller
btw, the code is slightly modified versions of the getting started with Winsock example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/getting_started_with_winsock.asp Sune B. Woeller wrote: I have made two similar testprograms in c++, and the problem also

Re: [Zope] Oracle 9.2.0.2

2005-07-28 Thread Andreas Jung
--On 28. Juli 2005 14:59:15 -0400 Robert [EMAIL PROTECTED] wrote: Can Zope use it for its database? And if so what do I use? - DCOracle2 -aj pgpMWV1In7wW0.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org

Re: [Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread Robert-Reinder Nederhoed
Solved. Thanks for the reactions. It works! My current code looks like this now: #force function in '/root/functions' far = context.restrictedTraverse('/').functions.far x = foo() print far(value=x) Of course, it is stupid to make getPhysicalRoot private when it is so easy to access the

[Zope] Re: Zope Foundation Update

2005-07-28 Thread Christian Scholz
Hi! Thanks for this long and balanced post. Far less heated than I (or other hot people of the community) can produce. I hope ZC will take time to answer your legitimate questions... I'd also prefer some answers by some independant people regarding legal topics (as long as it can be told

Re: [Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread David H
Robert-Reinder Nederhoed wrote: Solved. Thanks for the reactions. It works! My current code looks like this now: #force function in '/root/functions' far = context.restrictedTraverse('/').functions.far x = foo() print far(value=x) Of course, it is stupid to make getPhysicalRoot private

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Sune B. Woeller] ... This is what I'm experiencing as well. I can narrow it down a bit: I *always* experience one out of two erroneous behaviours, as described below. I see only one of the behaviors below (the second -- no problems), and don't agree it's in error. I tried to make an even

[Zope] Suppressing dupes in a concatenated ZCatalog query.

2005-07-28 Thread abgillette
Hi All, I have a ZCatalog with two text indexes, news_subj and news_text. Each ZCatalog item also has a unique numeric ID. I'd like to search news_subj and news_text simultaneously, with the results checked for duplicates. In other words, if catalog item 1001 has the word foobar in both the

Re: [Zope] Suppressing dupes in a concatenated ZCatalog query.

2005-07-28 Thread Paul Winkler
On Thu, Jul 28, 2005 at 03:57:45PM -0500, [EMAIL PROTECTED] wrote: Hi All, I have a ZCatalog with two text indexes, news_subj and news_text. Each ZCatalog item also has a unique numeric ID. I'd like to search news_subj and news_text simultaneously, with the results checked for duplicates.

Re: [Zope] Suppressing dupes in a concatenated ZCatalog query.

2005-07-28 Thread Jonathan
- Original Message - From: [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, July 28, 2005 4:57 PM Subject: [Zope] Suppressing dupes in a concatenated ZCatalog query. Hi All, I have a ZCatalog with two text indexes, news_subj and news_text. Each ZCatalog item also has a unique

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Sune B. Woeller] ... But then I stumbled upon this flag in the WinSock documentation: SO_EXCLUSIVEADDRUSE See the description here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/using_so_exclusiveaddruse.asp Right, I vaguely wink knew about that. Note that

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Tim] ... At this point, I wouldn't consider using it [SO_EXCLUSIVEADDRUSE] unless someone first took the tedious time it needs to demonstrate that when it is used, the thing that _I_ think is a bug here goes away in its presence: the seeming ability of Windows to sometimes permit more than

Re: [Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread Andreas Jung
Please file a bug report to make getPhysicalPath() publilc. I agree with Dieter that it is dumb to make it private if you can get the root using restrictedTraverse()). -aj --On 28. Juli 2005 22:22:42 +0200 Robert-Reinder Nederhoed [EMAIL PROTECTED] wrote: Solved. Thanks for the

[Zope] Emergency user not working?

2005-07-28 Thread ed nospam
Hi I have zope-2.7.2 installed but I can't seem to log into zope with the emergency user. I followed the instruction: cd /usr/lib/zope bin/zpasswd.py access Username: superuser Password: Verify password: Please choose a format from: SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt

Re: [Zope] Emergency user not working?

2005-07-28 Thread Andreas Jung
--On 28. Juli 2005 20:36:28 -0700 ed nospam [EMAIL PROTECTED] wrote: Hi I have zope-2.7.2 installed but I can't seem to log into zope with the emergency user. I followed the instruction: cd /usr/lib/zope Are you sure you that /usr/lib/zope is your instance home and *not* your software

Re: [Zope] Emergency user not working?

2005-07-28 Thread ed nospam
Andreas, You are awesome. :) It fixed the problem. Yeah, it should have been /var/lib/zope. Thank you! Thank you! :) You just beat all the google search I've done in the past hour. :) On 7/28/05, Andreas Jung [EMAIL PROTECTED] wrote: --On 28. Juli 2005 20:36:28 -0700 ed nospam [EMAIL