Re: [Zope-dev] 2.6.2b..., Find is busted

2003-08-27 Thread Andreas Jung
This error is caused by a conversion of "" 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 
<[EMAIL PROTECTED]> wrote:



Go to the Find tab in the ZMI, select "All types", containing ""

 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 , line 0, in ?
  Module OFS.FindSupport, line 51, in ZopeFind
TypeError: expected a character buffer object



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


Re: [Zope-dev] 2.6.2b..., Find is busted

2003-08-27 Thread Paul Winkler
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 ""
>
>  Error type:  TypeError
>  Error value: expected a character buffer object

Interesting... foo is ok, but  gives the TypeError.

The minimal reproducing example seems to be a single
less-than sign.  greater-than is fine.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's LORD CUSTODIAN!
(random hero from isometric.spaceninja.com)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )


[Zope-dev] 2.6.2b..., Find is busted

2003-08-27 Thread Anthony Baxter


Go to the Find tab in the ZMI, select "All types", containing ""

 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 , line 0, in ?
  Module OFS.FindSupport, line 51, in ZopeFind

TypeError: expected a character buffer object



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )