[web2py] Re: Web2py with python 3.8.0

2019-11-22 Thread Woody
I updated to Python 3.8 on Arch Linux today and I had the same problem with 'escape'. I patched the languages.py file and got web2py to start, but then hit another error: Traceback (most recent call last): File "/home/www/web2py/gluon/restricted.py", line 219, in restricted exec(ccode,

[web2py] Re: Web2py with python 3.8.0

2019-11-02 Thread Massimo Di Pierro
Should be fixed. Funny anough that import was not used. On Saturday, 2 November 2019 13:46:41 UTC-7, Donald McClymont wrote: > > So this seems to be because cgi.escape which was deprecated has now been > removed. I think there may have been a fix submitted for this - however if > not it should

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
The only reason for the LGPL is to prevent companies to change the name of the framework, claim they made it, and sell it. Every other use with acknowledgement is permitted. On Saturday, 2 November 2019 19:48:57 UTC-7, Massimo Di Pierro wrote: > > No license restriction. if you do it I will be

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
No license restriction. if you do it I will be happy to link it. On Friday, 1 November 2019 16:27:53 UTC-7, Jay B wrote: > > Hello guys, > > I have become familiar with web2py over the last months and am now playing > with the idea of creating a video course. > > However, I have been wondering

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
No license restriction. if you do it I will be happy to link it. On Friday, 1 November 2019 16:27:53 UTC-7, Jay B wrote: > > Hello guys, > > I have become familiar with web2py over the last months and am now playing > with the idea of creating a video course. > > However, I have been wondering

[web2py] Re: Web2py with python 3.8.0

2019-11-02 Thread Donald McClymont
So this seems to be because cgi.escape which was deprecated has now been removed. I think there may have been a fix submitted for this - however if not it should be fairly simple to include - looks like we just need to use html.escape which will work for all reasonable versions of python 3.

[web2py] Re: Web2py with python 3.8.0

2019-10-31 Thread martel berends
I had the same problem..I was curious to see if it should work out of the box, but that was not the case. Currently I'm using python 3.7.4 Op woensdag 30 oktober 2019 22:10:05 UTC+1 schreef Константин Комков: > > Hello! I can't start web2py with python 3.8.0. Are somebody have the same >

RE: [web2py] Re: Web2py arabic translations not working

2019-10-28 Thread John Bannister
Hi Massimo, Deleted ar.py and recreated it and seems fine now. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 28 October 2019 05:23 To: web2py-users Subject: [web2py] Re: Web2py arabic translations not working Can you

[web2py] Re: Web2py arabic translations not working

2019-10-27 Thread Massimo Di Pierro
Can you provide more info? Does it not identify the translation file? Does it not read it? Does it not translate properly? There should not be anything special about arabic other the it is Right to Left. On Tuesday, 22 October 2019 06:36:27 UTC-7, John Bannister wrote: > > Tried to use the

Re: [web2py] Re: Web2py binaries

2019-10-22 Thread Nico Zanferrari
Thank you Marius, you suggestion is simpler and is working fine, both for py2 and py3 apps! Cheers, Nico Il giorno mar 22 ott 2019 alle ore 08:25 Marius Rusca < marius.ru...@gmail.com> ha scritto: > Hi > > I downloaded web2py_osx.2_18_5.py3_app.zip >

Re: [web2py] Re: Web2py binaries

2019-10-22 Thread Marius Rusca
Hi I downloaded web2py_osx.2_18_5.py3_app.zip with safari on macos catalina. 'control' + click on downloaded file and allowed me to 'open' after some warning. I moved the file in applications and then

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-21 Thread ngn zone
Thanks Val, I have googled search and came across react JS which can facilitate front end so I am looking at it. On Fri, Oct 18, 2019 at 11:19 PM Val K wrote: > 'list:string' are definitely RDBMS-anti-pattern: try to count users that > checked A-answer to B-question from B-section from

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-18 Thread ngn zone
The truth is I need some light on which direction to take. as you have said, I need RDBMS, but talking of json or pickle I will need some help on how to go about it. Any link to a tutorial or example? Thanks Val On Fri, Oct 18, 2019 at 11:19 PM Val K wrote: > 'list:string' are definitely

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-18 Thread Val K
'list:string' are definitely RDBMS-anti-pattern: try to count users that checked A-answer to B-question from B-section from C-survey and `you`ll see your problems multiplied`(c). If 'list:string' seems suitable then you don't need RDBMS at all, you would better use pickle or json or another

Re: [web2py] Re: Web2py binaries

2019-10-18 Thread OogieM
> > > The solution is quite simple: download them from another OS (Windows or > Linux) and then use an USB key / drive in order to copy them to the Mac ... > In this way the program works like a charm > Any suggestions for those of us with no access to any computer with any other operating

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-18 Thread NGNZONE
Hello Ramos, your solution means that I will have to get this survey always online, but this app will at some point run offline for local users. So google forms might not be very fitting in this context. On Thursday, October 17, 2019 at 11:16:46 AM UTC+1, Ramos wrote: > > apart from that you can

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-17 Thread ngn zone
Okay, sounds interesting, I will check that out Thanks On Thu, Oct 17, 2019 at 11:16 AM António Ramos wrote: > apart from that you can use google forms and use google api script to call > your app webservice and send the json to your table. > This way you can let users create rapidly forms to

Re: [web2py] Re: Web2py binaries

2019-10-17 Thread Nico Zanferrari
Well, after additional tests on latest MacOs (Catalina), both the CMD and the APP versions work fine. The problem comes from downloading from Internet - the Extended Attributes that Apple adds to the executables are not easily bypassed and the programs cannot be run for security reason. The

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-17 Thread António Ramos
apart from that you can use google forms and use google api script to call your app webservice and send the json to your table. This way you can let users create rapidly forms to question users.Then in web2py you can just show the json as a table. Em qua, 16 de out de 2019 às 08:54, NGNZONE

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-16 Thread NGNZONE
Thanks Val K, I appreciate the elaborate explanation. I will try the suggestions ASAP Regards On Saturday, October 12, 2019 at 10:11:12 PM UTC+1, Val K wrote: > > If you want to create/edit survey using one page you have to use > JavaScript (I don't see another non-horrible way). > If you want

Re: [web2py] Re: Web2py binaries

2019-10-14 Thread Nico Zanferrari
Hi all, I've put again the MacOs *CMD *binaries on the repository, because they work fine even on Catilina - so they are recommended. The *APP *versions seem to work fine, too, but only if you don't download them with the browser. In this case the system remember it (using Extended Attributes),

[web2py] Re: [Web2Py] admin 'ascii' codec can't decode error switching from python 2 to python 3

2019-10-14 Thread Mamisoa Andriantafika
I did a fresh reinstallation and it works. But I cannot point out where is the problem. Le dimanche 13 octobre 2019 13:18:14 UTC+2, Mamisoa Andriantafika a écrit : > > Hi, > > I switched my current 2.18.5 Web2py installation from python 2 to python > 3. > > Creating a dummy new application,

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-12 Thread Val K
If you want to create/edit survey using one page you have to use JavaScript (I don't see another non-horrible way). If you want only web2py/python implementation you have to organize your application to edit one entity per page/request, i.e. you can do something as follows: /surveys - returns

[web2py] Re: web2py survey dynamic forms with nested choices

2019-10-12 Thread Val K
# db_0.py # shortcut for `not null` field creation def req_field(*args, **kwargs): kwargs['notnull'] = True kwargs['required'] = True return Field(*args, **kwargs) # shortcut for reference field creation, `notnull` by default def FK(ref_table, **kwargs): if 'notnull' not in

Re: [web2py] Re: Web2py binaries

2019-10-09 Thread Nico Zanferrari
Hi, see also this issue on the Pyinstaller's site. Could someone kindly try the existing binaries on the new MacOS Catalina (Version 10.15)? Nico Il giorno dom 18 ago 2019 alle ore 09:17 Nico Zanferrari ha scritto: > *Do not update to

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

2019-10-04 Thread Andy W
Thank you so much, on creation of the file I typed the filename rather than basics/filename Working as expected now. On Friday, 4 October 2019 12:17:10 UTC+1, villas wrote: > > As Massimo implies, your function is not finding your view, so it is > using a generic view instead. > > Check

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

2019-10-04 Thread villas
As Massimo implies, your function is not finding your view, so it is using a generic view instead. Check carefully that your view is saved in the correct directory: pluralsight/views/basics/random_number.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

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

2019-10-04 Thread Andy W
It's like the function return locals is acting as print locals and overiding the html view, if I add another string as a variable that will show on the html view too.. On Friday, 4 October 2019 10:34:15 UTC+1, Andy W wrote: > > The basics.py file is in

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

2019-10-04 Thread Andy W
The basics.py file is in web2py/applications/pluralsight/controllers/ And random_number.html is in web2py/applications/pluralsight/views/ The web URL is http://127.0.0.1:8000/pluralsight/basics/random_number What I don't understand is other views seem to represent fine just this one? I really

[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

Re: [web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-08-24 Thread Donald McClymont
I just start it with systemd but there are various options to run scripts at startup - I did need to put some sort of instructions in to make sure Web2py starts after the network is up and running - having done this it did start fine. Donald -- Resources: - http://web2py.com -

Re: [web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-08-22 Thread Christian Varas
I run web2py in a raspberry with Apache or nginx. Then the auto start is automatically. Cheers. El jue., 22 de ago. de 2019 04:02, lucas escribió: > sorry for the long delay on this post. I've been theme parking with the > kids all summer. > > ok, I've got rocket running on the pi with

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-08-21 Thread lucas
sorry for the long delay on this post. I've been theme parking with the kids all summer. ok, I've got rocket running on the pi with python 3.5. very well. what's the best way to auto startup /home/www-data/web2py/anyserver.py & on the pi? when I manually type execute the above in a bash

Re: [web2py] Re: Web2py remote linux user trying to connect to Informix

2019-08-18 Thread Massimo Di Pierro
I do not think uwsgi is doing this. This looks more like somebody is maliciously trying to get it. -- 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

Re: [web2py] Re: Web2py remote linux user trying to connect to Informix

2019-08-18 Thread Joseph Aulisi
Oh yes, the informix connection works perfectly, with the correct user and password. It just that the logs on the informix server are filling up with failed logins from web2py@remotehost. uwsgi runs as web2py on the remote host, so it must be coming from uwsgi trying to make a connection, but I'm

Re: [web2py] Re: Web2py binaries

2019-08-18 Thread Nico Zanferrari
*Do not update to MacOS 10.14.6* Guys if you are in a MacOS version before 10.14.6 please do not update, the new version of MacOS has a bug with tkinter applications and they stop working, at the time these applications are executed the system freezes and returns to the login screen, here is a

[web2py] Re: Web2py remote linux user trying to connect to Informix

2019-08-17 Thread Massimo Di Pierro
No idea what is going on. If you app intended to connect to Informix? Did work before? On Saturday, 3 August 2019 19:22:26 UTC-7, Joseph Aulisi wrote: > > We have Web2py 2.18.5-stable running on a RHEL 7 virtual machine with > python 2.7.16, nginx 1.17.1, and uwsgi 2.0.x. Although web2py

[web2py] Re: Web2Py and ldap integration

2019-08-01 Thread Davidiam
Thank you very much for the info. In the mean time we have decided to use shibboleth because we had a lot of issues with the python modules on Windows and because the project added the requirement for sso. I will keep your solution as a reference for the future. -- Resources: -

[web2py] Re: Web2Py and ldap integration

2019-07-31 Thread 'tomt' via web2py-users
I have used ldap_auth successfully by implementing the following in models/db.py: from gluon.contrib.login_methods.ldap_auth import ldap_auth ... db = DAL('mysql://mydb:mydb@localhost/password') ... # --- end of web2py scaffolding ---

Re: [web2py] Re: Web2py binaries

2019-07-28 Thread Nico Zanferrari
Hi, good news: a simple workaround has been developed for the MacOs APP bundle problem with PyInstaller (see https://github.com/pyinstaller/pyinstaller/issues/3820 ). I've already created the new Mac binaries in the APP form, with embedded Python 3.7.4 and 2.7.16 - see my repository

Re: [web2py] Re: web2py 2.18.5 is OUT

2019-07-28 Thread Angelo Compagnucci
HI Massimo, Can you tag R-2.18.5? Thanks! Il giorno ven 5 lug 2019 alle ore 07:18 黄祥 ha scritto: > > already tried define the length on field constructor and change web server > because error above refer to rocket.py > ref: > https://groups.google.com/d/msg/web2py/2B9B9o151II/UyfREFmlBgAJ > >

[web2py] Re: Web2Py on IIS, multiple apps under virtual directories

2019-07-22 Thread Davidiam
Solved. I needed to add a separate fastcgi per system by modifying the web.confi fastcgi line and adding the and in IIS I needed to add a separate fastcgi application for each installation. On Saturday, July 20, 2019 at 7:30:00 AM UTC+2, Davidiam wrote: > > Hello, > > I have setup Web2Py with

[web2py] Re: Web2py Database Connection with SQL Server and Trusted Connection?

2019-07-19 Thread Massimo Di Pierro
Hello Costanza, sorry for the late reply. I am not too familiar with mssql but your database should be identified by a connection string also known as DSN https://www.connectionstrings.com/sql-server/ In web2py you would use: db = DAL('mssql://...') where ... is your dsn string. nas wrote:

[web2py] Re: web2py scripts (homemade task queues) and python2 compatibility

2019-07-16 Thread Tom Clerckx
That's clear, thanks for the update. On Tuesday, July 16, 2019 at 6:48:41 PM UTC+2, Leonel Câmara wrote: > > You're right, you must use the print function because web2py now has a " > from __future__ import print_function" which forces you to use the print > function even in python2 > --

[web2py] Re: web2py scripts (homemade task queues) and python2 compatibility

2019-07-16 Thread Leonel Câmara
You're right, you must use the print function because web2py now has a "from __future__ import print_function" which forces you to use the print function even in python2 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: web2py 2.18.5 is OUT

2019-07-04 Thread 黄祥
already tried define the length on field constructor and change web server because error above refer to rocket.py *ref:* https://groups.google.com/d/msg/web2py/2B9B9o151II/UyfREFmlBgAJ *modules/table_test.py* test = db.define_table('test', Field('test', length = 255), on_define =

[web2py] Re: web2py + Vue + Vuetify

2019-07-01 Thread Carlos A
Hi Ariel, Why not to create an Starter App Template on GitHub? Just an idea. Actually Iam using Web2py + Vue + Quasar Framework and it's amazing but Vietify it's amazing too. El domingo, 30 de junio de 2019, 23:20:10 (UTC-7), Ariel Antunez escribió: > > Hi every body. > > For some years I

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
Val K you're right, that's done! thanks Em seg, 1 de jul de 2019 às 16:26, Val K escreveu: > > I'm not a pro in nginx but if you set proxy_set_header Host 192.168.7.2; how > does web2py know about www.domain1.net? Maybe it should be proxy_set_header > Host $host? > > -- > Resources: > -

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Val K
I'm not a pro in nginx but if you set proxy_set_header Host 192.168.7.2; how does web2py know about www.domain1.net? Maybe it should be proxy_set_header Host $host? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Alex Beskopilny
start second guicorn You have to run your projects on different ports like firsrone on 8000 and secondone on 8001. Then in nginx conf, in place of location /, you have to write location /firstone/ and proxy pass this to port 8000 and then write same location object for second one as

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
Attached, my configuration files: -nginx.conf (nginx main file) -site1 (domain 1 that should be routed to app2 from web2py, I just changed names for privacy reasons) -site2 (domain 2 that should be routed to app2 from web2py, I just changed names for privacy reasons) Em seg, 1 de jul de 2019 às

[web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Alex Beskopilny
понедельник, 1 июля 2019 г., 16:23:30 UTC+3 пользователь Áureo Dias Neto написал: > > > . > for me works 1 up second gunicorn 2 dom2.conf upstream gunidom2 { server unix:/home/w2p/var/guni-dom2.sock fail_timeout=0; } server { listen xx.yy.zz.ww:443 ssl http2;

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Jim Steil
Yes On Mon, Jul 1, 2019 at 10:23 AM Áureo Dias Neto wrote: > You have routes.py only in web2py folder? > > Em seg, 1 de jul de 2019 12:07, Jim S escreveu: > >> My routes.py with multiple domains. I don't really see any difference. >> Are you sure you're using the right domains? I also have

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
You have routes.py only in web2py folder? Em seg, 1 de jul de 2019 12:07, Jim S escreveu: > My routes.py with multiple domains. I don't really see any difference. > Are you sure you're using the right domains? I also have entries in there > for when I'm testing from my local network because

[web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Jim S
My routes.py with multiple domains. I don't really see any difference. Are you sure you're using the right domains? I also have entries in there for when I'm testing from my local network because the domain is going to look different. #!/usr/bin/python # -*- coding: utf-8 -*- #

[web2py] Re: web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how we can import it?

2019-06-26 Thread Dave S
On Wednesday, June 26, 2019 at 8:08:54 PM UTC-7, imran tube wrote: > > web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? > how we can import it? > See http://web2py.com/books/default/chapter/29/04/the-core#Third-party-modules> If you're not running on a source version

[web2py] Re: web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how we can import it?

2019-06-26 Thread 黄祥
> > web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? > yes, can import all of python library how we can import it? > just import it either it in models, controllers, modules or views *e.g. * import numpy best regards, stifan -- Resources: - http://web2py.com -

Re: [web2py] Re: Web2py binaries

2019-06-24 Thread Dave S
On Sunday, June 23, 2019 at 4:25:29 AM UTC-7, icodk wrote: > > The reason I ask is because I got errors running from source with ssl > Port 443 is special, as I indicated in the other thread. /dps > > On Sunday, June 23, 2019 at 11:32:26 AM UTC+2, Nico Zanferrari wrote: >> >> Hi all, >> >>

Re: [web2py] Re: Web2py binaries

2019-06-23 Thread icodk
The reason I ask is because I got errors running from source with ssl On Sunday, June 23, 2019 at 11:32:26 AM UTC+2, Nico Zanferrari wrote: > > Hi all, > > I've just released a new set of the 2.18.5 Web2py frozen binaries, for > Windows and MacOs, with Python 2.7.16 and 3.7.3; grab them from my

Re: [web2py] Re: Web2py binaries

2019-06-23 Thread icodk
Does it run with SSL ( -c ca.crt -k ca.key -p 443 ) ? On Sunday, June 23, 2019 at 11:32:26 AM UTC+2, Nico Zanferrari wrote: > > Hi all, > > I've just released a new set of the 2.18.5 Web2py frozen binaries, for > Windows and MacOs, with Python 2.7.16 and 3.7.3; grab them from my > repository

Re: [web2py] Re: Web2py binaries

2019-06-23 Thread Nico Zanferrari
Hi all, I've just released a new set of the 2.18.5 Web2py frozen binaries, for Windows and MacOs, with Python 2.7.16 and 3.7.3; grab them from my repository . The only update is that now the interactive shell is working fine ;-) This was obtained

Re: [web2py] Re: web2py dynamic queries

2019-06-17 Thread Jim Steil
I think you need to check the web2py errors that are being generated. That should tell you what is going on. Jim On Mon, Jun 17, 2019, 5:04 PM Cristina Sig wrote: > I'm having the same datatables warning: ajax error so I guess it might be > the referenced field that is causing the error

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Cristina Sig
I'm having the same datatables warning: ajax error so I guess it might be the referenced field that is causing the error because even the table is not being field with data. El lunes, 17 de junio de 2019, 18:55:02 (UTC-3), Jim S escribió: > > Are you getting an error on the referenced field

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Jim S
Are you getting an error on the referenced field (Nationality) or is it just not returning the results you're expecting? -Jim On Monday, June 17, 2019 at 4:46:14 PM UTC-5, Cristina Sig wrote: > > thanks! > I solved the integer field but it seems that the referenced fields are not > working. >

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Cristina Sig
thanks! I solved the integer field but it seems that the referenced fields are not working. I will try to see what is the issue with them El lunes, 17 de junio de 2019, 18:05:18 (UTC-3), Jim S escribió: > > I'm guessing it's the phone number field. You can't use 'contains' on a > numeric

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Jim S
I'm guessing it's the phone number field. You can't use 'contains' on a numeric field. So, try this: if search_value and search_value != '' and search_value != 0: try: int_search_value = int(search_value) queries.append((db.Student.firstname.contains(search_value)) |

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Cristina Sig
Hello Jim, I tried the code and it shows me an error *DataTables warning: table id=tableStudent - Ajax error. For more information about this error, please see http://datatables.net/tn/7* I think it is not recognising the numeric field or the referenced ones El lunes, 17 de junio de 2019,

[web2py] Re: web2py dynamic queries

2019-06-17 Thread Jim S
Cristina I'd look at adding a 'left' argument on my query.select(). if search_value and search_value != '' and search_value != 0: queries.append((db.Student.firstname.contains(search_value)) | (db.Student.lastname.contains(search_value)) |

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote: > > > > On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: >> >> Thanks for testing, Dave, I'm happy to hear that it's working fine! >> >> I think that the Welcome app with latest web2py versions don't look so >>

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote: > > > > On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: >> >> Thanks for testing, Dave, I'm happy to hear that it's working fine! >> >> I think that the Welcome app with latest web2py versions don't look so >>

Re: [web2py] Re: Web2py binaries

2019-06-13 Thread Dave S
On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote: > > Thanks for testing, Dave, I'm happy to hear that it's working fine! > > I think that the Welcome app with latest web2py versions don't look so > fine in Windows and python 3, but I cannot see any difference from running

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-12 Thread Massimo Di Pierro
I agree. On a pi you do not have a lot of cores. I would stick with just rocket On Tuesday, 11 June 2019 14:18:04 UTC-7, Donald McClymont wrote: > > Why not just use the built in rocket server on a pi? Seems far simpler > and performance is always going to be fairly limited given the hardware

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-11 Thread Donald McClymont
Why not just use the built in rocket server on a pi? Seems far simpler and performance is always going to be fairly limited given the hardware you are running on? On Saturday, June 8, 2019 at 12:31:28 AM UTC+1, Val K wrote: > > uWSGI is very cool, but since you are on Raspbian maybe gunicorn

Re: [web2py] Re: web2py managing capacity ?

2019-06-07 Thread Dave S
On Tuesday, June 4, 2019 at 12:00:09 PM UTC-7, Dave S wrote: > > > > On Tuesday, June 4, 2019 at 9:12:24 AM UTC-7, karthikeyan p wrote: >> >> sorry , >> Carlos Costa >> , i typed wrongly ! >> its scalability , i want to know web2py apps scalability ! >> > > Well, that depends on your

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Val K
uWSGI is very cool, but since you are on Raspbian maybe gunicorn is more suitable? https://dzone.com/articles/a-performance-analysis-of-python-wsgi-servers-part On Saturday, June 8, 2019 at 12:12:58 AM UTC+3, Dave S wrote: > > > > On Friday, June 7, 2019 at 2:37:54 AM UTC-7, lucas wrote: >>

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Dave S
On Friday, June 7, 2019 at 2:37:54 AM UTC-7, lucas wrote: > > i can not for the life of me figure out where to change to the python3.5 > environment for web2py. i tried changing the python symbolic link, and > changed to python3.5 in multiple files under web2py main directory, uwsgi, > etc.,

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
i haven't until you just mentioned it. there is an emperor.uwsgi.service file. its contents are: [Unit] Description = uWSGI Emperor After = syslog.target [Service] ExecStart = /usr/local/bin/uwsgi --ini /etc/uwsgi/web2py.ini RuntimeDirectory = uwsgi Restart = always KillSignal = SIGQUIT Type

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread Val K
Did you look at /etc/systemd/system -- 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

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
well isn't python opened with either nginx (nginx.service) or uwsgi (emperor.uwsgi.service) with systemctl. I've been trying to find that script to change the python to python3.5. but I can't seem to find it under either of those two or under web2py. -- Resources: - http://web2py.com -

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread 黄祥
shell script not work ? another way around perhaps can use conda 3 or miniconda 3, install it and it automatically add variable PATH on your bash file, reload it, then, the default of your python bash will refer to conda installed path best regards, stifan -- Resources: - http://web2py.com -

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
i can not for the life of me figure out where to change to the python3.5 environment for web2py. i tried changing the python symbolic link, and changed to python3.5 in multiple files under web2py main directory, uwsgi, etc., but i can not get web2py to boot straight into python3.5. where is

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-04 Thread 黄祥
dont mess with the /usr/bin/ by create the symbolic link, the safest way perhaps you can create a shell script e.g. *start_web2py.sh* python3 /path_to_web2py/web2py.py then start your web2py server with ./start_web2py.sh best regards, stifan -- Resources: - http://web2py.com -

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-04 Thread lucas
so, what is the best way to direct web2py to use the python3 instead of the default python/python2.7? -- 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) ---

Re: [web2py] Re: web2py managing capacity ?

2019-06-04 Thread Dave S
On Tuesday, June 4, 2019 at 9:12:24 AM UTC-7, karthikeyan p wrote: > > sorry , > Carlos Costa > , i typed wrongly ! > its scalability , i want to know web2py apps scalability ! > Well, that depends on your application (how much work your app does on a request), your front end, and your

[web2py] Re: web2py delimiters conflict with vue.jsz

2019-06-04 Thread Anthony
See response.delimiters at http://web2py.com/books/default/chapter/29/04/the-core#response. You can set it in a model file to apply to all views, or within a particular controller or view to apply to a specific view. Anthony On Tuesday, June 4, 2019 at 2:20:30 PM UTC-4, Craig Matthews wrote:

[web2py] Re: web2py delimiters conflict with vue.jsz

2019-06-04 Thread 黄祥
another way around perhaps can use response.delimiter ref: http://web2py.com/books/default/chapter/29/04/the-core?search=delimiter best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: web2py managing capacity ?

2019-06-04 Thread karthikeyan p
sorry , Carlos Costa , i typed wrongly ! its scalability , i want to know web2py apps scalability ! On Fri, May 24, 2019 at 8:22 PM Carlos Costa wrote: > sociability? > > Em sex, 24 de mai de 2019 às 05:18, 黄祥 > escreveu: > >> how to use it with postgresql ? >>> >> >> pls set the uri

[web2py] Re: web2py belongs if none

2019-05-30 Thread Val K
why not just: # start to form query: q = db.counters.c_date >= datum_od if ...: # continue to form the query depending on conditions q &=...belongs(...) # the same with `left` left = ... if ...: left.append(...) # and fields if ...: fields = [...] else: fields = [...] # at the

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-27 Thread Dave S
On Sunday, May 26, 2019 at 4:44:06 AM UTC-7, Lovedie JC wrote: > > Hi Dave. I have struggled with this for long but never got a good answer. > Do you have an example where in the view page: > {{=form}} > in the primary page is used but the page is not refreshing > > No. If your page is

RE: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread John Bannister
@googlegroups.com] On Behalf Of Lovedie JC Sent: 26 May 2019 14:00 To: web2py@googlegroups.com Subject: Re: [web2py] Re: Web2py: Update table content after submit action I tried with www.web2py.com/AlterEgo/default/show/252 I have to keep refreshing the page for the form to reappear. On Sun

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
I tried with www.web2py.com/AlterEgo/default/show/252 I have to keep refreshing the page for the form to reappear. On Sun, 26 May 2019, 14:43 Lovedie JC wrote: > Hi Dave. I have struggled with this for long but never got a good answer. > Do you have an example where in the view page: >

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
Hi Dave. I have struggled with this for long but never got a good answer. Do you have an example where in the view page: {{=form}} in the primary page is used but the page is not refreshing On Sun, 26 May 2019, 11:16 Dave S wrote: > > > On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina

[web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Dave S
On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote: > > Hello everyone, > > I have a table filled with records from a database. > > Also, I have a button to add a new record. Once I enter all the data for > the new record and press the submit button, I want to update the content

Re: [web2py] Re: web2py managing capacity ?

2019-05-24 Thread karthikeyan p
Thanks for reply ; i will try this ! On Fri, 24 May 2019 at 8:22 PM, Carlos Costa wrote: > sociability? > > Em sex, 24 de mai de 2019 às 05:18, 黄祥 > escreveu: > >> how to use it with postgresql ? >>> >> >> pls set the uri connection first >> *e.g. private/appconfig.ini* >> uri =

Re: [web2py] Re: web2py managing capacity ?

2019-05-24 Thread Carlos Costa
sociability? Em sex, 24 de mai de 2019 às 05:18, 黄祥 escreveu: > how to use it with postgresql ? >> > > pls set the uri connection first > *e.g. private/appconfig.ini* > uri = postgres://postgres:password@localhost/database_name > > *ref:* > >

[web2py] Re: web2py managing capacity ?

2019-05-24 Thread 黄祥
> > how to use it with postgresql ? > pls set the uri connection first *e.g. private/appconfig.ini* uri = postgres://postgres:password@localhost/database_name *ref:* http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Connection-strings-the-uri-parameter- best

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-05-24 Thread Massimo Di Pierro
web2py runs on python 2 and python 3 but most of the apps are written for python 2. your existing apps will have to be modified. web2py does not care. On Wednesday, 22 May 2019 14:43:38 UTC-7, lucas wrote: > > hello one and all, > > yes, I have web2py 2.17.2 running on a raspberry pi model 3 b+,

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

2019-05-20 Thread Dave S
On Friday, May 17, 2019 at 5:57:29 AM UTC-7, lucas wrote: > > actually Dave S, > > your indirect answer led me to a place of where not to go at all, which > was the server-side node.js. believe it or not. because it led me to a > place where i actually needed to be. and i conjured the

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

2019-05-17 Thread lucas
actually Dave S, your indirect answer led me to a place of where not to go at all, which was the server-side node.js. believe it or not. because it led me to a place where i actually needed to be. and i conjured the final code after about 44 hours of toil. it works freaking great, pure

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

2019-05-16 Thread lucas
hey Dave S, yes, I've been using ec2 with a centos 7.6 os for 12 years and s3 for the same amount of time. I have t2.micro sized server and it costs about $20 and I don't have to think about amount of ethernet traffic or throughput, RAM, downtimes, etc. call me old fashioned, but its really

<    1   2   3   4   5   6   7   8   9   10   >