[web2py] Re: Image upload error when using smarthumb

2019-10-03 Thread Massimo Di Pierro
box = (200, 200), should box = (200, 200) (remove the extra comma :-)) On Thursday, 3 October 2019 06:19:51 UTC-7, Maurice Waka wrote: > > I followed this > > > example with this code > db.define_table('article',

[web2py] Re: web2py seems to be ignoring my html page and just displaying function varibles

2019-10-03 Thread Massimo Di Pierro
is the file in controllers/basic/random_number.html ? On Thursday, 3 October 2019 20:32:05 UTC-7, Andy W wrote: > > I've been following a tutorial which is relatively simple, but for some > reason the view doesn't seem to reflect my html file, it's probbaly > something simeple but being new to w

[web2py] Re: Prevent multiple logins from the same user using the same login credentials

2019-10-03 Thread Massimo Di Pierro
There is no client_check in the web2py code base. Maybe that was a proposal to prevent sharing a session token. Do not remember. It is easy todo anyway. Try: auth.settings.extra_fields['auth_user'] = [Field('last_login', 'datetime')] auth.settings.login_onvalidation.append(lambda form: db(db.au

[web2py] Re: Vue2pyj - alternative web IDE

2019-10-03 Thread Val K
Now, vue2pyj works on both pythons + access through admin only On Monday, September 30, 2019 at 9:41:07 PM UTC+3, Val K wrote: > > Thanks for your feedback, I just haven't tried web2py on PY3. I will fix it > > On Monday, September 30, 2019 at 2:17:39 PM UTC+3, Alex Beskopilny wrote: >> >> >>

[web2py] Image upload error when using smarthumb

2019-10-03 Thread Maurice Waka
I followed this example with this code db.define_table('article', Field("title"), Field("article_text", "text"), Field("picture", "upload"), Field("thumb

[web2py] Re: How to use scheduler in modules ?

2019-10-03 Thread António Ramos
But if i do scheduler.queue_task(task_add, pvars=dict(a=1, b=2)) task_add must reside in the same file as the scheduler initialization code. I have many controllers and modules as independent apps. All of them can ask scheduler to start a task. What should i do ? Regards Em qui, 3 de out de 2019

[web2py] Re: How to use scheduler in modules ?

2019-10-03 Thread António Ramos
i added in a model current.scheduler=scheduler and then in a module scheduler=current.scheduler ... It works... but dont know if thats the best option... Em qui, 3 de out de 2019 às 11:43, António Ramos escreveu: > Hello i already have in a model > from gluon.scheduler import Scheduler > > sch

[web2py] How to use scheduler in modules ?

2019-10-03 Thread António Ramos
Hello i already have in a model from gluon.scheduler import Scheduler scheduler = Scheduler(db) Then i have a module where i need to scheduler.queue_task(task_add, pvars=dict(a=1, b=2)) I get scheduler not define. how can i use scheduler inside a module? REgards António -- Resources: - ht