Thank you - I think an extra argument would be the best solution. 2014-09-18 11:34 GMT+02:00 Martin Weissenboeck <[email protected]>:
> Thank you - I think an extra argument would be the best solution. > > 2014-09-18 10:33 GMT+02:00 Leonel Câmara <[email protected]>: > >> That doesn't work Nico. The server may have one hostname returned by >> that, and the web2py application may be running in another one because it's >> a virtual host or something. >> >> There's simply no way to do this in a sane way to do this inside the >> scheduler. It's like trying to know the language of the user inside a >> scheduled task, you just don't have it at that moment. >> >> I suggest you pass the hostname as an argument when you queue the task, >> which you can do if the task is queued as the result of a request, >> otherwise there's no way to do it correctly and you should use another >> solution that doesn't requires the hostname. >> >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

