[web2py] bug in IS_NOT_EMPTY() ?

2014-12-04 Thread Francisco Ribeiro
hi there, I noticed that when I use the IS_NOT_EMPTY() validator on a boolean field (i.e. a form checkbox) that it will not allow me to submit the form with this field as not checked / unticked. In my opinion, this is a wrong interpretation of what is an empty value, since a checkbox can only

Re: [web2py] bug in IS_NOT_EMPTY() ?

2014-12-04 Thread Kiran Subbaraman
I see this as IS_NOT_EMPTY() working correctly. And why would you attach this validator to a checkbox/boolean field? Did you also assign a default value of False? Or you would need to check request.args for this field, and assign a false if it is empty, before passing it along to the validator

[web2py] bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Anthony
If a boolean widget can only be true or false and never empty, then there is no need for this validator to begin with, so just remove it. Are you suggesting that the validator itself should be changed to always return success for booleans? If so, what would be the point? Anthony --

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Francisco Ribeiro
Kiran, I did not assign the default value of False explicitly but implicitly since it's already the default. Anthony, I understand the interpretation currently in place but if you think about this, validators are supposed to accept allowed values *first* and reject all others. True and False

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Anthony
Note, the problem is not with the validator -- if you pass it the value False, it will successfully validate. The issue is that when a checkbox is not checked, the browser sends nothing back for that form field (it does not send back a value of False), so the value passed to the validator ends

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Francisco Ribeiro
Anthony, this is what I'm doing now. I am aware of that, the problem starts on the interpretation given to the request sent by the browser for checkboxes for these fields which I thought it should be if it is toggled means True, if not it means False. I do understand however that for most

Re: [web2py] Re: Web2py's included connection pooling VS external pooling software

2014-12-04 Thread Lisandro Rostagno
2014-12-03 14:16 GMT-03:00 Michele Comitini michele.comit...@gmail.com: why not flup? - not event based. Event based servers are usually more responsive under load. - seems pretty unmantained. - misses some tuning options. I see. I've read a little about gevent and I understand that it

[web2py] SQLFORM.grid stylize

2014-12-04 Thread Yebach
Hello What is the best way to stylize my SQLFORM.grid form E.g.: my dropdown field is smaller the others also the edit form is as wide as the page I would like to reduce the size, etc. thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Sticky sessions in a distributed environment

2014-12-04 Thread Louis Amon
Note, aside from adding a few lines in the admin app to have its sessions stored in the db, another option might be to edit the handler file used to start web2py. In that file, you should be able to do something like this: from gluon.settings import global_settings

[web2py] Re: web2py and pylint

2014-12-04 Thread Leonel Câmara
This pylint plugin by Derek seems pretty good https://pypi.python.org/pypi/pylint-web2py/0.1.1 I have to check how to make SublimeLinter use it because it does get annoying. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Anthony
I'm not sure I follow. What would an IS_CHECKED validator do? If the purpose is to ensure a box is checked, then you can already use IS_EQUAL_TO(True). But that's not the behavior you were looking for. You wanted the validation to succeed whether or not the box was checked, and the problem

Re: [web2py] Re: Sticky sessions in a distributed environment

2014-12-04 Thread Anthony
On Thursday, December 4, 2014 9:21:22 AM UTC-5, Louis Amon wrote: Note, aside from adding a few lines in the admin app to have its sessions stored in the db, another option might be to edit the handler file used to start web2py. In that file, you should be able to do something like this:

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-04 Thread Peter Christy
I hope to be there. On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: *Massimo Di Pietro, web2py's originator, will attend our own Bay Area* *web2py meetup* to meet, greet and present. Additional talks by Dexter Hadley, of Stanford University and Richard Gordon, of YAKiToMe!

[web2py] Consent Form

2014-12-04 Thread smriti7545
I have submitted my parental consent form and ID proof but only id proof has been verified. Can u tell me that are all my forms verified or not. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Deploying web2py website

2014-12-04 Thread PZ R
Thanks for replying :) can I deploy it on a server that's on LiteSpeed? and in terms of managing the website would instant press work ? Thank you :) On Thursday, December 4, 2014 10:21:24 AM UTC+10:30, Massimo Di Pierro wrote: You can use any web hosting service but this one is the

[web2py] How to use crud.select(db, query) to extract values in db table

2014-12-04 Thread Gideon George
This is my db db = DAL('sqlite://storage.sqlite') db.define_table('entry', Field('name'), Field('location'), Field('state_of_origin'), Field('local_govt'), Field('file', 'upload'),

[web2py] Suggestions for handling special html tags in web2py when variables are being processed?

2014-12-04 Thread flobro30101
I have an antique Zope app that I would like to Try to convert to Web2py. I would like to add the custom zope dtml-... tags and hook into the process so I can convert the tags real-time. Just looking to see if anyone has extended the processing or has suggestions (other than you are nuts)

[web2py] Re: Built-in web2py Wiki, wrong URL with Apache 2.4 mod_proxy

2014-12-04 Thread Daniel Vogel
Hi I checked the HTML page source. The problem is related to a absolute URL in the HTML code. The link comes from Media (png Image): https://lh6.googleusercontent.com/-hXxCU0HfDoM/VIBW8a5UxNI/AAk/wWBNRlhXeUU/s1600/web2py-wiki.png h2Diverses/h2ppage content/ppa href=1024px

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-04 Thread Feng Yu
I'll be there! Yu On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: *Massimo Di Pietro, web2py's originator, will attend our own Bay Area* *web2py meetup* to meet, greet and present. Additional talks by Dexter Hadley, of Stanford University and Richard Gordon, of YAKiToMe!

[web2py] Re: web2py RESTful timeout

2014-12-04 Thread Bart
This didn't fix my problem. It worked for several days, but now I cant communicate to my server using RESTful services. I'm sure if I load the website from a browser it will start working again. This is very frustrating! It sure seems like the RESTful service goes into some type of sleep

Re: [web2py] Re: Sticky sessions in a distributed environment

2014-12-04 Thread Louis Amon
I'm not too familiar with Heroku, but according to the little documentation I have seen, the filesystem should persist until the dyno restarts or is shut down. Does it really just reset randomly? In theory you would be correct. The doc says that it resets on restarts or upon stopping a

[web2py] Error handler and request_uri

2014-12-04 Thread Jim S
I am using the technique shown here (http://web2py.com/books/default/chapter/29/04/the-core?#Routes-on-error) to send email notifications when a ticket is generated for my app. I'm getting different behaviors on my development and test environments. Test environment: web2py version

[web2py] Re: Suggestions for handling special html tags in web2py when variables are being processed?

2014-12-04 Thread Anthony
What do you mean by hook into the process so I can convert the tags real-time? What exactly are you proposing to do? Can you show some sample code? On Thursday, December 4, 2014 10:03:35 AM UTC-5, flobr...@gmail.com wrote: I have an antique Zope app that I would like to Try to convert to

[web2py] signup and login with ajax.

2014-12-04 Thread Avi A
Hi, Is it possible to replace the default signup and login forms with a customized ajax post? like: ajax(some_sign_upcontroller.load?email=a...@gmail.comname=namepassword=password, '', 'welcome') ajax(some_log_in_controller.load?email=a...@gmail.compassword=somepassword,'', 'welcome again')

[web2py] Re: long running rpc call

2014-12-04 Thread Tim Richardson
It's surprising how hard it is to find out when the GIL is actually locked. Just because some IO is blocking doesn't mean the GIL is locked, and if the GIL is not locked then other requests should be processed because other threads will be run. Your blocked thread waits, but as long as the GIL

[web2py] Re: Error handler and request_uri

2014-12-04 Thread Jim S
Fixed my issue by using: requested_uri = request._var.requested_uri instead of: requested_uri = request.env.request_uri ...in my error_handler controller method. Not sure if a clarification is necessary in The Book, or if I just interpreted it incorrectly. -Jim On Thursday, December 4,

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-04 Thread weheh
There will be wifi access through UC Berkeley conference services. I'm not familiar with it but I'm getting some instructions emailed to me. I'm told it will require you providing some personal info, like a conference would. That's as much as I can say until I get those instructions. --

[web2py] Re: Error handler and request_uri

2014-12-04 Thread Anthony
Looking at the rewrite code, it appears that when an error occurs and there is no router being used (as in your development environment), the request.env.request_uri value does not get changed from its original value -- so when the routes_onerror action is called, it sees the original

[web2py] Re: Error handler and request_uri

2014-12-04 Thread Anthony
On Thursday, December 4, 2014 4:38:33 PM UTC-5, Jim S wrote: Fixed my issue by using: requested_uri = request._var.requested_uri instead of: requested_uri = request.env.request_uri ...in my error_handler controller method. Not sure if a clarification is necessary in The Book, or if I

Re: [web2py] Re: Error handler and request_uri

2014-12-04 Thread Jim Steil
Thanks Anthony. I'll submit a ticket on it tomorrow. Will reference this discussion. Jim -- 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

[web2py] Re: Getting Log details

2014-12-04 Thread Dave S
On Sunday, November 30, 2014 10:49:54 PM UTC-8, Research Kamal wrote: Hi anybody knows how to view the log details in web2py framework? Let me know, i am waiting for the reply The httpserver.log file is in the web2py directory. I can look at mine with less. For the user management

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-04 Thread Volodymyr Strelchuk
I hope to be there Volodymyr -- 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