<div class="gmail_quote">
<div>Hello,</div>
<div> </div>
<div>Just want you to confirm that this is a bug or not in this plugin.</div>
<div> </div>
<div>When listing (refreshing) the schema/tables, if the postgis connected user does not have permission to all schemas/tables, Python is returning a error on line 256 on file postgis_utils.py indicating that the index i does not exists:  items[i] = geo_item</div>

<div> </div>
<div>
<div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"># merge geometry info to &quot;items&quot;<br>   for i, geo_item in enumerate(c.fetchall()):<br>    if geo_item[7]:<br>
     items[i] = geo_item</blockquote></div>
<div> </div></div>
<div>I can see that there are 2 queries: somehow the second query may not return the same number of records as in the first query.</div>
<div> </div>
<div>A solution that worked for me was:</div>
<div> </div>
<div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"># merge geometry info to &quot;items&quot;<br>   for i, geo_item in enumerate(c.fetchall()):<br>    if geo_item[7] and i &lt; len(items):<br>
     items[i] = geo_item</blockquote></div>
<div> </div>
<div>Sorry, Python in not my &quot;first language&quot; :)</div>
<div> </div>
<div>Cheers,</div>
<div>Marco Afonso</div></div>