Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'duplicate': 0.07; 'preference': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'system;': 0.09; 'usability,': 0.09; 'wrote': 0.14; '*must*': 0.16; 'defer': 0.16; 'earlier.': 0.16; 'file).': 0.16; 'guilty': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'selects': 0.16; 'skip:n 70': 0.16; 'stored.': 0.16; 'subject:GUI': 0.16; 'subject:library': 0.16; 'valid.': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'everyone,': 0.19; 'resend': 0.19; 'thu,': 0.19; 'entered': 0.20; 'seems': 0.21; 'input': 0.22; 'diverse': 0.24; 'sends': 0.24; 'question': 0.24; 'header:X -Complaints-To:1': 0.27; 'record': 0.27; 'absolute': 0.30; "skip:' 10": 0.31; '13,': 0.31; 'apparently': 0.31; 'comments,': 0.31; 'post.': 0.31; 'with,': 0.31; 'figure': 0.32; '(e.g.': 0.33; 'could': 0.34; 'board': 0.35; 'case,': 0.35; 'but': 0.35; 'there': 0.35; 'done': 0.36; 'being': 0.38; 'server': 0.38; 'checks': 0.38; 'form,': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'previous': 0.38; 'anything': 0.39; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'ensure': 0.60; 'even': 0.60; 'easy': 0.60; 'entire': 0.61; 'simply': 0.61; 'field': 0.63; 'telling': 0.64; 'more': 0.64; 'account': 0.65; 'talking': 0.65; 'capable': 0.67; 'frank': 0.68; 'this...': 0.84; 'obvious,': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Frank Millman" Subject: Re: Future standard GUI library Date: Fri, 14 Jun 2013 07:39:08 +0200 References: <20130522154233.fe5263cb231c375fc60c7c9b@gmx.net><20130523174145.22a6c46f586b0a1f656d2412@gmx.net><20130526194310.9cdb1be80b42c7fdf0ba502f@gmx.net><20130527172250.a8b0ce44f29398d63a4ec650@gmx.net><20130530184045.6d15530be70e18d96e5654ad@gmx.net><20130601201817.55d3361dda93dac387a9eab6@gmx.net><20130612222819.2a044e86ab4b6defe1939a04@gmx.net> X-Gmane-NNTP-Posting-Host: 197.87.30.6 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.4657 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371188363 news.xs4all.nl 15983 [2001:888:2000:d::a6]:57775 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48065 "Chris Angelico" wrote in message news:CAPTjJmo+fWsCD3Lb6s+zmWspKzzk_JB=pbcvfLBZjGCFxvM9HA@mail.gmail.com... > On Thu, Jun 13, 2013 at 7:32 PM, Frank Millman wrote: >> I am talking about what I call 'field-by-field validation'. Each field >> could >> have one or more checks to ensure that the input is valid. Some can be >> done >> on the client (e.g. value must be numeric), others require a round-trip >> to >> the server (e.g. account number must exist on file). Some applications >> defer >> the server-side checks until the entire form is submitted, others perform >> the checks in-line. My preference is for the latter. > > It's not either-or. The server *MUST* perform the checks at the time > of form submission; the question is whether or not to perform > duplicate checks earlier. This is an absolute rule of anything where > the client is capable of being tampered with, and technically, you > could violate it on a closed system; but it's so easy to migrate from > closed system to diverse system without adding all the appropriate > checks, so just have the checks from the beginning. > In my case, it is either-or. I do not just do field-by-field validation, I do field-by-field submission. The server builds up a record of the data entered while it is being entered. When the user selects 'Save', it does not resend the entire form, it simply sends a message to the server telling it to process the data it has already stored. > In terms of software usability, either is acceptable, but do make sure > the user can continue working with the form even if there's latency > talking to the server - don't force him/her to wait while you check if > the previous field was valid. I know that seems obvious, but > apparently not to everyone, as there are forms out there that violate > this... > I plead guilty to this, but I am not happy about it, hence my original post. I will take on board your comments, and see if I can figure out a way to have the best of both worlds. Frank