RE: [Zope-dev] CoreSessionTracking 0.8 strangeness
Yes, it is entirely with cookies, and we are using frames, although the there's only one sub-frame accessing the session object (that's where we show the shopping cart). -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 12, 2001 23:18 To: Bjorn Stabell Cc: [EMAIL PROTECTED]; Exoweb Subject: Re: [Zope-dev] CoreSessionTracking 0.8 strangeness Bjorn, Is this entirely with cookies? Or are you using url-encoding anywhere? Does your application make use of frames or multiple windows? - C Bjorn Stabell wrote: > > Chris, > > It is definately not what you expect, although it was a good guess :) > Here's an example of what happens: > > 1. User adds Burger to shopping cart > -> Shopping cart shows Burger > 2. User adds Coke to shopping cart > -> Shopping carts shows Burger and Coke > 3. User adds Fries to shopping cart > -> Shoppping cart is empty(!) > 4. User adds Fries to shopping cart > -> Shopping cart only shows Fries > 4. User adds Apple Pie to shopping cart > -> Shopping cart shows Fries and Apple Pie > 5. User adds Ice Cream to shopping cart > -> Shopping cart shows Burger, Coke, and Ice Cream(!) > ...and so on... > > Sometimes, clicking links that don't even touch the shopping cart will > make it disappear, e.g., viewing a new product category in the catalog. > It seems pretty random, and it is hard to reproduce reliably. The > shopping cart is displayed on the same page as the catalog. Any ideas? > > PS! I have noticed that in other cases Zope is a acting a little bit > random too, e.g., when it comes to which character set is used; it will > not obey our commands to set it to gb2312 about 1 out of 10 times. That > could be an IE bug, but I doubt it. > > Bye, > -- > Bjorn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Mailing List Archives
On 13/5/01 8:04 pm, "Chris Withers" <[EMAIL PROTECTED]> wrote: > What's the UI like into this? If it's good, and you'd be willing to ship us > the code and pre-loaded data, I think arms could be twisted here to host and > maintain thos in favour of our curent Lotus Notes archives. I can feel my arm being twisted, even now :-) Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping
> Probably I'm daft because it is Friday night, but AFAIK ZODB and most OODB's > store an object only once, keyed by its object id. The rest is just references > through that oid, so objects that belong to more than one container can be > added to all these containers and n:m relations are implemented by having a > list of objects on both sides. Yes, but these references (let's call them "symlinks" ...) are not in the standard Zope. Of course it should be easy to do these things, but except for this from Shane I haven't seen anything so far: http://www.zope.org/Members/hathawsh/Symlink/index_html P.S.: Shane, have you developed Symlinks any further? I think they could be extremely useful. I tried out the initial release and liked it, except for the fact that the symlinks looked EXACTLY like real ones, so they can be very irritating ... Joachim ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping
> This is true in the ZODB, but can be complicated by acquisition. If an > object can acquire itself, it can cause issues. Plus it becomes > difficult to know whether objects are clones or just identical > instances, although this can be mitigated by exposing their Python > instance id. Acquisition is very cool, but it sometimes really sucks ... AFAIK you can easily "switch it off" in your own Python products. But I am still fighting with only getting private variables (i.e. not acquired ones) in DTML ... ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPivotTable doesnt save its data dictionary
jens, thank you very much for your help. Now I've only get to work out how to get the results of the query inside my Pivot table, so I can compute them. Greetings florian On Sun, May 13, 2001 at 11:22:14AM -0400, Jens Vagelpohl wrote: > florian, > > as far as i know you can call superValues from DTML. it returns a list of > objects. you could do something like this: > > > > > > > > > &dtml-title; > > > > > > > > Cannot find anything! > > > > jens > > > On 5/13/01 10:43, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > jens, > > > > thanks for your reply. It helped me a lot. > > > > Do you have me a tip how I can get all Z SQL Methods in an selection field. > > I've found the superValues('Z SQL Method') function, but I'm having problems > > using it, because it can only be used in python. > > > > So how can I get the result returned from this function in my dtml form? > > > > thanx in advance > > > > florian > > > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > -- --- | Florian ReiserPGP-Key:0x5368CF3F| | PGP-Fingerprint: 84C7 24BC F3A4 487F CBC7 692C 05DB 6E11 5368 CF3F | --- PGP signature
Re: [Zope-dev] ZPivotTable doesnt save its data dictionary
florian, as far as i know you can call superValues from DTML. it returns a list of objects. you could do something like this: &dtml-title; Cannot find anything! jens On 5/13/01 10:43, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > jens, > > thanks for your reply. It helped me a lot. > > Do you have me a tip how I can get all Z SQL Methods in an selection field. > I've found the superValues('Z SQL Method') function, but I'm having problems > using it, because it can only be used in python. > > So how can I get the result returned from this function in my dtml form? > > thanx in advance > > florian > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPivotTable doesnt save its data dictionary
jens, thanks for your reply. It helped me a lot. Do you have me a tip how I can get all Z SQL Methods in an selection field. I've found the superValues('Z SQL Method') function, but I'm having problems using it, because it can only be used in python. So how can I get the result returned from this function in my dtml form? thanx in advance florian On Sun, May 13, 2001 at 09:57:42AM -0400, Jens Vagelpohl wrote: > florian, > > without even looking at the code, when you use simple data types (lists, > dictionaries, etc) to store your data you have to make sure that the > persistence machinery gets tickled the right way whenever you update values. > with those simple storage datatypes it won't know things have changed unless > you specifically tell it. > > you would need to do either something like this:: > > self.my_storage_dictionary['newvalue'] = x > self._p_changed = 1 > > or you could do it like this: > > dictionary = self.my_storage_dictionary > dictionary['newvalue'] = x > self.my_storage_dictionary = dictionary > > or you could simply use one of the helper classes that come with zope, like > "PersistentMapping". it emulates a dictionary and makes sure the persistence > machinery gets told about changes. > > jens > > > > On 5/12/01 10:27, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Hi folks, > > > > I've started to program a pivot table. > > > > Therefore I've created three classes: > > > > ZPivotTable, Row and Cell. > > > > The ZPivotTable class contains a set of Row classes, stored in a dictionary, > > as well as the Row classes contain a set of Cell classes stored in a > > dictionary. > > > > Now I am debugging the product and can't find the reason why the table doesn't > > store the rows in its dictionary. > > > > Could you please help me finding this bug. > > > > The source is stored under the following address: > > http://www.zope.org/Members/freiser/ZPivotTable/ZPivotTable-0.0.tar.gz > > > > Thanks > > > > Florian Reiser -- --- | Florian ReiserPGP-Key:0x5368CF3F| | PGP-Fingerprint: 84C7 24BC F3A4 487F CBC7 692C 05DB 6E11 5368 CF3F | --- PGP signature
Re: [Zope-dev] ZPivotTable doesnt save its data dictionary
florian, without even looking at the code, when you use simple data types (lists, dictionaries, etc) to store your data you have to make sure that the persistence machinery gets tickled the right way whenever you update values. with those simple storage datatypes it won't know things have changed unless you specifically tell it. you would need to do either something like this:: self.my_storage_dictionary['newvalue'] = x self._p_changed = 1 or you could do it like this: dictionary = self.my_storage_dictionary dictionary['newvalue'] = x self.my_storage_dictionary = dictionary or you could simply use one of the helper classes that come with zope, like "PersistentMapping". it emulates a dictionary and makes sure the persistence machinery gets told about changes. jens On 5/12/01 10:27, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi folks, > > I've started to program a pivot table. > > Therefore I've created three classes: > > ZPivotTable, Row and Cell. > > The ZPivotTable class contains a set of Row classes, stored in a dictionary, > as well as the Row classes contain a set of Cell classes stored in a > dictionary. > > Now I am debugging the product and can't find the reason why the table doesn't > store the rows in its dictionary. > > Could you please help me finding this bug. > > The source is stored under the following address: > http://www.zope.org/Members/freiser/ZPivotTable/ZPivotTable-0.0.tar.gz > > Thanks > > Florian Reiser ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPivotTable doesnt save its data dictionary
Hi folks, I've started to program a pivot table. Therefore I've created three classes: ZPivotTable, Row and Cell. The ZPivotTable class contains a set of Row classes, stored in a dictionary, as well as the Row classes contain a set of Cell classes stored in a dictionary. Now I am debugging the product and can't find the reason why the table doesn't store the rows in its dictionary. Could you please help me finding this bug. The source is stored under the following address: http://www.zope.org/Members/freiser/ZPivotTable/ZPivotTable-0.0.tar.gz Thanks Florian Reiser -- --- | Florian ReiserPGP-Key:0x5368CF3F| | PGP-Fingerprint: 84C7 24BC F3A4 487F CBC7 692C 05DB 6E11 5368 CF3F | --- PGP signature