[Zope] Slice Bug in Zope 2b5 ?
Paul Everitt
Paul@digicool.com
Fri, 20 Aug 1999 10:02:57 -0400
Hello Oliver. It is _very_ important to file this kind of bug in the
Collector:
http://www.zope.org/Collector/
This is how we are tracking what needs to be done for a final release.
Thanks!
--Paul
> -----Original Message-----
> From: Oliver Dissars [mailto:oliver@dissars.de]
> Sent: Friday, August 20, 1999 8:53 AM
> To: zope@zope.org
> Subject: [Zope] Slice Bug in Zope 2b5 ?
>
>
> 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.p
> y, 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
>
>
>
>
>
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>