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
On Wed, Aug 27, 2003 at 02:54:50PM +1000, Anthony Baxter wrote:
Go to the Find tab in the ZMI, select "All types", containing "<foo>"
Error type: TypeError Error value: expected a character buffer object
Interesting... foo is ok, but <foo> gives the TypeError.
The minimal reproducing example seems to be a single less-than sign. greater-than is fine.
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@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@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 )