[GRASS-dev] temporal framework currently not working on windows
Sören Gebbert
soerengebbert at googlemail.com
Thu Nov 27 07:56:46 PST 2014
Unfortunately i have no idea. I did not found good information about
when and how exactly these decorators are processed.
So my guess was that (because of the backtrace) the decorator function
is somehow analyzed at import time and the messenger process gets
started.
So maybe the difference is that the must_be_open method is analyzed
later or that the messenger function is in an if statement?
Best regards
Soeren
2014-11-27 16:03 GMT+01:00 Pietro <peter.zamb at gmail.com>:
> On Thu, Nov 27, 2014 at 11:38 AM, Sören Gebbert
> <soerengebbert at googlemail.com> wrote:
>> The function decorator code is analysed at import time, which is a
>> bad idea, since the messaging server process get started at import
>> time. This should be avoided on any OS.
>
> I would like to better understand, this point...
> Why the decorator must_be_open it seems to work so far?
> which is the difference between @must_be_open[0] and @mdebug[1]?
> Any Ideas?
>
> Pietro
>
> [0] http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/pygrass/errors.py
> [1] http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/pygrass/modules/interface/module.py#L26
More information about the grass-dev
mailing list