Hello, since I installed the b5 of Zope 2 I can not use anymore the slicing function for database result sets. The following query works with b4 without any problems: select LastName as Nachname, FirstName as Vorname, Company as Firma from contacts order by LastName .............. Wenn I try to use the result slicing for database queries in b5, Zope generates this error message: ------------------------- cut here -------------------------------------- Error Type: TypeError Error Value: slice index must be int Traceback (innermost last): File /test/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py, line 209, in publish_module File /test/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /test/Zope-2.0.0b5-src/lib/python/Zope/__init__.py, line 199, in zpublisher_exception_hook (Object: list_all_contacts_2) File /test/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /test/Zope-2.0.0b5-src/lib/python/ZPublisher/mapply.py, line 154, in mapply (Object: manage_test) File /test/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_test) File /test/Zope-2.0.0b5-src/lib/python/Shared/DC/ZRDB/DA.py, line 307, in manage_test (Object: list_all_contacts_2) File /test/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: <string>) File /test/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_In.py, line 610, in renderwb (Object: list_all_contacts_2) File /test/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_InSV.py, line 388, in __getitem__ File /test/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_InSV.py, line 212, in query TypeError: (see above) ------------------------- cut here -------------------------------------- Changend anything from b4 to b5 for slicing? Thanks. regards, Oliver
participants (1)
-
Oliver Dissars