<div dir="ltr">Jorge,<div><br></div><div>yes, I had SQAlchemy in mind, but in was another dependency and for the first step, I wanted just simple things. But I assume, if someone finds time to work more on the topic, sqlalchemy will be natural choice</div><div><br></div><div>J</div></div><br><div class="gmail_quote"><div dir="ltr">pá 8. 1. 2016 v 9:11 odesílatel Jorge Samuel Mendes de Jesus <<a href="mailto:jorge.mendesdejesus@wur.nl">jorge.mendesdejesus@wur.nl</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi to all<br>
<br>
Sorry for the late reply I was out of office/ house so no internet or<br>
email allowed :(<br>
<br>
I checked the sqlite code, looks nice just some comments<br>
<br>
1)<br>
if not in database:<br>
    database=":memory:"<br>
<br>
If  the database is running in memory we should send some reference to<br>
the log file saying that we are running things in memory and therefore<br>
consuming it. sqlite doesnt take much space but nevertheless should be<br>
indicated.<br>
<br>
2) Add the complete HTTP GET execute request to the log ??? Now it is<br>
only operation=request.operation, for HTTP POST it could make the DB get<br>
to big<br>
<br>
2) SQLAlchemy<br>
<br>
[1][2]<br>
<br>
Last year I did a database project using SQLAlchemy/GeoAlchemy in the<br>
beginning it was a bit strange/leaning curve but then it compensated<br>
since the python code was better organized, and no needed changes<br>
between different databases. Maybe in the future we could implement the<br>
code using SQLAlchemy and then the log database being defined in the<br>
configuration file (PostGresql, MySQL) etc)<br>
<br>
<br>
Jorge<br>
<br>
[1] <a href="http://www.sqlalchemy.org/" rel="noreferrer" target="_blank">http://www.sqlalchemy.org/</a><br>
[2] <a href="http://docs.sqlalchemy.org/en/rel_1_0/orm/tutorial.html" rel="noreferrer" target="_blank">http://docs.sqlalchemy.org/en/rel_1_0/orm/tutorial.html</a><br>
<br>
On 31-12-15 10:12, Luís de Sousa wrote:<br>
> Very nice, thanks for keep it going.<br>
><br>
> Is there anything new to the install process? Or is the db bundled<br>
> with the remainder of the code?<br>
><br>
> Cheers,<br>
><br>
> Luís<br>
><br>
> On 31 December 2015 at 00:51, Jachym Cepicky <<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> the logging functionality is now in master. In our sqlite database, we<br>
>> should always be able to see *current* status of past and running processes,<br>
>> when they started and ended, this needs to be totally tested, but I hope,<br>
>> it's doing what it's supposed to do<br>
>><br>
>> cheers<br>
>><br>
>> J<br>
>><br>
>> po 28. 12. 2015 v 22:39 odesílatel Jachym Cepicky <<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>><br>
>> napsal:<br>
>>> Hi all,<br>
>>><br>
>>> today, I've introduced database logging capability for PyWPS-4  - first<br>
>>> proof-of-concept version.<br>
>>><br>
>>> Idea: to track current status, needed time, log message, percent done etc.<br>
>>> for all requets (and use it later for automatic validation of each process,<br>
>>> process pausing, resuming, ...)<br>
>>><br>
>>> I've used (hardcoded) sqlite3 database for it, it still lives in separate<br>
>>> branch (not in master, but in [1]), would be nice, if someone could have a<br>
>>> short look on it [2]<br>
>>><br>
>>> data stored:<br>
>>><br>
>>> ['uuid', 'operation', 'version', 'time_start', 'time_end', 'identifier',<br>
>>> 'message', 'percent_done', 'status']<br>
>>><br>
>>> thanks<br>
>>><br>
>>> J<br>
>>><br>
>>> [1] <a href="https://github.com/jachym/pywps-4/tree/logging" rel="noreferrer" target="_blank">https://github.com/jachym/pywps-4/tree/logging</a><br>
>>> [2]<br>
>>> <a href="https://github.com/jachym/pywps-4/commit/301516ae11cd5d51a3fefca0ca8e05e7163fbfbd" rel="noreferrer" target="_blank">https://github.com/jachym/pywps-4/commit/301516ae11cd5d51a3fefca0ca8e05e7163fbfbd</a><br>
>><br>
>> _______________________________________________<br>
>> pywps-dev mailing list<br>
>> <a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
> _______________________________________________<br>
> pywps-dev mailing list<br>
> <a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
<br>
--<br>
ISRIC - World Soil Information<br>
Post: PO box 353, 6700 AJ, Wageningen,<br>
The Netherlands Visiting Address: Droevendaalsesteeg 3, 6708 PB<br>
Wageningen (Bdg. 101),<br>
Office: C.013<br>
Office Phone: +31 (0) 317 4 83715<br>
Mobile Phone: +31 (0) 613 9 06950<br>
Skype: jorge.de.jesus (Jorge Samuel Mendes de Jesus)<br>
OpenPGPKey: 0xA3D0065A<br>
<br>
</blockquote></div>