[Qgis-developer] python code in form
Luca Lanteri
lklanteri at gmail.com
Mon Jan 5 09:07:36 PST 2015
Hi Bernard, thanks for the tip. I've seen 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.
thanks
Luca
2015-01-05 10:02 GMT+01:00 Bernhard Ströbl <bernhard.stroebl at jena.de>:
> Hi Luca,
>
> 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.
>
> Bernhard
>
> [1] http://plugins.qgis.org/plugins/DataDrivenInputMask/
>
> Am 04.01.2015 22:39, schrieb Luca Lanteri:
>
> Hi,
>>
>> 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:
>> - 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?
>> - 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?
>>
>> 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?
>>
>> Sorry for my newbie's question and thanks in advance.
>> Luca
>>
>>
>>
>>
>
> __________ Information from ESET Mail Security, version of virus signature
> database 10965 (20150105) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150105/5a9a7bb4/attachment-0001.html>
More information about the Qgis-developer
mailing list