Problem with DTML Batch Processing
Hi, I've been playing around with Zope for quite some time now and have been very excited about some of the possibilities it presents. I've been particularly pleased with the simplicity and elegant power of the Batch Process capabilities withing DTML. Recently however I've run into a problem which appears to be a bug related to upgrading to Python 1.5.2. I have a bit of DTML like this (variable names changed to protect the innocent!): <!--#in some_sql_query size=25 start=qw sort=some_var_name--> ### Display column headers, records, etc <!--#if sequence-end--> </table> <!--#if next-sequence--> Next Sequences: <!--#in next-batches mapping--> <a href="<!--#var URL--><!--#var sequence-query-->qs=<!--#var batch-start-number-->"> (<!--#var batch-start-var-var_name--> - <!--#var batch-end-var-var_name-->)</a> <!--#/in--> <!--#/if next-sequence--> <!--#/if sequence-end--> <!--#else--> <p><b>Query Returned No Records</b></p> <!--#/in--> Where 'some_sql_query' is an sql query against our Oracle database. This all works fine. I can retrieve the data and format it to my hearts content (very slick!). The problem is with the piece at the botton which uses the sequence-* and batch-* stuff. These pieces worked fine when I was using Python 1.5.1, but when I upgraded to Python 1.5.2 these display out something like this: Next Sequences: (32 - 32) (33 - 33) (34 - 34) (35 - 35) (36 - 36) (37 - 37) (38 - 38) (39 - 39) (40 - 40) (41 - 41) (43 - 43) (44 - 44) (45 - 45) (46 - 46) (47 - 47) (48 - 48) (49 - 49) (50 - 50) (51 - 51) (52 - 52) (53 - 53) (54 - 54) (55 - 55) (56 - 56) (57 - 57) (58 - 58) (59 - 59) (60 - 60) (61 - 61) (62 - 62) (63 - 63) (64 - 64) (65 - 65) (66 - 66) (67 - 67) (68 - 68) etc... What it should display (and used to...) something more like this: Next Sequences: (32 - 57) (58 - 68) I can go back to Python 1.5.1 with no problems, but I was just wondering if anyone else had seen anything like this. All this is with Zope 1.10.2 on a Solaris 2.5.1 machine. If any Zopistas out there can shed some light on this, that would be great. Dave -- ---------------------------------------------------- David R. White Raytheon Electronic Systems Process Support (508) 440-2087 528 Boston Post Rd. Sudbury, MA 01776 davew@ed.ray.com ----------------------------------------------------
participants (1)
-
David White