[Zope-dev] Simple Question

2001-05-23 Thread jawad haider
Hi: I have recently started exploring zope and I want to develop this simple thing: A search form and when somebody presses the submit button after specifying the search criteria, I want search results to be displayed on the same page below the  the search criteria.   Following is the piece of co

[Zope-dev] CoreSessionTracking 0.8

2001-05-23 Thread Howard Zhang
Hi The problem about CoreSessionTracking we describe before we can repeat again now. The step is: ( 1 ) User adds Burger to shopping cart ( 2 ) User adds coke to shopping cart and click link to add coke again before request finished ( 3 ) The Burger is disappear

Re: [Zope-dev] CoreSessionTracking 0.8

2001-05-23 Thread Chris McDonough
I remember this problem, but I haven't been able to reproduce it. But maybe it's because I'm not understanding the steps to reproduce it. The sentence "user adds coke to shopping cart and click link to add coke again before request finished" is hard to understand. Can you explain? Are you usin

Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-23 Thread Bjorn Stabell
Allright, let me try again. I wish I had a small piece of code to give you so you can reproduce it, but right now you'd have to get our entire CMF-based website. The bug basically manifests itself in that there are two versions of the variable we put in the session (a shopping cart dict). When

[Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Has anyone seen anything like this? I have the following script in a Specialist: ## Script (Python) "deleteAllTracks" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## trackMaster=context.Tracks im

[Zope-dev] Extended DTML Sorting gone into trunk

2001-05-23 Thread Andreas Jung
For your information: the implementation of the Extended DTML Sorting proposal (http://dev.zope.org/Wikis/DevSite/Proposals/ExtendedDTMLSorting) has gone into the trunk. The implementation introduces a new module "sequence" to the _ namespace. For further documentation check the online help (sear

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Christian Scholz
Hi! > It works.. partially. For some reason it looks like getPersistentItemIDs > does not always return a *complete* list. I need to run this method > several times to completely exhaust the Rack's storage. Thoughts? The > only way I ever create Track objects is via a different method that is

[Zope-dev] ZCatalog Brains

2001-05-23 Thread Chris Withers
Hi, Is it still fair game to use the data_record_normalized_score_ attibute of ZCatalog Brain objects? If so, is it accurate and meaningful? Finally, is there any way I can do the Google-esque thing of showing the snippet of the searched etxt with the words that were found highlighted? cheers,

RE: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-23 Thread Albert Langer
It's obvious. This is just Zope's way of telling you not live on hamburgers and coke. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bjorn Stabell Sent: Thursday, May 24, 2001 12:33 AM To: Chris McDonough; Howard Zhang Cc: [EMAIL PROTECTED] Subject: Rand

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Alexander
Steve Spicklemire wrote: > > Has anyone seen anything like this? > > It works.. partially. For some reason it looks like getPersistentItemIDs > does not always return a *complete* list. I need to run this method > several times to completely exhaust the Rack's storage. Yes, I've seen this.

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Phillip J. Eby
At 05:48 PM 5/23/01 +0200, Christian Scholz wrote: >Hi! > > > It works.. partially. For some reason it looks like getPersistentItemIDs > > does not always return a *complete* list. I need to run this method > > several times to completely exhaust the Rack's storage. Thoughts? The > > only way I ev

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Well.. it turned out to be more subtle. It goes back to the old problem that getPersistentItemIDs doesn't return a real list, but rather a BTreeItems object. When you call manage_delete on *one* item, it affects the BTreesItems object you are iterating over! This works: ## Script (Python) "de

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Alexander
Steve Spicklemire wrote: > > Well.. it turned out to be more subtle. > > It goes back to the old problem that getPersistentItemIDs doesn't return > a real list, but rather a BTreeItems object. When you call manage_delete > on *one* item, it affects the BTreesItems object you are iterating over!

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Hi Phil, Yup.. I realized it when I could *list* all the ids, but not delete them. ;-) I'm wondering if it might be better to change the implementation of getPersistentItemIDs to return a plain list? This would also help avoid permission errors that folks run in to when trying to use it in dt

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Spicklemire
Hi Phil, FYI.. this doesn't work in a PythonScript since indexing into a BTreeItems is (apparently) not allowed by the "Security Machinery". So... a simple list is looking better and better! ;-) -steve On Wednesday, May 23, 2001, at 11:22 AM, Phillip J. Eby wrote: > The fix would probably be

[Zope-dev] ZEO on SMP

2001-05-23 Thread Dyon Balding
Hi, We are setting up a cluster of ZEO clients on dual processor machines. >From some experiments and from searching through the mailing lists, it appears that a single Zope process will not take full advantage of the two processors. The solution would appear to be to run two ZEO clients on eac

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Tino Wildenhain
Hi Dyon, ZEO on a dual processor machine runs fine for me. I'm using redhat-linux for the server (ZEO and Clients on same machine) If you dont need strange things I would not recommend Win2k as server platform. Best regards Tino Wildenhain --On Mittwoch, 23. Mai 2001 11:35 -0700 Dyon Balding <[

Re: [Zope-dev] Simple Question

2001-05-23 Thread jawad haider
How come no one is answering to my mail below. Is it too trivial or too complex or the people in the list is too busy ? Please respond if you have any clue/suggetion.   >From: "jawad haider" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [Zope-dev] Simple Question >Date: Wed, 23 May 2001 1

Re: [Zope-dev] Simple Question

2001-05-23 Thread Andreas Jung
After reading your description I don't know yet what your real problem or question is ?! Andreas From: "jawad haider" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 23, 2001 6:51 PM Subject: Re: [Zope-dev] Simple Question > How come no one is answering to my mail below. Is i

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Dyon Balding
Tino, Thanks for your reply. When you say it works fine on a dual processor machine, are you saying that a single ZEO client fully utilises both processors? or that you are running two ZEO clients successfully? Unfortunately I'm currently stuck with Windows due to both political reasons, and be

Re: [Zope-dev] ZCatalog Brains

2001-05-23 Thread Michel Pelletier
On Wed, 23 May 2001, Chris Withers wrote: > Hi, > > Is it still fair game to use the data_record_normalized_score_ attibute of > ZCatalog Brain objects? Yes. > If so, is it accurate and meaningful? Only for queries involving text indexes, and even then it's not very meaningful. It takes the

RE: [Zope-dev] ZEO on SMP

2001-05-23 Thread Randall F. Kern
If I understand your scenario, you are trying to run two instances of Zope on a single machine, talking to a ZEO server? That won't work :) Neither Unix nor Windows knows what to do with two processes trying to open the same port for listen. I'm surprised the second Zope instance even starts.

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Dyon Balding
They are listening on different ports, (80 and 81) in my test case. And yes, there will be a load balancer in front of them (there will be 15 dual processor servers) to make the cluster appear like one machine. -dyon On Wed, May 23, 2001 at 12:38:25PM -0700, Randall F. Kern wrote: > If I unders

Re: [Zope-dev] Simple Question

2001-05-23 Thread jawad haider
Hi: Thanks for your response. I wanted to make a search form in which search criteria and search result will appear on the same page e.g.search criteria on the top and when the submit button is pressed the list of search results should be displayed in the bottom of the page. But when I try to acc

Re: [Zope-dev] Simple Question

2001-05-23 Thread Andreas Jung
- Original Message - From: "jawad haider" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 23, 2001 7:44 PM Subject: Re: [Zope-dev] Simple Question > > > > > > Here dtFindCustomer is a DTML method which in turn call z sql method which performs

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Phillip J. Eby
At 12:33 PM 5/23/01 -0500, Steve Spicklemire wrote: >Hi Phil, > >FYI.. this doesn't work in a PythonScript since indexing into a BTreeItems >is (apparently) not allowed by the "Security Machinery". So... a simple >list is looking better and better! ;-) Hmmm. Good point. I'll have to think abo

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Jeremy Hylton
Since a single Python process has a single global interpreter lock, you'll never fully utilize a 2-processor machine. The lock is released whenever a socket call (send, receive, listen, etc.) is made, so that provides some opportunity for using two CPUs, but not much. Jeremy __

Re: [Zope-dev] Simple Question

2001-05-23 Thread Michel Pelletier
On Wed, 23 May 2001, jawad haider wrote: > > > I wanted to make a search form in which search criteria and search > result will appear on the same page e.g.search criteria on the top and > when the submit button is pressed the list of search results should be > displayed in the bottom of the page

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread David Brown
At 08:26 PM 5/23/2001 -0400, Jeremy Hylton wrote: >Since a single Python process has a single global interpreter lock, >you'll never fully utilize a 2-processor machine. I may be merely demonstrating ignorance, but -- If you, say, launched two separate Zope processes, and one ZEO process, on t

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Jeremy Hylton
> "DB" == David Brown <[EMAIL PROTECTED]> writes: DB> At 08:26 PM 5/23/2001 -0400, Jeremy Hylton wrote: >> Since a single Python process has a single global interpreter >> lock, you'll never fully utilize a 2-processor machine. DB> If you, say, launched two separate Zope processes, a

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Dyon Balding
Well that's what I'm trying to do, but as mentioned in my original post, any Zope clients utilising ZEO started after the first one do not respond. The ZEO storage server is running on a separate machine, serving the 15 client machines. -d On Wed, May 23, 2001 at 05:51:57PM -0700, David Brown w

Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Bill Anderson
On 24 May 2001 05:07:30 +1000, Dyon Balding wrote: > Tino, > > Thanks for your reply. > > When you say it works fine on a dual processor machine, are you saying > that a single ZEO client fully utilises both processors? or that you > are running two ZEO clients successfully? I am running dozens

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Bill Anderson
On 23 May 2001 12:22:59 -0400, Phillip J. Eby wrote: > I should probably do this in ZPatterns too. I'm working on upgrading it > for 2.3.2 right now anyway. A cheer sweeps across the crowd. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.

Re: [Zope-dev] CoreSessionTracking 0.8

2001-05-23 Thread Bill Anderson
On 23 May 2001 19:00:41 +0800, Howard Zhang wrote: > Hi > The problem about CoreSessionTracking we describe before we can > repeat again now. > The step is: >( 1 ) User adds Burger to shopping cart >( 2 ) User adds coke to shopping cart and click link to add coke > agai