[Zope-dev] 2.6.2b..., Find is busted
Andreas Jung
andreas at andreas-jung.com
Wed Aug 27 09:10:16 EDT 2003
This error is caused by a conversion of "<foo>" into a TaintedString
(because of the <..>) notation.
The tainted string is passed to
ob.PrincipiaSearchSource().find(taintedstring). I think the solution is to
pass str(taintedstring) to find() instead of passing the instance itself.
-aj
--On Mittwoch, 27. August 2003 14:54 Uhr +1000 Anthony Baxter
<anthony at interlink.com.au> wrote:
>
>
> Go to the Find tab in the ZMI, select "All types", containing "<foo>"
>
> Error type: TypeError
> Error value: expected a character buffer object
>
> Traceback (innermost last):
>
> Module ZPublisher.Publish, line 49, in publish
> Module ZPublisher.mapply, line 32, in mapply
> Module ZPublisher.Publish, line 38, in call_object
> Module Shared.DC.Scripts.Bindings, line 250, in __call__
> Module Shared.DC.Scripts.Bindings, line 270, in _bindAndExec
> Module App.special_dtml, line 110, in _exec
> Module DocumentTemplate.DT_With, line 58, in render
> Module DocumentTemplate.DT_Util, line 175, in eval
> __traceback_info__: obj_metatypes
> Module <string>, line 0, in ?
> Module OFS.FindSupport, line 51, in ZopeFind
>
> TypeError: expected a character buffer object
>
>
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope )
More information about the Zope-Dev
mailing list