[web2py] Re: Too many tables selected

2016-05-31 Thread arihant daga
Is there anyway we can use sometihng simmiliar to join in mongodb with web2py. Because web2py gives us this model structure (similar to tables) where i'll have to use related fields but what's the point of using reference fields if i can't perform join. So suppose for a simple blog application

[web2py] Issure with web2py- Problem in handling MongoDB BSON ids

2016-06-03 Thread arihant daga
I think his is an issue with web2py and mongo db and combo. When using mongodb as application's database the primary key is for some docment look like this in monogdb- *26985031207145552773431411972*. While in mongoDB it's value is something like- 57317ea0f804663444afc504. *Now the problem i

[web2py] Issue with web2py and mongodb id's

2016-06-03 Thread arihant daga
I think his is an issue with web2py and mongo db and combo. When using mongodb as application's database the primary key is for some docment look like this in monogdb- *26985031207145552773431411972*. While in mongoDB it's value is something like- 57317ea0f804663444afc504. *Now the problem is

[web2py] Bug Web2py and MongoDb datetime and default="request.now".

2016-06-07 Thread arihant daga
I think there is this bug in web2py. I had this in my code for users table. Field('created_on', 'datetime', default=request.utcnow,update=request.utcnow) but on submitting signup form it always threw an error saying combine() argument 1 must be datetime.date, not str i checked arguments and

[web2py] custom auth table email field set to unique=True accepts non unique values with different case.

2015-11-04 Thread arihant daga
In custom auth table even if email field is set to unique=true, if user inputs two different values different in case ex.( 'em...@gmail.com' and 'em...@gmail.com' ) it will accepts both and will store both of them in database. Hence enabling a user to signup with the same email id multiple time

[web2py] Re: custom auth table email field set to unique=True accepts non unique values with different case.

2015-11-05 Thread arihant daga
Thank you anthony On Wednesday, November 4, 2015 at 11:09:34 PM UTC+5:30, arihant daga wrote: > > In custom auth table even if email field is set to unique=true, if user > inputs two different values different in case ex.( 'em...@gmail.com' and ' > em...@gmail.com&

[web2py] enable automatic login after email verification

2015-11-05 Thread arihant daga
I want users to enable automatically login after email verification but not allowing them login right after registration before email verification. Currently i have these settings. auth.settings.registration_requires_verification = True auth.settings.login_after_registration = False auth.settin

[web2py] How good a combo of MongoDB and web2py as a restful backend for a vast mobile application?

2016-03-13 Thread arihant daga
Hi all, I am trying to build a mobile application communicating to server using rest services. I am trying to build the backend with web2py. But i am feeling quiet doubtful since i am not getting much resources on web apart from the book.I am a little doubtful weather i should go for MongDb

[web2py] Web2py interactive shell issue

2015-06-18 Thread Arihant Daga
Whie using Web2py interactive shell, it always displays an error wheneveri type any command into shell that- "An error ocdured please reload the page" -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] Mobile No. Validation

2015-06-25 Thread arihant daga
Hello guys i need someone's help here... I am trying to add mobile no. in Sign up form using custom_auth_table... my code is this.. db.define_table('user', Field('email', length=128, label=T('Email'), unique=True, notnull=True), Field('mobile', length=10, label=T('Mobile No.')), Fie

[web2py] web2py on bluehost shared server

2015-07-19 Thread arihant daga
Hello guys, I am very new to server deployment, But i have my web2py app completely ready in my local server and for testing purpose i have bought a shared server on bluehost.com but i have no clue about how to deploy my app there. Can i simply put the web2py package directly into the public_ht

[web2py] update list:string type colum

2015-10-01 Thread arihant daga
Hello, I have my table like this, db.define_table('myTable', Field('listfield','list:string'), ) now i want to update my table and add items into listfield if i do db(db.myTable.id==1).validate_and_update(listfield=newList) it will update the list with newList b