<div dir="ltr">Hi Bernard, thanks for the tip. I've seen <span style="font-size:12.8000001907349px">DataDrivenInputMask some time ago and I promised myself to deepen it because I use lots of data stored postgres and this plugin seems very useful. However the main limitations for this very project are that I must use custom forms (to insert the project logo and more stuff) and it also should work with spatialite.</span><div><span style="font-size:12.8000001907349px"><br></span></div><div>thanks</div><div>Luca</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-05 10:02 GMT+01:00 Bernhard Ströbl <span dir="ltr"><<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Luca,<br>
<br>
this is a bit off topic but when you store your data in PostgreSQL you might want to try out the DataDrivenInputMask plugin [1] which has a lot of (database) intelligence in the form and can be customized to hold even more. Maybe you do not need to customize QGIS' forms any more.<br>
<br>
Bernhard<br>
<br>
[1] <a href="http://plugins.qgis.org/plugins/DataDrivenInputMask/" target="_blank">http://plugins.qgis.org/<u></u>plugins/DataDrivenInputMask/</a><br>
<br>
Am 04.01.2015 22:39, schrieb Luca Lanteri:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm using the init python function in order to add python code into my<br>
QGIS forms. This is a great function because I can add intelligence to<br>
my form without write a plugin, but I still have some problems:<br>
- I want to store qml and .ui file directly into Postgres so that when<br>
my users load a layer from postrgres they've my forms and styles,<br>
without pass to us a qgis project, but in this way I loose the python<br>
code. Is there a way to store also the python code in postgres or into qml?<br>
- when I change my python code, qgis can't auto reload it. I have to<br>
save the file with a different name and I have to change the name in the<br>
layer properties. Is there a way to force autoreload of the code, also<br>
only for debugging?<br>
<br>
I also thought to move my code in a plugin to bypass those problems but<br>
I think I've to rewrite all useful function that come with the forms<br>
properties, eg: the combo population. is It right or there's a way to<br>
include the QGIS forms add-on into a plugin?<br>
<br>
Sorry for my newbie's question and thanks in advance.<br>
Luca<br>
<br>
<br>
<br>
</blockquote>
<br>
<br></div></div>
__________ Information from ESET Mail Security, version of virus signature database 10965 (20150105) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div><br></div>