[web2py] Re: Scheduler in systemd environment (running very long tasks)

2017-02-28 Thread Zbigniew Pomianowski
W dniu sobota, 17 grudnia 2016 16:07:53 UTC+1 użytkownik Zbigniew Pomianowski napisał: > > I totally agree that debuging such things can be difficult. I just wonder > if there are some mechanisms that can kill tasks before they are finished. > 100h process let be honest - it is not a common case

[web2py] Re: New system like web2pyslices ( redesign and remodel maybe ) to web2py

2017-02-28 Thread Leonel Câmara
Created an account just for this last night, need to start working towards that 150 reputation. -- 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 recei

[web2py] Re: New system like web2pyslices ( redesign and remodel maybe ) to web2py

2017-02-28 Thread Anthony
On Tuesday, February 28, 2017 at 8:13:57 AM UTC-5, Leonel Câmara wrote: > > Created an account just for this last night, need to start working towards > that 150 reputation. > I just gave you 10. :-) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

Re: [web2py] Re: New system like web2pyslices ( redesign and remodel maybe ) to web2py

2017-02-28 Thread Richard Vézina
Another 10! :) Richard On Tue, Feb 28, 2017 at 9:22 AM, Anthony wrote: > On Tuesday, February 28, 2017 at 8:13:57 AM UTC-5, Leonel Câmara wrote: >> >> Created an account just for this last night, need to start working >> towards that 150 reputation. >> > > I just gave you 10. :-) > > -- > Reso

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-28 Thread Anthony
On Monday, February 27, 2017 at 5:13:51 PM UTC-5, klas.eq...@gmail.com wrote: > > Thank you for your answers. > > But still: What about the second point? Running the shell to start the > background script is a process that never ends, thus systemd stays in > "activating" state, because the actio

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-28 Thread klas . equiz
I just found the solution: just create another systemd service for the background task. Before I was using ExecStartPost= in the web2py-service, which created timeouts. Now it works perfectly. Anyway, thank you for your effort -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: best way to put together components that interact between them

2017-02-28 Thread Bernardo Leon
Thank you, I don't have a blog or similar so I wouldn't know where to post this hehe I have seen web2py slices but I think it is abandoned now El lunes, 27 de febrero de 2017, 22:03:02 (UTC-5), Marlysson Silva escribió: > > Awesome , You could to write a post explain this :D . > > Em sexta-feira,

[web2py] Re: best way to put together components that interact between them

2017-02-28 Thread Dave S
On Tuesday, February 28, 2017 at 11:00:46 AM UTC-8, Bernardo Leon wrote: > > Thank you, I don't have a blog or similar so I wouldn't know where to post > this hehe I have seen web2py slices but I think it is abandoned now > > Not abandoned, but fragile and needing care. If you do stackoverflow, t

[web2py] $.get jquery and controller

2017-02-28 Thread Andrea Fae'
I have this code in a view (from a select funcion javascript) $.get('{{=URL('default','nuovo_evento')}}',{risorsa:eventData.resourceId,titolo:eventData.title,start:start,end:end}); this code call a controller def nuovo_evento(): form=crud.create(db.evento) return locals

[web2py] Re: $.get jquery and controller

2017-02-28 Thread Andrea Fae'
I want to pass data to a controller, this controller insert these data to a database, and after returning to fullcalendar view... Il giorno martedì 28 febbraio 2017 21:37:51 UTC+1, Andrea Fae' ha scritto: > > I have this code in a view (from a select funcion javascript) > > > $.get('{{=URL('defau

[web2py] Re: manual for loop in views and json

2017-02-28 Thread Oasis Agano
Hello im trying to add a line chart using this example but in the view i see the json output instead of a graph. Any help? VIEW {{extend 'layout.html'}} https://code.highcharts.com/stock/highstock.js";> https://code.highcharts.com/stock/modules/exporting.js";> $.getJSON('[web2py] Re: $.get jquery and controller
On Tuesday, February 28, 2017 at 12:37:51 PM UTC-8, Andrea Fae' wrote: > > I have this code in a view (from a select funcion javascript) > > > $.get('{{=URL('default','nuovo_evento')}}',{risorsa:eventData.resourceId,titolo:eventData.title,start:start,end:end}); > > > this code cal

[web2py] Re: manual for loop in views and json

Oasis create a new post and reference them here that I would like help you. This answer already was answered. Em terça-feira, 28 de fevereiro de 2017 18:57:17 UTC-3, Oasis Agano escreveu: > > Hello im trying to add a line chart using this example but in the view i > see the json output instead

[web2py] Re: manual for loop in views and json

Oasis create a new post and reference it here that I would like help you. This answer already aswered. Em terça-feira, 28 de fevereiro de 2017 18:57:17 UTC-3, Oasis Agano escreveu: > > Hello im trying to add a line chart using this example but in the view i > see the json output instead of a gra

[web2py] Re: manual for loop in views and json

But analysing your code I see that you don't using the json.dumps converter in your data came from controller. Try use this line , importing from gluon.contrib.simplejson: return gluon.contrib.simplejson.dumps( [ [r.created_on , r.qty] for r in rows] ) Em terça-feira, 28 de fevereiro de 2017 1

[web2py] Re: manual for loop in views and json

But analysing your code I see that you don't using the json.dumps converter in your data came from controller. Try use this line , importing from gluon.contrib.simplejson: return gluon.contrib.simplejson.dumps( [ [r.created_on , r.qty] for r in rows] ) Em terça-feira, 28 de fevereiro de 2017

[web2py] Using Highcharts/Highstock to display data from the database

Greetings, Im using web2py to store data in an IOT project, saving data works perfectly but i want to create some graphs to show stats or summary using highcharts/highstock *line chart.* Thats the code and the output CONTROLLER @auth.requires_login() @service.json def mystats(): ownstats

[web2py] Re: manual for loop in views and json

I posted it as another question; but when i do gluon.contrib.simplejson. dumps i get the serialization error On Wednesday, March 1, 2017 at 12:52:10 AM UTC+2, Marlysson Silva wrote: > > But analysing your code I see that you don't using the json.dumps > converter in your data came from controller

[web2py] Re: Using Highcharts/Highstock to display data from the database

In your controller try to use the simplejson from gluon intead json dumps from python and return the lists formatted to your chart. Em terça-feira, 28 de fevereiro de 2017 20:01:57 UTC-3, Oasis Agano escreveu: > > Greetings, > > Im using web2py to store data in an IOT project, saving data works

[web2py] Re: manual for loop in views and json

i think you can put a query or rows in controllers, and then do it on the views side : e.g. *views/default/test.html* {{ rows_stock = db(query_nav).select(distinct = True, groupby = db.nav.nav_date, cache = cache_db, cacheable = True) }} $(function ()

Re: [web2py] Re: Graph Model (proposal to contribute)

Hi Donald, yes I have , and I have been meaning to some changes (to minimise the overlap in names).Sorry, been busy lately, I'll get on to updating Welcome. My plan is to leave the existing graph code as is until everyone is ok with it. Thanks for following up. -- Resources: - http://we