[Zope-dev] ZPivotTable doesnt save its data dictionary

2001-05-13 Thread florian_reiser
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

Re: [Zope-dev] ZPivotTable doesnt save its data dictionary

2001-05-13 Thread Jens Vagelpohl
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

Re: [Zope-dev] ZPivotTable doesnt save its data dictionary

2001-05-13 Thread florian_reiser
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

Re: [Zope-dev] ZPivotTable doesnt save its data dictionary

2001-05-13 Thread Jens Vagelpohl
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-in expr=folder_name.superValues(['Meta Type 1', 'Meta Type 2']) dtml-if name=sequence-start select name=my_select_list /dtml-if dtml-with sequence-item

Re: [Zope-dev] ZPivotTable doesnt save its data dictionary

2001-05-13 Thread florian_reiser
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