[web2py] Re: Call functions from other applications without network requests

2017-02-17 Thread Brendan Barnwell
> The simplest approach is to put shared functionality into modules. Of > course, if you don't know in what context a given bit of code will run, you > can easily check whether particular tables have been defined and then call > the table defining code if necessary. > > Maybe it would help to

[web2py] Re: Python Social Auth - example site working with downlevel version of PSA

2017-02-17 Thread Donald McClymont
Hi Joe It does sound like you are making some progress - getting rid of all the persona stuff makes sense and I would like dual login capability as well. However my knowledge of both web2py auth and social auth is very limited so I am not sure I am a great source of advice. I did get Janrain

[web2py] Re: Validation error, field:email while trying to conect to SQL Express

2017-02-17 Thread Raul Monares
The database is new and completely empty. migrate = true is working because the auth tables are created automatically. I've used in the past Mysql, Postgresql, Firebird, DB/2 and this has never happened. It's as if the validator is not recognizing the existing table auth_user. On Friday,

[web2py] Problem with codification in web2py+mongodb

2017-02-17 Thread Yasmany Yantalla
I am using web2py version 2.14.6-stable + timestamp.2016.05.10.00.21.47 with mongodb version 2.6, when using the fields list: string these are inserted correctly in the database but when they are modified they change coding eg [u ' Zxcvzxc '], [u'zxc'], [u'vzxcv '], [u'zx'], [] Sorry for my

[web2py] Re: Validation error, field:email while trying to conect to SQL Express

2017-02-17 Thread Dave S
On Friday, February 17, 2017 at 12:36:01 PM UTC-8, Raul Monares wrote: > > I'm trying to use SQL Express for a project. When I try to sign up using > the demo app, I get this error > Validation error, field:email 0x049114E0> > All auth tables are created in the database. I tried

[web2py] Validation error, field:email while trying to conect to SQL Express

2017-02-17 Thread Raul Monares
I'm trying to use SQL Express for a project. When I try to sign up using the demo app, I get this error Validation error, field:email All auth tables are created in the database. I tried migrate = false, migrate = true. Same result. The connection string is

[web2py] Email using p7s file

2017-02-17 Thread Scott Hunter
Is it possible to send email with web2py's Auth mailer using a .p7s file to sign/encrypt it? If so, how? If not, I saw (very brief) documentation on how to use x509 encryption (top of Chapter 8), but wasn't clear on what the arguments that it needed were. - Scott -- Resources: -

[web2py] Re: Web2py Websocket in Rest

2017-02-17 Thread PK
I wanna use real time chatting application with web2py but my front end is android app.So i have to send Rest Json data.Should i use web2py and tornado something like web_socketmessaging.py or should i only use tornado. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Web2py Websocket in Rest

2017-02-17 Thread Htet Wai Kyu
i want to creat chatting application with json. Can i use tornado websocket with web2py(something like websocket_messaging.py )? or should i only use Tornado -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Using ROWID function as id field in sqlite tables

2017-02-17 Thread Sundar
An old thread - but I seem to have some problems using 'rowid' as id. The statement Field('rowid', 'id') causes the error: invalid table/column name "rowid" is a "ALL" reserved SQL/NOSQL keyword What could I be possibly doing wrong? (I tried rowid in lower as well as upper case) Thanks.

[web2py] Re: 2 email configurations

2017-02-17 Thread Gael Princivalle
Thanks. Il giorno venerdì 17 febbraio 2017 05:51:31 UTC+1, Gaurav Vichare ha scritto: > > Yes , you can. > > from gluon.tools import Mail > > other_mail = Mail() > other_mail.settings.server = 'smtp.example.com:25' > other_mail.settings.sender = 'us...@example.com ' > other_mail.settings.login =

[web2py] Re: Smarthumb computed fields not computed after register

2017-02-17 Thread Gael Princivalle
Thank you Leonel but I think it don't resolve the bug. Perhaps I've done something wrong. I've already some actions to do for both events so I've some lambda functions (I've take off the other things from the functions): auth.settings.profile_onaccept = lambda form: profile_onaccept(form)

[web2py] Re: how to deploy in GAE

2017-02-17 Thread Jacinto Parga
With gcloud you have to configure the app.yalm without "yourappname" and "version" The appname is provided when you make gcloud init And you can specify the version with --version flag El martes, 25 de octubre de 2016, 7:11:49 (UTC+2), Massimo Di Pierro escribió: > > wget

Re: [web2py] Why doesn't web2py create a PostgreSQL database automatically (curiosity, not criticism)

2017-02-17 Thread Philip Kilner
Hi Tom, On 17/02/17 00:39, Tom Campbell wrote: Is there some reason web2py doesn't just create a PostgreSQL database with a GUID for a name or something? I'm guessing it's a permissions issue. As Stifan says, you can script this if you are accessing PostgreSQL as a user with create db