<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Luca,<br>
<br>
There was a <span class="st"><em>DEBUGMODE</em></span> attribute
introduced some time ago, that can be set on the python form module.
If it is set to True, the changes should be reloaded automatically
when you reopen the form.<br>
<br>
Matthias<br>
<br>
<div class="moz-cite-prefix">On 01/04/2015 10:39 PM, Luca Lanteri
wrote:<br>
</div>
<blockquote
cite="mid:CAM_TN38yTVok9w027Z8tAxd9ZNyTiFGSUYzf2yU7bTFeBK++aQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
I'm using the init python function in order to add
python code into my QGIS forms. This is a great
function because I can add intelligence to my form
without write a plugin, but I still have some
problems:<br>
</div>
- I want to store qml and .ui file directly into
Postgres so that when my users load a layer from
postrgres they've my forms and styles, without pass to
us a qgis project, but in this way I loose the python
code. Is there a way to store also the python code in
postgres or into qml?<br>
</div>
- when I change my python code, qgis can't auto reload it.
I have to save the file with a different name and I have
to change the name in the layer properties. Is there a way
to force autoreload of the code, also only for debugging?<br>
<br>
</div>
I also thought to move my code in a plugin to bypass those
problems but I think I've to rewrite all useful function
that come with the forms properties, eg: the combo
population. is It right or there's a way to include the QGIS
forms add-on into a plugin?<br>
<br>
</div>
Sorry for my newbie's question and thanks in advance.<br>
</div>
Luca<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>