#609: intbitset should be evaluable as bool
-------------------------+-----------------
 Reporter:  jblayloc     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  minor        |  Milestone:
Component:  *general*    |    Version:
 Keywords:               |
-------------------------+-----------------
 Wouldn't it be great if you could say:
 {{{
 hits = search_expression(p='query string')
 if hits:
   # do stuff
 }}

 I think it would.

 intbitsets should be able to be evaluated as bools using the usual rules
 for lists - if it's empty it's false, if it's not it's true.

-- 
Ticket URL: <http://invenio-software.org/ticket/609>
Invenio <http://invenio-software.org>

Reply via email to