Thank you!! thats why I was thinking that callback was not called, I
check and the index is growing, but search functions allways return a
null query.
El 24/03/14 18:13, Niphlod escribió:
Working fine here:
steps to reproduce:
- install whoosh
- create a fresh app
- overwrite fresh app with contents from your archive
- go to /appname/default/form/1 ---argh!!! requesting me to follow
the rabbit to see that if an arg isn't there the whole form crashes!!!
- post a pdf
- get /appname/default/form/1 with base_document.doc_text empty
- run web2py.py -K appname
- wait for the task to be executed
steps to verify its working as expected:
- get /appname/default/form/1 with base_document.doc_text full
- confirm that private/index/.... is created
BTW: if you're expecting your "print statements" to appear somewhere
you must turn on the debugging in the scheduler.
Or, if you still want to "debug by print" (a perfectly fine method for
simple things like this) just put a "return 1" at the end of your
task_get_pdf_text() function.
In that way, a scheduler_run record will be created for each task
execution and you'll be glad to see that your print statements are
right there in the run_output column ! ^__^
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google
Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.