[web2py] !web2py, but i'm asking someone's help with aws-sdk-js.

2019-05-15 Thread lucas
hello one and all, i'm in a nightmare trying to upload files via pure client-side javascript to aws s3 using, i guess, aws-sdk-js. perhaps someone out there who's done this can have a discussion with me and i don't know where else to go. i know this isn't web2py but i'm in the weeds on this

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Eliezer (Vlad) Tseytkin
Got it, thank you! On Wed, May 15, 2019, 9:35 PM Dave S wrote: > > > On Wednesday, May 15, 2019 at 4:45:17 PM UTC-7, Vlad wrote: >> >> c1.py and c2.py are controllers. >> c2 has a function f in it. >> Can code in c1.py call the function f? >> > > If f is a function in the URL sense (that is, it

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Dave S
On Wednesday, May 15, 2019 at 4:45:17 PM UTC-7, Vlad wrote: > > c1.py and c2.py are controllers. > c2 has a function f in it. > Can code in c1.py call the function f? > If f is a function in the URL sense (that is, it is top level in c2.py, and has no arguments, and the URL /.../appY/c2/f

[web2py] Re: updating menu without reloading the page

2019-05-15 Thread Vlad
Never mind, Resolved... On Wednesday, May 15, 2019 at 8:43:44 PM UTC-4, Vlad wrote: > > I didn't say it precisely. By web2py controlling it I meant that it's > dynamic and changes all the time - it's not static that I could assign > certain id to some item... > > On Wednesday, May 15, 2019 at

[web2py] Re: updating menu without reloading the page

2019-05-15 Thread Vlad
I didn't say it precisely. By web2py controlling it I meant that it's dynamic and changes all the time - it's not static that I could assign certain id to some item... On Wednesday, May 15, 2019 at 7:55:26 PM UTC-4, Vlad wrote: > > Sometimes I need to change the menu without reloading the

[web2py] updating menu without reloading the page

2019-05-15 Thread Vlad
Sometimes I need to change the menu without reloading the page. More specifically: response.menu = [ . . ('Cart (' + str(howManyItemsInCart()) + ")", False, URL('catalog','cart'), []), ] I do control the event when the cart content

Re: [web2py] Re: accessing a function in another controller

2019-05-15 Thread Eliezer (Vlad) Tseytkin
c1.py and c2.py are controllers. c2 has a function f in it. Can code in c1.py call the function f? On Wed, May 15, 2019, 7:40 PM Dave S wrote: > > > On Wednesday, May 15, 2019 at 12:44:24 PM UTC-7, Vlad wrote: >> >> this must be a very basic question; I just don't have full clarity on how >>

[web2py] Re: accessing a function in another controller

2019-05-15 Thread Dave S
On Wednesday, May 15, 2019 at 12:44:24 PM UTC-7, Vlad wrote: > > this must be a very basic question; I just don't have full clarity on how > web2py handles this: > > can code in one controller somehow access a function in another > controller? Or I have to move such a function to model code?

[web2py] accessing a function in another controller

2019-05-15 Thread Vlad
this must be a very basic question; I just don't have full clarity on how web2py handles this: can code in one controller somehow access a function in another controller? Or I have to move such a function to model code? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: setting up pscycopg2

2019-05-15 Thread Dave S
On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote: > > > > On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote: >> >> When I check Last week I ended up making the move to Postgres on the >> busier of my production servers, and the changeover appears to be >> successful (imported

[web2py] Re: SQL warning

2019-05-15 Thread Dave S
On Wednesday, May 15, 2019 at 5:59:06 AM UTC-7, Joel Samuelsson wrote: > > Hi, > > I'm running web2py in a docker container to run some tests against a fresh > database. I get this warning that I'd like to get rid of: > /var/www/DataCollectionManager/web2py/gluon/dal.py:1961: Warning: >

[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread 黄祥
for naming perhaps python module : acronym can give any idea: pip3 install acronym acronym "database abstraction layer application programming interface" put whatever you want best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Web3py

2019-05-15 Thread En Ware
Thank you very much for the explanation , it really helps. On Wednesday, May 15, 2019 at 12:23:47 AM UTC-5, Massimo Di Pierro wrote: > > web2py uses: > > (all defined in web3py/core.py) > [100% done] pydal for DB > [100%] pluralize for T > [100%] yatl for template and helpers > [100%] tornado as

[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread Carlos Costa
Aweome! I made a similar API for my apps, but is simpler. I like this one more as it is more complete. Mine is called Consult (because we call query as consulta in Portuguese) This is very useful to integrate ui components such as datatable, or anything. Maybe dal-api should be a good name. If

Re: [web2py] Re: authapi.py

2019-05-15 Thread Tito Garrido
When I try to use the code above with the @api_requires_login declared I am receiving: JWT header not found and JWT parameter _token missing in request Even for functions without the decorator, like: def token(): return myjwt.jwt_token_manager() Any ideas why it is asking me this header?

[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread Anthony
On Wednesday, May 15, 2019 at 12:53:27 AM UTC-4, Massimo Di Pierro wrote: > > We can change the name but api is too ambiguous. Any other idea? > Not sure. RESTAPI? HTTPAPI? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] SQL warning

2019-05-15 Thread Joel Samuelsson
Hi, I'm running web2py in a docker container to run some tests against a fresh database. I get this warning that I'd like to get rid of: /var/www/DataCollectionManager/web2py/gluon/dal.py:1961: Warning: Incorrect integer value: '' for column 'registration_id' at row 1 ret =

[web2py] production - db migration issue. Works in sqlite but not mysql

2019-05-15 Thread Ron Chatterjee
Hello all, In PA I am running this app with an existing mysql database and I am having migration issue. If I run the db.py with db.migrate, it says 1050, "Table 'auth_user' already exists If I run the table with migrate=False, and fake_migrate = True I get another error: mytable.products'

[web2py] Re: web2py - didn't disconect from postgreSQL auth database (TIME_WAIT)

2019-05-15 Thread Dave S
On Monday, May 13, 2019 at 3:18:35 AM UTC-7, Krzysztof Jeleń wrote: [...] > Current;y I'm not sure is this only Chrome issue, the problem is that > using DAL withput calling explicity DAL close method leave a lot of sockets > in wating state on server side. I was able to reduce its number