Hi Tim<div><br></div><div>Thank you. Good idea. Here is a screenshot of the form init code,</div><div><img src="cid:ii_13b3e6b7ce2a20fc" alt="Inline image 1" width="420" height="216"><br></div><div>Here is also the code that executes just after loading the project. It is in the plugin run method.</div>
<div><img src="cid:ii_13b3e6d7958f5ca1" alt="Inline image 2"><br></div><div>If I zoom to a feature and click on it. and open the feature form, I get the following error messages:</div><div><img src="cid:ii_13b3e6ff3f6655b3" alt="Inline image 3" width="420" height="261"><br>
</div><div><img src="cid:ii_13b3e70ef9b569a5" alt="Inline image 4" width="420" height="263"><br></div><div>then the form loads, but obviously without executing the code in the init function.</div><div>If I use the menu button to save the project / the shortcut key (Ctrl + S) the form opens successfully.</div>
<div><br></div><div>I hope that this makes sense.</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 26, 2012 at 10:13 PM, Tim Sutton <span dir="ltr"><<a href="mailto:lists@linfiniti.com" target="_blank">lists@linfiniti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Justin<div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Mon, Nov 26, 2012 at 9:02 PM, Justin Hubbard <span dir="ltr"><<a href="mailto:justin@pyrotechsoftware.com" target="_blank">justin@pyrotechsoftware.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am developing a plugin, which uses a custom feature form with custom logic.<div>The problem is that when I open the project (Automatic with the load of the plugin) and I try to open the feature form I get an import error that the module doesn't exist.</div>



<div><br></div><div>If I click the save project button, and then try to open the feature form it works correctly.</div><div>I have tried to trigger this save in the plugin code. The save works correctly, but unless I specifically click on the action, I get the same error.<br clear="all">



<div><br></div><div>Am I missing something?</div></div></blockquote><div><br></div></div><div>It would probably be helpful if you can provide enough sample code that someone could replicate your problem, or at the least cut and past text of error messages so we can get a better idea of what is going on.</div>


<div><br></div><div>Regards</div><div><br></div><div>Tim</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div>-- <br><p><span style="font-family:verdana,geneva;font-size:x-small">Warm regards</span><br>


<strong><span style="font-family:verdana,geneva;font-size:x-small">Justin Hubbard</span></strong><br>
<br><strong><span style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br></p><table border="0" cellspacing="1" cellpadding="0" style="background-color:rgb(0,51,102);width:250px;min-height:217px"><tbody><tr>



<td style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white"><table border="0" cellpadding="0" style="background-color:white;width:241px;min-height:207px"><tbody><tr><td colspan="2" style="margin:0px;padding:0.75pt">



<table border="0" cellspacing="0" cellpadding="0" style="width:347px;min-height:212px"><tbody><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"> </td>


<td style="margin:0px;padding:0in;min-height:10.5pt">
 <p dir="ltr" style="margin:0px;text-align:justify"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"> <p dir="ltr" style="margin:0px;text-align:justify"><span style="font-family:verdana,geneva"><strong><span style="font-size:10pt;color:red">Justin Hubbard</span></strong></span></p>



<p dir="ltr" style="margin:0px;text-align:justify"><span style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and Support<br><br></span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">



<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  <a href="tel:%2B27%20%280%2979%20827%201657" value="+27798271657" target="_blank">+27 (0)79 827 1657</a></span></p></td></tr><tr style="min-height:10.5pt">


<td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  <a href="tel:%2B27%20%280%2986%20540%206016" value="+27865406016" target="_blank">+27 (0)86 540 6016</a></span></p></td></tr><tr style="min-height:10.5pt">


<td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">



<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="Email Me" href="mailto:robert@plannermunicipalsoftware.co.za" target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>



</td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"><p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt">



<span style="font-size:7.5pt;color:rgb(0,51,102)">  Web Site:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="About Me" href="http://www.plannermunicipalsoftware.co.za/" target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>



</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>
</div>
<br></div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)<br>==============================================<br>Please do not email me off-list with technical<br>


support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>surrounding your issue will be shared with all.<br><br>Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>


 * QGIS programming and support services<br> * Mapserver and PostGIS based hosting plans<br> * FOSS Consulting Services<br>Skype: timlinux<br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
==============================================<br>


</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p><span style="font-family:verdana,geneva;font-size:x-small">Warm regards</span><br><strong><span style="font-family:verdana,geneva;font-size:x-small">Justin Hubbard</span></strong><br>
<br><strong><span style="font-family:verdana,geneva;font-size:x-small">--</span></strong><br></p><table border="0" cellspacing="1" cellpadding="0" style="background-color:rgb(0,51,102);width:250px;height:217px"><tbody><tr>
<td style="margin:0px;padding:1.5pt;font-family:arial,sans-serif;background-color:white"><table border="0" cellpadding="0" style="background-color:white;width:241px;height:207px"><tbody><tr><td colspan="2" style="margin:0px;padding:0.75pt">
<table border="0" cellspacing="0" cellpadding="0" style="width:347px;height:212px"><tbody><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"> </td><td style="margin:0px;padding:0in;min-height:10.5pt">
 <p dir="ltr" style="margin:0px;text-align:justify"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"> <p dir="ltr" style="margin:0px;text-align:justify"><span style="font-family:verdana,geneva"><strong><span style="font-size:10pt;color:red">Justin Hubbard</span></strong></span></p>
<p dir="ltr" style="margin:0px;text-align:justify"><span style="font-size:7.5pt;color:rgb(0,51,102)">Software Engineer and Support<br><br></span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Mobile:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)79 827 1657</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Fax:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  +27 (0)86 540 6016</span></p></td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt">
<p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:rgb(0,51,102)">  Email:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt">
<p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="Email Me" href="mailto:robert@plannermunicipalsoftware.co.za" target="_blank">justin@pyrotechsoftware.com</a></span></span></span></p>
</td></tr><tr style="min-height:10.5pt"><td width="14" valign="top" style="margin:0px;padding:0in;min-height:10.5pt;width:10.5pt"><p style="margin:0px"> </p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt">
<span style="font-size:7.5pt;color:rgb(0,51,102)">  Web Site:</span></p></td><td style="margin:0px;padding:0in;min-height:10.5pt"><p style="margin:0px;line-height:10.5pt"><span style="font-size:7.5pt;color:navy">  <span style="color:blue"><span style="color:rgb(0,0,204)"><a title="About Me" href="http://www.plannermunicipalsoftware.co.za/" target="_blank">www.pyrotechsoftware.co</a>m</span></span></span></p>
</td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table><br>
</div>