This question about Using an extension: Answered

Convert SEARCH to DBQUERY

When switching from SEARCH to DBQUERY you might have to convert a lot of topics with searches in them.

To ease the process I wrote a python script which tries to modify these macros accordingly. Right now only query searches are supported.

The script is not feature complete and there are certainly cases which are not handled correctly. So I recommend using it carefully and investigating the results before deactivating the testmode.

Configuration parameters are set and documented directly in the code.

Feel free to modify.

Requirements:
  • Python 2.7
  • newline patch, see Item14661 (for wiki tables in format string)

Usage: foswiki.convert.search2dbquery.py <wikifile>

-- Main.StefanH - 28 Mar 2018 - 21:14

 

QuestionForm edit

Subject Using an extension
Extension DBCachePlugin
Version
Status Answered
Related Topics
I Attachment Action Size Date Who Comment
foswiki.convert.search2dbquery.py.txttxt foswiki.convert.search2dbquery.py.txt manage 14 K 28 Mar 2018 - 19:37 StefanH  
Topic revision: r1 - 28 Mar 2018, StefanH
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy