Re: [web2py] Re: Redis and Python3?

2019-05-18 Thread Jim Steil
Have you tried python3 with web2py and python-redis 2? My problem was going to python-redis 3 using python2 and web2py. Would it help to change that line to: if 'unique_key' in self and rtn['unique_key'] == self.unique_key: -Jim On Sat, May 18, 2019 at 3:47 AM rastafarien wrote: > Hello

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Running reload manually works as advertised on PyPi On Saturday, 18 May 2019 13:03:59 UTC+2, John Bannister wrote: > > Same result unfortunately > > On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: >> >> what if you do not user tornado and replace >> >>

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Same result unfortunately On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: > > what if you do not user tornado and replace > > bottle.run(server='tornado', host=host, port=int(port)) > > with > > bottle.run(host=host, port=int(port)) > > it is very strange. Please try test the

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

2019-05-18 Thread Massimiliano
Sent:* 17 May 2019 18:56 >> *To:* web...@googlegroups.com >> *Subject:* Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py >> >> >> >> DALQL >> >> >> >> >> >> On Fri, May 17, 2019 at 5:42 PM Massimo Di Pierro >

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
what if you do not user tornado and replace bottle.run(server='tornado', host=host, port=int(port)) with bottle.run(host=host, port=int(port)) it is very strange. Please try test the reloader module on its own. On Friday, 17 May 2019 23:09:49 UTC-7, 黄祥 wrote: > > Does it print this when you

RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
To: web2py-users Subject: Re: [web2py] Re: Web3py Also, web3py uses this: https://pypi.org/project/reloader/ The docs have an example. Does this module work for you? On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote: Does it print this when you press [reload]? [OK] reloaded

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
> > Also, web3py uses this: > https://pypi.org/project/reloader/ > The docs have an example. Does this module work for you? > yes reloader already installed, since it's written on requirements.txt git clone https://github.com/web2py/web3py cd web3py pip install -r requirements.txt perhaps some

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
> > Does it print this when you press [reload]? > yes it is $ ./web3py-start apps ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / /

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

2019-05-17 Thread Massimo Di Pierro
full J > > > > *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On > Behalf Of *Massimiliano > *Sent:* 17 May 2019 18:56 > *To:* web2py@googlegroups.com > *Subject:* Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py > > > > DALQL >

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Also, web3py uses this: https://pypi.org/project/reloader/ The docs have an example. Does this module work for you? On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote: > > Does it print this when you press [reload]? > > [OK] reloaded _dashboard > [OK] reloaded myapp > [OK]

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Does it print this when you press [reload]? [OK] reloaded _dashboard [OK] reloaded myapp [OK] reloaded todo [OK] reloaded superheroes [OK] reloaded examples [OK] reloaded _scaffold On Friday, 17 May 2019 16:03:18 UTC-7, John Bannister wrote: > > For me I have not

Re: [web2py] Re: I can not import module in app

2019-05-17 Thread Dave S
On Friday, May 17, 2019 at 2:49:45 PM UTC-7, Константин Комков wrote: > > Check line 8 in error, it already contain import mytest, in another > project i can import that module. > The working application has a modules/_init__.py file; does the excepting app have that? /dps > пт, 17 мая

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread Anthony
On Friday, May 17, 2019 at 5:17:09 PM UTC-4, Vlad wrote: > > Also, I think it would be nice if URL helper would have ability to handle > this, without a need to figure out the encoding/decoding subject... > You don't need the encoding -- just put the values in the query string. Anthony --

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
For me I have not installed any npm or other. Clean python 3 virtual environment into which I installed web3py on Ubuntu. Base install on windows 10 as well same. All works fine apart from the reloading. I can try to set up on one of my Centos 7 servers later tomorrow but am pretty sure its

Re: [web2py] Re: I can not import module in app

2019-05-17 Thread Константин Комков
Check line 8 in error, it already contain import mytest, in another project i can import that module. пт, 17 мая 2019 г., 18:59 Leonel Câmara : > Inside the application which has the module in its modules folder all you > need is "import mytest" > > -- > Resources: > - http://web2py.com > -

Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥
> > Editing apps and reloading forks for me. Please try again and let's try > figure out why does not work for you. > after tried latest commit (110), guess when it's work on you, but not work on us, perhaps related with module installed (python or js via npm) on your side, but not installed

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread Eliezer (Vlad) Tseytkin
Also, I think it would be nice if URL helper would have ability to handle this, without a need to figure out the encoding/decoding subject... On Fri, May 17, 2019, 5:03 PM Eliezer (Vlad) Tseytkin < westgate6...@gmail.com> wrote: > Okay, I got it :) > > Very embarrassing. There were some prior

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread Eliezer (Vlad) Tseytkin
Okay, I got it :) Very embarrassing. There were some prior entries in the database that weren't converted to begin with, so when they were pulled over, the exception was raised. I totally forgot about them, and on top of that the one that caused the trouble was just one character different from

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Update on this :- Just tried it on native windows10 python3.7 and same results. New functions return error 404 until server restart. BR John On Friday, 17 May 2019 18:49:28 UTC+2, 黄祥 wrote: > > problem still exist (in commits 110) only superheroes app traceback error > is gone when hit

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

2019-05-17 Thread John Bannister
As you are da man I would suggest DaQL .. DALQL is a bit of a mouth full J From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimiliano Sent: 17 May 2019 18:56 To: web2py@googlegroups.com Subject: Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py

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

2019-05-17 Thread Massimiliano
DALQL On Fri, May 17, 2019 at 5:42 PM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I am embarrassed I have forgotten all about latin. :-( > > The italian equivalent would be "accesso" but does not sound nice to me. > > I am not too concerned about naming conflicts as long as the

Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥
problem still exist (in commits 110) only superheroes app traceback error is gone when hit 'reload apps': 1. 'routes for ' disappears after hit 'reload apps' for : - scaffold - myapp but for _dashboard, example, todo still exist (appears as expected) 2. editing and adding new function in

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
helloworld accessible. After server restart all are. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 17 May 2019 17:12 To: web2py-users Subject: Re: [web2py] Re: Web3py I fixed the database locking problem. missing db.commit

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

2019-05-17 Thread John Bannister
How about Despresso (for database express O ). J From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 17 May 2019 17:43 To: web2py-users Subject: [web2py] Re: new DBAPI in pydal for both web2py and web3py I am embarrassed I have forgotten

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
I fixed the database locking problem. missing db.commit() Editing apps and reloading forks for me. Please try again and let's try figure out why does not work for you. It is intentionally reloading all apps but this can easily be changed. I will change it. Massimo On Friday, 17 May 2019

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

2019-05-17 Thread Carlos Costa
I liked it, sounds Italian. Sometimes when you have a restriction it inspires creativity. For example, if we would have a rule to give only Italian (Massimo origin is the reason here) names to Web2py stuff (web2py itself included) we could come up with more natural and interesting names. Like

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

2019-05-17 Thread António Ramos
there we go again about naming something ... Jut call it Gluino! to glue data to the app.. Em sex, 17 de mai de 2019 às 11:37, villas escreveu: > acquisAPI > > acquis Shortened from acquis communautaire: French acquis (“that which has > been acquired or obtained”) + communautaire (“of the

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread villas
Make sure that your jQuery loading and browser up to date... Simplify the page to something like below. Get that working. Add back your complexity afterwards: Q29va2llcyBvbmU= $(".EncodedDescriptionField").each( function(index, element ){ var hereWeAre = $(this).text();

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread Eliezer (Vlad) Tseytkin
Typo: I meant atob On Fri, May 17, 2019, 8:21 AM Eliezer (Vlad) Tseytkin < westgate6...@gmail.com> wrote: > Those are span elements inside inside in a table. > > But the values themselves are fine - I can print them out, and they are > correct. It's only a problem when I try to apply btoa

Re: [web2py] Re: A question about ajax function (passing a string parameter over)

2019-05-17 Thread Eliezer (Vlad) Tseytkin
Those are span elements inside inside in a table. But the values themselves are fine - I can print them out, and they are correct. It's only a problem when I try to apply btoa function to it. On Fri, May 17, 2019, 8:09 AM villas wrote: > Hmm, not sure. > Are you getting the values from

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Hi Massimo, I have tried that but it has no effect. It seems to be doing something for a while but the only way I can get changes to appear is to restart the server. Basically what I did was to copy and rename the helloworld action a few times so helloworld1 …….helloworld7 (all in same

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

2019-05-16 Thread Eliezer (Vlad) Tseytkin
web2py is so amazingly great that the only excuse to come up with web3py is if it's going to be much better than web2py, if such a thing is possible:) On Thu, May 16, 2019 at 11:35 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This is why we are making web3py. controllers are not

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

2019-05-16 Thread Massimo Di Pierro
This is why we are making web3py. controllers are not regular modules in web2py. On Wednesday, 15 May 2019 18:35:41 UTC-7, 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

Re: [web2py] Re: authapi.py

2019-05-16 Thread Val K
Maybe it's also required some Auth setting at db.py https://github.com/robertop23/web2py_vuejs_vuetify/blob/master/models/db.py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

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

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 >>

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?

Re: [web2py] Re: Web2py/DAL equivalent of "not in [a table]"

2019-05-14 Thread Eliezer (Vlad) Tseytkin
Oh, no problem, I've adjusted it for my case. My problem was that I wasn't aware about subqueries (_select vs. select), so that was the main take away :) On Wed, May 15, 2019, 1:28 AM Massimo Di Pierro wrote: > Something is wrong. You are searching that the id of one table is not the > id of

Re: [web2py] Re: Web2py/DAL equivalent of "not in [a table]"

2019-05-14 Thread Massimo Di Pierro
Something is wrong. You are searching that the id of one table is not the id of another table. But that is not a reference. On Tuesday, 14 May 2019 19:49:32 UTC-7, Vlad wrote: > > works like a charm! > thank you ! > > On Tue, May 14, 2019 at 7:16 PM Val K wrote: > >> should help: >> >>

Re: [web2py] Re: Web2py/DAL equivalent of "not in [a table]"

2019-05-14 Thread Eliezer (Vlad) Tseytkin
works like a charm! thank you ! On Tue, May 14, 2019 at 7:16 PM Val K wrote: > should help: > > sql_str = db()._select(db.tbl2.id) #note underscore before `select` > db(~db.tbl1.id.belongs(sql_str)).select(db.tbl1.id, db.tbl1.name) > > > > > > > On Wednesday, May 15, 2019 at 1:06:49 AM UTC+3,

Re: [web2py] Re: authapi.py

2019-05-14 Thread Tito Garrido
Thank you, https://github.com/robertop23/web2py_vuejs_vuetify/blob/master/controllers/api.py works for me! On Mon, May 13, 2019 at 4:23 PM Val K wrote: > https://github.com/web2py/web2py/blob/4a90c82ee4271b2a17c187d41138a03249c14350/gluon/tools.py#L1002 > > > > > >

Re: [web2py] Re: RESTful service with access control

2019-05-14 Thread Jim S
Yes, I have the view set. I have it working now if I use the password stored in my auth_user table. But, I'd really prefer to have it go through all available authentication methods to authenticate a user. We have some users that authenticate to our mail server and others that use the

Re: [web2py] Re: RESTful service with access control

2019-05-14 Thread Jim Steil
Massimo - thanks for that info. This won't help in my case as I'm using the RESTful API to get access to another of my server-side python packages. But, I can see the power of the DBAPI. I'm waiting for you to stabilize web3py before I jump in. I'd love to get involved in more testing but I

Re: [web2py] Re: RESTful service with access control

2019-05-13 Thread Val K
One yet important moment: Do you set the view for your api? I mean, that book example will not work without response.view='generic.json' if request is not local. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: RESTful service with access control

2019-05-13 Thread Jim Steil
Val I just created a test app based on the code in the book and all is working as it should. Must be something else in my other app that is causing the trouble. I'll check it out later. Also looking into JWT... On Mon, May 13, 2019 at 8:38 PM Jim Steil wrote: > Val > > Thanks so much for

Re: [web2py] Re: RESTful service with access control

2019-05-13 Thread Jim Steil
Val Thanks so much for the references. However, I'm really a bit lost. Using login_bare()?? Where does that come in to play? And then a custom decorator? Am I doing something wrong that is preventing the sample in the book from working? Not sure why mine is just redirecting. Any samples

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Massimo Di Pierro
I agree. About "tools that deliver apps to the client". I once experimented with this https://github.com/mdipierro/regift It is a cordova app that can be updated from the server without reinstallation. The app keeps the state and talks to server only if available. There is a lot that can be

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Carlos Costa
I don't think all PWA cases must work 100% offline. For 100% offline apps you just need a server to "install" your app, and so web2py would be handy, but no more after install in client. This is not case we should aim as web2py as focused on database driven apps. Sync database may be desirable in

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Val K
my example is not fully featured PWA, but it works offline and as I mentioned above it is possible to make that web23py application will show something better than nothing when offline -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Future of web2py

2019-05-13 Thread João Matos
You are correct. I though you meant keeping the app open and trying to use the database or loading another page. In the case you close the app then you would need some kind of embedded server (as I already mentioned) or serviceWorker (which I think is something lighter but similar). For the

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Val K
'That could be done by every web app (web2py or otherwise).' it is not quite so, if you close regular web page (without embedded serviceWorker) and try to open it again when offline you will get nothing, I suppose. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] Re: Future of web2py

2019-05-13 Thread João Matos
That is only checking if the Internet connection/db connection exists. That could be done by every web app (web2py or otherwise). That is not the definition of a PWA. >From wikipedia " Progressive web applications (PWAs) are web applications that load like regular web pages or websites but can

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Martin Weissenboeck
A few thoughts about PWA: First: Web2py is great. But maybe the discussion should go deeper: how will the internet be used now and in the future? It will probably be used mainly by the mobile devices. With all the problems that arise from the fact that the Internet is not available everywhere and

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Val K
You are right, this is 100% client side technology. I think we can provide a simple universal script that will show some configurable static page when offline -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Massimo Di Pierro
Nice. But would you agree with me that this is mostly a client side functionality? Web2py and web3py are mostly serverside frameworks. What would you want to see in web3py that helps with PWA? On Sunday, 12 May 2019 23:41:01 UTC-7, Val K wrote: > > I made one: >

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Val K
I made one: https://vuepydemo.pythonanywhere.com/todo_pwa/default/index.html Follow the link then close the page, disconnect from internet and open again. Try to add/remove a todo item - you will get the alert 'Network problem' -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Future of web2py

2019-05-12 Thread João Matos
I dont' think web2py can support PWA because PWA is a web app that can run online and offline in a mobile device. Someone would have to build an embedded server to include in the mobile app (PWA) and that raises several questions due to the nature of the majority of web2py apps which depend on

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Massimo Di Pierro
I would like to see a prototype example. On Saturday, 11 May 2019 17:00:14 UTC-7, Carlos Costa wrote: > > Untill this moment, for me, it means that in a second run, the app can > open instantly, mostly because of cached assets. > It does not mean that it will always partially work offline. It

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Untill this moment, for me, it means that in a second run, the app can open instantly, mostly because of cached assets. It does not mean that it will always partially work offline. It depends on the need. I think most apps made with web2py (and maybe web3py will be in the same case) are dependent

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Massimo Di Pierro
I agree with the article. It is unclear to me that people agree about the meaning of pwa. Does it mean you can run the app locally as in web2py and access via the browser? (web2py and web3py can do this) or does it mean that the app is mostly client-side and you can run the client (in browser

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
Recently Google released official support to PWAs in Play Store. So, if a web2py or web3py scaffoles ships with PWA support, it will be easy to deploy it on web and Play Store We would be able make web and mobile apps easily. This technique is saving me hours and hours. Em sáb, 11 de mai de

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Martin Weissenboeck
I think, progessive web applications are a very important way to create native-like apps and it would be nice, if web3py could support pwas. There is an interesting article about the future of pwas: https://enonic.com/progressive-web-apps Regards, Martin Am Sa., 11. Mai 2019 um 05:45 Uhr

Re: [web2py] Re: Future of web2py

2019-05-10 Thread 黄祥
> > What is pwa? ref: https://en.wikipedia.org/wiki/Progressive_web_applications https://developers.google.com/web/progressive-web-apps/ https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Future of web2py

2019-05-10 Thread Massimo Di Pierro
What is pwa? -- 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"

Re: [web2py] Re: Future of web2py

2019-05-10 Thread Carlos Costa
I am developing this on web2py apps and I plan to contribute with it on web3py. Em sex, 10 de mai de 2019 às 03:35, Martin Weissenboeck escreveu: > Is it planned that web3py will support the development of PWAs? > Martin > > Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro < >

Re: [web2py] Re: nginx, basic auth: internal error

2019-05-10 Thread tomasz bandura
No, I also clear the cache of browser to be sure there is no any active session. pt., 10 maj 2019 o 13:59 Jörg Schneider napisał(a): > Are you logged in in the admin application the same time (same browser) ? > > Am Mittwoch, 8. Mai 2019 08:49:34 UTC+2 schrieb tomasz bandura: >> >> Hello, >> >>

Re: [web2py] Re: Future of web2py

2019-05-10 Thread Martin Weissenboeck
Is it planned that web3py will support the development of PWAs? Martin Am Fr., 10. Mai 2019 um 03:58 Uhr schrieb Massimo Di Pierro < massimo.dipie...@gmail.com>: > Good question. > > We are not dropping web2py support. We will continue improve web2py. You > may have seen a lot of work in that

Re: [web2py] Re: nginx, basic auth: internal error

2019-05-08 Thread tomasz bandura
Not sure, because I also use in the same application a standard login/pass form auth and it works perfectly. śr., 8 maj 2019 o 10:09 Tim Nyborg napisał(a): > My guess is that something is wrong with the file permissions on the > sessions folder/subfolders. If uwsgi is trying to write a

Re: [web2py] Re: Error using auth.signature

2019-05-08 Thread Fabio Gubler
Thanks for you answer. It solved my problem. Have a good day. On Tue, 7 May 2019 at 19:30, wrote: > auth_signature creates these 4 fields: > created_on > created_by > modified_on > modified_by > > You are trying to access a field called dateofcreation which doesn't exist. > In default\index

Re: [web2py] Re: How to convert my view to pdf

2019-05-07 Thread jcrmatos
I have both ways in different apps. To save to a file use like this from xhtml2pdf.pisa import CreatePDF ... # Type is _io.BufferedWriter. with open(pdf_pn, 'wb') as f_out: # type: BinaryIO created_ok = CreatePDF(html, dest=f_out) To show the PDF on the browser use like this from io

Re: [web2py] Re: How to convert my view to pdf

2019-05-07 Thread Paul Ellis
I had a look at xhtml2pdf and I am not sure how to implement it in my web2py application. Do you save the PDF as a file or output it to the browser? Do you use the html generated by the web2py view and have the function calls in a view or do you generate the HTML another way in a controller

Re: [web2py] Re: Future of web2py

2019-05-02 Thread Massimo Di Pierro
good idea. will do On Thursday, 2 May 2019 06:49:19 UTC-7, Carlos Costa wrote: > > Massimo, > > could you create some issues related to these things to be done? > I will be easier if anyone wants to contribute. > I want to contribute but don't know exactly how. > > Em qui, 2 de mai de 2019 às

Re: [web2py] Re: Future of web2py

2019-05-02 Thread Carlos Costa
Massimo, could you create some issues related to these things to be done? I will be easier if anyone wants to contribute. I want to contribute but don't know exactly how. Em qui, 2 de mai de 2019 às 09:16, rāma escreveu: > ONE month!? Sounds super exciting. > > On Thursday, 2 May 2019 15:16:21

Re: [web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
If vuejs is the way to go (thank you massimo for the choice...) i think it should evolve also to vuex for client store and use something like this for persistence. https://flaviocopes.com/vuex-persist-localstorage/ I think we can kill 2 rabbits with just one bullet... Em ter, 30 de abr de 2019 às

Re: [web2py] Re: MARKMIN - Sanitizing

2019-04-29 Thread Paul Ellis
Hey Villas, thanks. I actually thought that the XML sanitization would break the MARKMIN conversion but it doesn't. I probably should have tested that first. Regards On Mon, Apr 29, 2019 at 7:06 PM villas wrote: > Hi Paul > > If you are worried about saving dodgy text in the DB, you

Re: [web2py] Re: custom search

2019-04-29 Thread villas
Hi Andfae It seems you are using additional inputs to submit searches to a SQLFORM.grid search widget... 1. Do not wrap the new inputs inside a form, as you are adding them to an existing search form. 2. Add something like this as the last line in your *datainizioSrch * function

Re: [web2py] Re: bye bye T, welcome pluralize

2019-04-27 Thread Elisha Bere
When can i get the new we3py? or its not out yet? On 27 Apr 2019 23:05, "Massimo Di Pierro" wrote: > The T that ships with web2py got to be too complicated. I can never > remember what T.M does or what T("??word?word0[number]") does. > I gave up on poring that. I think the new one is more

Re: [web2py] Re: custom search

2019-04-26 Thread andfae
Hello I will give you the codeok? This evening... Il ven 26 apr 2019, 12:31 Massimiliano ha scritto: > Is difficult to understand how you intend to trigger the search without > some infos. > Anyway just to give you an hint: > >

Re: [web2py] Re: custom search

2019-04-26 Thread Massimiliano
Is difficult to understand how you intend to trigger the search without some infos. Anyway just to give you an hint: jQuery("#your_custom_widget").closest('form').trigger('submit'); On Fri, Apr 26, 2019 at 12:22 PM Andrea Fae' wrote: > They are the standard buttons "Search" and "Reset". I'd

Re: [web2py] Re: Web2py binaries

2019-04-24 Thread Nico Zanferrari
Hello, I'm happy to say that I've gained the Win version, too! So, now we have a working web2py binary made with PyInstaller with python 3.7.3 or 2.7.16 - for MacOs or Windows. Also, the current web2py version (2.18.5) should be easily updated in the future by changing the gluon folder inside

Re: [web2py] Re: Web3py

2019-04-23 Thread Massimo Di Pierro
stupid was an experiment. the _dashboard is based on some variation of it. I do not think it good enough for what people expect from a css framework today. The collection of pure css effects in there has some value but that's all. On Tuesday, 23 April 2019 21:34:41 UTC-7, Dave S wrote: > > > >

Re: [web2py] Re: Web3py

2019-04-23 Thread Dave S
On Saturday, April 20, 2019 at 5:25:01 PM UTC-7, Massimo Di Pierro wrote: > > I have been looking more into veutify. I have some reservations. > I think a good CSS framework (for web3py) should be JS agnostic, even if > the examples use vue.js. > I think effects should be done in CSS only, not

Re: [web2py] Re: Web3py

2019-04-23 Thread Dave S
On Tuesday, April 23, 2019 at 8:44:26 AM UTC-7, 黄祥 wrote: > > the web2py admin is different. The web3py one is much more spartan. But >> the functions that need to be ported to zip/unzip apps are indentical. >> > > not sure got the meaning of spartan > "spartan", "spare", and "barebones" all

Re: [web2py] Re: Web3py

2019-04-23 Thread 黄祥
> > the web2py admin is different. The web3py one is much more spartan. But > the functions that need to be ported to zip/unzip apps are indentical. > not sure got the meaning of spartan tested last commit, all errors above gone (_dashboard and _scaffold) just a note for default

Re: [web2py] Re: SSL on Windows / Python 3.6.5 not working

2019-04-23 Thread João Matos
Yes, I think so. Try disabling the Windows Firewall. In my case, when I disable my antivirus (which includes a firewall) the error goes away. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: SSL on Windows / Python 3.6.5 not working

2019-04-23 Thread Clara Ferrando
Hello Joao, Thanks for your reply. I tried it, disabled Windows defender but I am still getting the same error... It does not happen with Python 2.7 though. Maybe Python 3 socket module could be causing the issue? I am open to all suggestions. Thanks, Clara On Tue, Apr 23, 2019, 5:52 AM João

Re: [web2py] Re: AWS Lambda Serverless and Zappa

2019-04-23 Thread App Jar
Hey David, sorry for the delay. I rarely check this email. I'd be happy to talk with you about some of this issues I ran into via phone or email. Let me know, m...@appjar.biz. On Fri, Mar 22, 2019 at 5:29 AM David Orme wrote: > Hi, > > Just wanted to ask about that recipe. I'm using web2py

Re: [web2py] Re: Web3py

2019-04-22 Thread Massimo Di Pierro
my mistake. I added it. the web2py admin is different. The web3py one is much more spartan. But the functions that need to be ported to zip/unzip apps are indentical. On Monday, 22 April 2019 17:14:07 UTC-7, 黄祥 wrote: > > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0 >>

Re: [web2py] Re: Web3py

2019-04-22 Thread 黄祥
> > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0 > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /_dashboard/static/index.html > HTTP/1.1" 404 459 > 127.0.0.1 - - [22/Apr/2019 03:08:56] "GET /_dashboard/ HTTP/1.1" 404 459 > 127.0.0.1 - - [22/Apr/2019 03:09:31] "GET

Re: [web2py] Re: Web2py binaries

2019-04-22 Thread Nico Zanferrari
Hi, the binary Mac version with python 2.7.16 is easily done, you can grab it here . It's the command version only, because the APP version is problematic - due to the already reported bug with Tk on

Re: [web2py] Re: Web3py

2019-04-22 Thread 黄祥
> > Traceback (most recent call last): > File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, in > import_apps > module = importlib.import_module(app_name) > File > "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py" > , line 127, in

Re: [web2py] Re: Web3py

2019-04-22 Thread Massimo Di Pierro
I will work on auth. I could use some help with _dashboard. The "create app", "upload app" and "pack app" buttons do not work but this logic should work the same as in web2py. Should be easy to backport if somebody can help this week. Massimo On Sunday, 21 April 2019 09:32:27 UTC-7, Kevin

Re: [web2py] Re: Web3py

2019-04-21 Thread 黄祥
Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, in import_apps module = importlib.import_module(app_name) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py" , line 127, in import_module return

Re: [web2py] Re: Web3py

2019-04-21 Thread Kevin Keller
I was wrong.. Found a recent integration with bottle and oauthlib.. https://github.com/thomsonreuters/bottle-oauthlib/blob/master/README.md Now we only need to figure out jwt and easy rest crud.. Which bottle is perfect for and finally use the before mentioned openapi generator with bottle and

Re: [web2py] Re: Web3py

2019-04-21 Thread Kevin Keller
Authentication + authorization and documentation of endpoints are actually the hardest part. There is a. Flask based framework called connexxion which asks you to create the openapi spec before the code which has jwt and oauth2 build in as. Well. Then there are flask Rebar which can use jwt and

Re: [web2py] Re: Web3py

2019-04-20 Thread 黄祥
scaffolding app would be nice to have example of authentication (user registration, login and logout) and to update the data, e.g. update todo list on todo app just wondering, if form used manually using javascript, is the field validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()

Re: [web2py] Re: Web3py

2019-04-20 Thread Massimo Di Pierro
I have been looking more into veutify. I have some reservations. I think a good CSS framework (for web3py) should be JS agnostic, even if the examples use vue.js. I think effects should be done in CSS only, not in JS. vuetify does not follow this rule. Also vuetify is really designed for use

Re: [web2py] Re: Web3py

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 6:41:34 PM UTC-4, Carlos Cesar Caballero wrote: > > Well, that's a really fair concern, I was just mentioning, because I like > ORMs and other popular projects like SQLAlchemy includes a DAL (they call > it SQL abstraction toolkit) and an ORM on top of it, and if you

Re: [web2py] Re: Web3py

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 5:47:31 PM UTC-4, Carlos Cesar Caballero wrote: > > Yes, but that's not about the number of code lines, that's about the code > organization and readability. > At least with the example given, I don't see a lot of difference in organization or readability

<    4   5   6   7   8   9   10   11   12   13   >