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
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
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
--
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
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
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
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
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)
-
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
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
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
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:
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!
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)
-
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
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'),
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)
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
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!
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
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
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
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
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')
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
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,
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.
--
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
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
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
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
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
32 matches
Mail list logo