Hello
OK can smbd. explains this S4!#T to me.
I am sending json string from my view to controller. in
request.vars['value'] there is a string /dict and for easier handling I
want to convert it to a dict.
Now this code works.
def saveAsFormData():
import json
#data =
that's probably why then. in that configuration killing the master process
leaves zombies behind,.
On Thursday, July 24, 2014 6:37:29 PM UTC+2, Tim Richardson wrote:
I used nssm and added four instances of the appname to the command line to
create multiple workers.
--
Resources:
-
Il 25/07/14 09:22, Yebach ha scritto:
type 'exceptions.TypeError' expected string or buffer
in line data_dict = json.loads(data)
WHY?? why does insert or smth crashes it on line before it is
executed???
can you paste a print of your data variable value just before the code
Found the problem
The error was the second call for json object when I got an error in
console, so I went to check the error folder in app. Looks like I have a
date parse problems.
2014-07-25 10:08 GMT+02:00 Manuele Pesenti manuele.pese...@gmail.com:
Il 25/07/14 09:22, Yebach ha scritto:
I'm trying to improve user exprerience on my website and I noticed a rather
annoying behavior on password fields :
If I type a password longer than 8 characters and somehow my form fails
(some other field didn't validate), my password gets replaced by
in request.vars.password.
For
nginx will need a VPS so i'll stick to CGI for prototyping and buy some
time for a new hosting service.
In the book an option for Some web hosting services do not support
mod_wsgi. In this case, we must use Apache as a proxy and forward all
incoming requests to the web2py built-in web server
so you really want the webpage to return the actual password instead of
asterisks ? it's a big security risk, no matter what user experience
says.
On Friday, July 25, 2014 10:53:40 AM UTC+2, Louis Amon wrote:
I'm trying to improve user exprerience on my website and I noticed a
rather
I don't see much of a security threat here.
What's the worst-case scenario ?
If you take a look at airbnb.com, their registration form keeps your typed
password even if you fail validation on other fields.
If a website that big can do it then surely my small website will pull though,
don't you
A simple google search will yield people complaining about their host
accounts getting hacked on airbnb.
Just because someone or something large 'does it that way' doesn't mean
it's a best practice!
On Friday, July 25, 2014 9:08:00 AM UTC-4, Louis Amon wrote:
I don’t see much of a security
We're all developers here so I couldn't agree more.
Still, I'm running a commercial website so I'm a slave to what my users want.
As far as my customers are concerned, security comes second after ease of use...
Anyway, you have to admit that the examples I gave in the first post are
misleading
On Thursday, July 24, 2014 9:55:10 PM UTC-4, Jesse Ferguson wrote:
Oh and the conditional problem is that I would like to populate items,
Like if you chose a city that's in the database it would auto populate the
state input because the city table has a reference to the state..
See
*I can see one : erasing input fields after each validation failure (blank
fields are less misleading). Do you see other ?*
That's the one I've always understood to be the most secure - blank all the
fields and don't indicate which field failed.
On Friday, July 25, 2014 9:32:03 AM UTC-4, Louis
I think common practice is to leave password fields blank after a login
failure so the password must be re-entered.
In any case, I cannot replicate either behavior you describe using the
standard web2p Auth forms. When I have a failed login, the entire login
form is reloaded emtpy. When I
@Anthony: Indeed, I forgot to add that I'm using auth forms through ajax via
LOAD. The problem may be due to ajax's JSON conversion of request.vars.
Le 25 juil. 2014 à 15:52, Anthony abasta...@gmail.com a écrit :
I think common practice is to leave password fields blank after a login
failure
I still cannot replicate the behavior you observe. Can you show your code
or attach a minimal app that demonstrates the behavior?
Anthony
On Friday, July 25, 2014 9:56:38 AM UTC-4, Louis Amon wrote:
@Anthony: Indeed, I forgot to add that I’m using auth forms through ajax
via LOAD. The
Do you guys need an example application where this problems happens?
--
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
Jesse here's an example of way to do it I posted a long time ago:
https://groups.google.com/d/msg/web2py/z_lGYsO6LKE/mDNm3DQ4DVUJ
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
After much research I found the trigger to replicate the issue :
db.auth_user.password.widget = lambda k,v: SQLFORM.widgets.password.widget(k
, v, _id=login_password, _class=input-basic input-200)
If you type a password longer than 8 characters and the validation fails,
your password will be
Dear villas,
You said:
I suppose that my proposal to use shlex would really apply to Peter's
suggestion.
I guess it might also be considered for use in the build_query function of
sqlhtml.py.
Shlex seems like a great way of using quotes to contain search phrases. I
guess Google
I still don't see the behavior for login, but for registration, you can try:
db.auth_user.password.widget = lambda k,v: SQLFORM.widgets.password.widget(k
,
None, _id=login_password, _class=input-basic input-200)
Anthony
On Friday, July 25, 2014 10:35:18 AM UTC-4, Louis Amon wrote:
After
Well, I like your idea. Do you think you could post it to web2pyslices?
On Tuesday, July 8, 2014 8:16:12 PM UTC-7, Francisco Ribeiro wrote:
Derek,
that bit where you mention hooking run-time validation to be saved, is
pretty much what I’m doing in my post. You need to consider that you might
I don't get it. Why exactly are you passing around json? Your usage doesn't
warrant it, and it looks like it is causing you problems. Why not send it
like regular x-www-form-urlencoded?
On Friday, July 25, 2014 1:17:11 AM UTC-7, Yebach wrote:
Found the problem
The error was the second call
Glad you fixed it, sorry to hear you are stuck with mySQL. your my.cnf file
controls how many connections are allowed.
On Thursday, July 24, 2014 9:34:20 PM UTC-7, Dmitry Ermolaev wrote:
SOLVED!
I update mySQL to 5.6.19 vers!
понедельник, 14 июля 2014 г., 15:06:03 UTC+4 пользователь
Look up the maximum entity size, I believe it's around 1MB, so that would
make storing the data in the Cloud Datastore or as a blob, impossible.
On Wednesday, July 23, 2014 2:27:29 AM UTC-7, Giacomo Dorigo wrote:
Hello everybody,
I am writing an app for storing and delivering files more or
That's a very elegant solution.
Thank you Anthony.
On Friday, July 25, 2014 8:01:53 PM UTC+2, Anthony wrote:
I still don't see the behavior for login, but for registration, you can
try:
db.auth_user.password.widget = lambda k,v: SQLFORM.widgets.password.widget
(k,
None,
thanks!
http://www.web2pyslices.com/slice/show/1983/auto-update-db-records-behaviour-per-input-field-on-release
Cheers,
Francisco
On 25 Jul 2014, at 19:31, Derek sp1d...@gmail.com wrote:
Well, I like your idea. Do you think you could post it to web2pyslices?
On Tuesday, July 8, 2014
It appears that this issue will affect web2py on windows development and
basically all the css files get ignored so its rather obvious its a problem:
http://code.google.com/p/googleappengine/issues/detail?id=11001
and putting the stuff below into the top of the handlers section of
app.yaml
I've got a fairly substantial page with a lot of data in it that I don't
want to keep reloading the page so I'm using the AJAX function provided
with web2py and pulling the data from a SQLFORM used in the view page.
Question I have is, I'm using validate_and_insert function, I was wondering
is
I just updated this entry because I had some irrelevant code there / code
missing to make it easily reproducible. Hopefully, should be fine now..
Francisco
On 25 Jul 2014, at 21:54, Francisco Gama francisco@gmail.com wrote:
thanks!
29 matches
Mail list logo