[web2py] Re: How do I design a view such that users will have to pass through login page?

2015-12-13 Thread Anthony
See http://web2py.com/books/default/chapter/29/09/access-control#Authentication. If you use the auth.requires_login() decorator (or any of the other Auth decorators), users who are not logged in will be directed to login (and then back to their originally requested page after login). Anthony

[web2py] How to customize login in web2py (include security check-up and ask for more information for signup?

2015-12-13 Thread RAGHIB R
More information like, birthdate, gender and others. -- 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

[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson
Ok. Some tips to a future me if I have to do this again. wfastcgi is now a module. So currently the deployment instructions in the web2py book give a download link. It's not necessary any longer. But some paths have changed, and the configuration process is more automated.

[web2py] GAE and date query, where is the limit

2015-12-13 Thread Mathieu Clabaut
Hello, the doc says that GAE does not support complex datetime query… Could someone tell me if the following is expected to fail (where end_date is a datetime): db((db.auth_user.end_date.year() == end.year) & (db.auth_user.end_date.month() == end.month) &

[web2py] Select list:reference fields in one database query

2015-12-13 Thread Robin Manoli
Is there a way to select a set of fields and corresponding list:reference fields in one query? I have these three tables: *db.define_table( 'product',Field( 'name' ),Field( 'categories', 'list:reference category' ),Field( 'vendor', 'reference vendor' ),

[web2py] Re: Pre-populated Forms

2015-12-13 Thread Anthony Smith
Hi Val, Thanks for your reply, but unable to find any about get prototype record in the book. Do you have an examples Thanks Anthony On Saturday, 12 December 2015 06:03:26 UTC+11, Val K wrote: > > 1. get prototype record > 2. overwrite field.default with corresponding prototype value >

[web2py] Re: Sitemap Question

2015-12-13 Thread Joe
Hi Gael, That's great! Thanks very much. I wonder how I can then create a URL like http://www.mydomain.com/sitemap.txt instead of http://www.mydomain.com/init/default/sitemap.txt On Tuesday, October 20, 2015 at 5:30:03 PM UTC+8, Gael Princivalle wrote: > > Hello Joe. > > I use the

[web2py] 2 different registration form

2015-12-13 Thread Alessandro Leonetti
Hi guys, I am faced with a problem rather big for my application. I try to explain it: Basically I need two different forms of records, 1st dedicated to home users who register for this form I use the default "auth.user" register with Extra fields "Delivery" and "address", but now I want to

[web2py] How do I design a view such that users will have to pass through login page?

2015-12-13 Thread RAGHIB R
Like in case of facebook, one has to pass through a login page. If one 's logged in he will be redirected to home page otherwise login. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson
wfastcgi is now a module on PyPi after installing it, the scripts directory has wfastcgi.exe and an enable executable: wfastcgi-enable.exe There is no wfastcgi.py However, running wfastcgi-enable.exe from an Admininistrator command prompt makes a change to IIS configuration. It adds a handler

[web2py] using custom upload button when using SQLFORM

2015-12-13 Thread Jitun John
I was trying to replace the Normal Upload button in {{form}} with a button with nice jquery Browse/File button I can see the view correctly, but the Submit button does not Submit the fields to the Database. Following is the code I am trying > > > > method="post"> > > > > >

[web2py] How do I remove SQLITE and use MYSQL in web2py stepwise?

2015-12-13 Thread RAGHIB R
And what is capacity of MYSQL in web2py, as I heard capacity of sqlite is just 5000 entries. -- 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

[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson
On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote: > > wfastcgi is now a module on PyPi > > after installing it, the scripts directory has wfastcgi.exe and an enable > executable: wfastcgi-enable.exe > There is no wfastcgi.py > > However, running wfastcgi-enable.exe from an

[web2py] Re: How to customize login in web2py (include security check-up and ask for more information for signup?

2015-12-13 Thread Anthony
Please read the documentation, in particular, http://web2py.com/books/default/chapter/29/09/access-control#Customizing-Auth. On Sunday, December 13, 2015 at 11:12:00 PM UTC-5, RAGHIB R wrote: > > More information like, birthdate, gender and others. > -- Resources: - http://web2py.com -

[web2py] Re: How do I remove SQLITE and use MYSQL in web2py stepwise?

2015-12-13 Thread Anthony
On Sunday, December 13, 2015 at 11:14:49 PM UTC-5, RAGHIB R wrote: > > And what is capacity of MYSQL in web2py, as I heard capacity of sqlite is > just 5000 entries. > The capacity of MySQL in web2py is the same as its capacity anywhere else. Also, SQLite can most certainly handle well over

[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson
On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote: > > wfastcgi is now a module on PyPi > > after installing it, the scripts directory has wfastcgi.exe and an enable > executable: wfastcgi-enable.exe > There is no wfastcgi.py > > However, running wfastcgi-enable.exe from an

[web2py] Bug on checkboxes

2015-12-13 Thread Alfonso Serra
Hey i was creating a custom widget for a checkbox and i wanted to keep the value when the form doesnt validate. This is the declaration for the input: chk = request.post_vars[field.name] != None if chk: _input = INPUT(_type="checkbox", _name=field.name, _class="checkbox",

[web2py] Re: GAE and date query, where is the limit

2015-12-13 Thread Mathieu Clabaut
As a response to myself, with a date field, db((db.auth_user.end_date == end)).select() is working. I nonetheless would appreciate to know what is the expected status of the former query with datetime field on GAE. -Mathieu. On Sun, Dec 13, 2015 at 3:58 PM Mathieu Clabaut

[web2py] What is the code to delete an entry for a query from the database table?

2015-12-13 Thread RAGHIB R
As intuitive, 'delete' doesn't match for the keyword for deletion. -- 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

[web2py] Re: How do I remove SQLITE and use MYSQL in web2py stepwise?

2015-12-13 Thread RAGHIB R
Ok that's cool. Will SQLITE be good to design a social networking site or should I go for MYSQL? What's your opinion on it? On Monday, December 14, 2015 at 10:26:38 AM UTC+5:30, Anthony wrote: > > On Sunday, December 13, 2015 at 11:14:49 PM UTC-5, RAGHIB R wrote: >> >> And what is capacity of

[web2py] Re: using custom upload button when using SQLFORM

2015-12-13 Thread Anthony
Please show the code you are using to generate and process the form. On Monday, December 14, 2015 at 12:57:17 AM UTC-5, Jitun John wrote: > > I was trying to replace the Normal Upload button in {{form}} with a button > with nice jquery Browse/File button > >

[web2py] Re: How do I remove SQLITE and use MYSQL in web2py stepwise?

2015-12-13 Thread Anthony
On Monday, December 14, 2015 at 1:48:48 AM UTC-5, RAGHIB R wrote: > > Ok that's cool. Will SQLITE be good to design a social networking site or > should I go for MYSQL? What's your opinion on it? > It doesn't depend on the type of site but on the amount of traffic, so hard to say. You could

[web2py] Re: Bug on checkboxes

2015-12-13 Thread Anthony
Use the "value" argument instead of _checked: _input = INPUT(_type='checkbox', _name=field.name, _class='checkbox', value='on' if request.post_vars[field.name] != None else '') Anthony On Monday, December 14, 2015 at 12:33:39 AM UTC-5, Alfonso Serra wrote: > > Hey i was creating