Re: [web2py] how to start Celery worker in web2py

2018-11-04 Thread James O' Driscoll
I used DAL(uri, folder, import_models=True) in the task.py function and this does the job. If possible can someone explain if: 1.This lightweight connect to celery is preferred over https://code.google.com/archive/p/web2py-celery/. 2.Is running the worker using task manager as a windows

Re: [web2py] how to start Celery worker in web2py

2018-11-04 Thread Alexandra Lee
hello. Can you unsubscribe me please? I am not currenly a web2py user. But maybe in future. Please remove my email from you list for now. Kind regards, Alexandra On Sun, Nov 4, 2018 at 8:10 AM James O' Driscoll wrote: > I used DAL(uri, folder, import_models=True) in the task.py function and > t

[web2py] Re: json data breaks, via routing, to a web2py controller

2018-11-04 Thread Carl Hunter Roach
As suspected, my workaround was to URL encode the "offending" fields at the client end. simpleton.loads() then parsed the json happily. The field could then be "unencoded". My system has plenty of json passing between clients and the Web2py service. I can't work out why I've tripped over here.

[web2py] passing multiple values from view to controller

2018-11-04 Thread Tribo Eila
Hi, using the code below, i'm trying to pass multiple variable from view to controller... and simple print the two values or work some validation. perhaps i'm missing something... need help view:

[web2py] import data between table(I've been researching for a 2 week.)

2018-11-04 Thread Semih
I create two tables. db = DAL('sqlite://storage.sqlite') *db.define_table('maintable',* * Field('refcode',unique=True, requires=IS_NOT_IN_DB(db,'maintable.refcode') ),* * Field('description'))* *db.define_table('secondtable',* *Field('refcode

[web2py] Need to set a default application

2018-11-04 Thread Arindam Dasgupta
Hi , I have purchased a domain and whenever I enter "www.mydomain.com" the browser lands in the page : http://www.mydomain/welcome/default/index. I want to change the default application , default controller and default view so that whenever someone enters www.mydomain.com then he lands in htt

[web2py] ondelete attribute missing in 2.17.2

2018-11-04 Thread Ivan Gazzola
I've updated to 2.17.2-stable but i've got this error: invalid table "Prestazioni" attributes: set(['ondelete']) invalid_kwargs set(['ondelete']) tablename 'Prestazioni' My field is definied as: Field('preventivo',db.Preventivi,requires=IS_EMPTY_OR(IS_IN_DB(db, 'Preventivi.id'))),ondelete='SE

[web2py] Re: Need to set a default application

2018-11-04 Thread Massimo Di Pierro
cp web2py/examples/routes.parametric.example.py web2py/routes.py On Sunday, 4 November 2018 11:58:16 UTC-8, Arindam Dasgupta wrote: > > Hi , > > I have purchased a domain and whenever I enter "www.mydomain.com" the > browser lands in the page : http://www.mydomain/welcome/default/index. > > I wan

[web2py] Re: ondelete attribute missing in 2.17.2

2018-11-04 Thread Massimo Di Pierro
It has not changed. I think you have a typo Field('preventivo',db.Preventivi,requires=IS_EMPTY_OR(IS_IN_DB(db, 'Preventivi.id'))),ondelete='SET NULL') should be Field('preventivo',db.Preventivi,requires=IS_EMPTY_OR(IS_IN_DB(db, 'Preventivi.id')),ondelete='SET NULL') On Sunday, 4 November 20

[web2py] Re: ondelete attribute missing in 2.17.2

2018-11-04 Thread Ivan Gazzola
Sorry, I've found typo and removed message but you've been faster :) I don't know why but the previous wrong syntax worked without problems for months on the previous version ... Thx Massimo! Il giorno domenica 4 novembre 2018 22:07:41 UTC+1, Massimo Di Pierro ha scritto: > > It has not chan

[web2py] Re: passing multiple values from view to controller

2018-11-04 Thread Dave S
On Sunday, November 4, 2018 at 7:43:18 AM UTC-8, Tribo Eila wrote: > > Hi, > > using the code below, i'm trying to pass multiple variable from view to > controller... and simple print the two values or work some validation. > > perhaps i'm missing something... need help > > view: >

[web2py] Re: off topic: pg_dump syntax for pythonanywhere

2018-11-04 Thread Alex Glaros
Alexandra, I have not used it recently and only have my notes below: pg_dump --host=yourPythonAnywhereDbName.postgres.pythonanywhere-services.com --dbname=postgres_myDbName --(note: I don't know how to handle password) --port=10097 --username=yourPythonAnywhereRole --format=c --file=pg_alex_b

[web2py] Re: json data breaks, via routing, to a web2py controller

2018-11-04 Thread Dave S
On Sunday, November 4, 2018 at 5:06:33 AM UTC-8, Carl Hunter Roach wrote: > > As suspected, my workaround was to URL encode the "offending" fields at > the client end. simpleton.loads() then parsed the json happily. The field > could then be "unencoded". > > My system has plenty of json passing