Ticket #2187 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

make_query not unicode ready

Reported by: gracinet Owned by: madarche
Priority: P2 Milestone: CPS 3.5.1
Component: CPSCompat Version: 3.5.1rc1
Severity: normal Keywords:
Cc:

Description

The Zope provided utility ZTUtils.make_query does not accept unicode input (gives a UnicodeEncoreError). This should be reported upstream, in the meanwhile, we'll use a monkey patch, because it's all over the place. Example : batching links in simple search results.

Change History

comment:1 Changed 9 years ago by gracinet

  • Status changed from new to closed
  • Resolution set to fixed

Done, with the same implicit behaviour as the rest. Namely, passing a unicode string results in the ZPublisher type marker :<encoding>:ustring to be passed (the encoding being itself read from the zope.conf setting)

Test is provided in CPSCompat (docstring doctest) but launched from CPSUtil (being lazy, there)

Note: See TracTickets for help on using tickets.