<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Marc,<br>
    <br>
    Here is a wsgi search query from our server: <br>
    <br>
<a class="moz-txt-link-freetext" href="http://webgis.uster.ch/wsgi/search.wsgi?searchtables=&query=Werriker&cb=stcCallback1005">http://webgis.uster.ch/wsgi/search.wsgi?searchtables=&query=Werriker&cb=stcCallback1005</a><br>
    <br>
    Note that there are builtin searchtables that are always used
    (things like addresses, parcel numbers, building assurance numbers,
    geographic names, etc.) - you can add additional searchtables e.g.
    for waste-water pipes, etc.<br>
    <br>
    The double query parameter is a mistake and stems from the fact that
    it is by mistake also specified in GlobalOptions.js - look for a
    line with<br>
    <br>
    <title>Konsole output</title>
    <div>
      <span style="font-family:monospace"><span
          style="color:#18b2b2;background-color:#ffffff;">var</span><span
          style="color:#000000;background-color:#ffffff;">
          searchBoxQueryURL = </span><span
          style="color:#b21818;background-color:#ffffff;">"/wsgi/search.wsgi?"</span><span
          style="color:#000000;background-color:#ffffff;">;</span><br>
      </span></div>
    <br>
    and remove the extra query parameter. But it is not a big deal, the
    second parameter just replaces the empty one.<br>
    <br>
    Other than that you must check the database permissions and if the
    login parameters are correct.<br>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    <br>
    In the file "search.js" you have to add the default searchtables
    array, if you did not specify one in the URL - something like:<br>
    <br>
    <title>Konsole output</title>
    <div>
      <span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">  searchtables
          = [</span><span
          style="color:#b21818;background-color:#ffffff;">'surveydata.searchtable_addresses'</span><span
          style="color:#000000;background-color:#ffffff;">,'gisdata.searchtable_geographicnames'];</span><br>
        <br>
      </span></div>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    So please double check that your searchtables can be accessed with
    the permissions of the web server user, if the login data is correct
    and if the searchtables are specified and contain a valid structure.<br>
    <br>
    Hope this helps,<br>
    Andreas<br>
    <br>
    <div class="moz-cite-prefix">On 15.06.2015 17:46, Marc B wrote:<br>
    </div>
    <blockquote cite="mid:20150615174635.247b47de@linux-597c.site"
      type="cite">
      <pre wrap="">Hello List,

I am trying to connect the WSGI-Search to my PostGIS-Database.
Unfortunately I am reatively new to python and I dont really understand
which changes in the search.wsgi/qwc_connect.py I have to make.

I've created a DB-table like the one from the github instructions.
I've changed the DB_CONN_STRING in qwc_connect.py.

Some of my Questions are

1. Is there a way to easily test my DB-Connection in qwc_connect?
   
2. The generated URL with parameters is not how ist supposed to be:
   <a class="moz-txt-link-freetext" href="https://my-page.de/wsgi/search.wsgi?query=&searchtables=&query=wo&cb=stcCallback1001">https://my-page.de/wsgi/search.wsgi?query=&searchtables=&query=wo&cb=stcCallback1001</a>

   - Why are there 2 'query'-params, an empty and a correct one?
   - the searchtables-parameter has no value, whether I put in a
     tablename in the search.wsgi or not ( searchtables =
     ['searchtable']; # enter your default searchtable(s) here ). Where
     does this parameter come from? What am i doing wrong?

If I paste the url in the url bar of chrome it says "error: no search
table". When I put a searchtable-value in the url i get a blank page.
It never says 'error: could not execute query'. So I guess, it doesnt
even get that far.

Thank you
Marc 
_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>