Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101586

Re: Data Entry

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Data Entry
Date Wed, 13 Jan 2016 13:01:12 +1100
Lines 12
Message-ID <mailman.88.1452650480.13488.python-list@python.org> (permalink)
References <6ea58259-05f8-40b5-8c85-46a69668c8e6@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 2bzNw4GKepGUdEZPw8Or1w8VH/6/jKulj1dUVXktQyiw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'jan': 0.11; 'wed,': 0.15; '"%s",': 0.16; '%s,': 0.16; '2016': 0.16; 'attribute,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ignores': 0.16; 'multi-word': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Entry': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'space.': 0.22; 'header:In-Reply- To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; '13,': 0.29; 'origin': 0.29; 'displayed': 0.33; 'quotes': 0.33; 'received:google.com': 0.35; 'text': 0.35; 'but': 0.36; 'instead': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'field': 0.60; 'save': 0.60; "you'll": 0.61; 'subject:Data': 0.66; 'chrisa': 0.84; 'escaping': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=pqM9FlNz8jqBHWD+O0TDst6qekfB7Gq79LOrv/hVJEE=; b=qMhY7pbVpyh9FsTF92lB0Q6JtS/MraEOpWmcll+5LHEYOVLRjUnBjxZlC5bXtYAU1F SOtaO82PyKmBTq3BC06NdPyXeoPeZ51tS+xykbmSQ7HrFQwrPjbmvdF/Gba76U/erlHD q+QGyIxllUlsALpY65SP8bGj3LoQ68LERPWNe13MMJStb2iFH+0fsoXoiMmKwKDGuytw 0hAsh7g+2bKKQNy8ZBJXzEW1Q7uFpKSPHtuq9csORS2c/9NlArKrbz5/JUOfbm2wzMmi rnsa5CDyImm9oW3EWMZsX9K5TOH3LpS1zXWj+utL3CI8CY2p4Gft3rFK6g9GIg8zdeYC BLAA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=pqM9FlNz8jqBHWD+O0TDst6qekfB7Gq79LOrv/hVJEE=; b=UDgOgxnMvtUWJKStG3quudSEYi/+ITbWNjON9ryGHzFZmU7GptwZcQjSK/bRPCWaqk 1QPPruUn2yrLdPXw9WMVo3+ptiosGUP0SyJQc3GttP7K3Ig7vwtfZf4UpgGC+HOxHshI /okGHHOpy+1pW4FB43jeLqWu+GIWKn7ql0YnDCK7FBrR1qrkU3PsTvF8ZVsdXr4xdn8L PDfdSWdc/FAqiXZxTVzFfKG2157fXiGE8ULuaNtopUXhp3GlRlYCAPazuEgNbweWLQQz 7itpy6fhRSwC2/uz16D6ThwUkZuqfHS/3ZIsGKKu3T5bYzTwyOdRhTBDpt5kJ0c5iLbQ 3qDg==
X-Gm-Message-State ALoCoQlcUAH6WoocbKvb/K5z9gkTRd9cg7eIh108WJAONYnJ/S9Afc9xEQugGk8lltFKpolv3TGCG1s2v4yLo1XMSkFMaixf6A==
X-Received by 10.50.66.179 with SMTP id g19mr22120734igt.94.1452650472267; Tue, 12 Jan 2016 18:01:12 -0800 (PST)
In-Reply-To <6ea58259-05f8-40b5-8c85-46a69668c8e6@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101586

Show key headers only | View raw


On Wed, Jan 13, 2016 at 12:52 PM,  <tdsperth@gmail.com> wrote:
> If i change the value from origin to origin energy and save - the value updated to the database is correct but when the page is re displayed it only
> shows origin in the text field - as if it ignores everything after the space.
>
> How do I make it display the full name.
>

To set a multi-word value as an HTML attribute, you'll need to put
quotes around it. You might be able to get away with using %r instead
of %s, or even just "%s", but proper escaping would be the best way.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Data Entry tdsperth@gmail.com - 2016-01-12 17:52 -0800
  Re: Data Entry Chris Angelico <rosuav@gmail.com> - 2016-01-13 13:01 +1100
  Re: Data Entry tdsperth@gmail.com - 2016-01-12 18:58 -0800
  Re: Data Entry Peter Otten <__peter__@web.de> - 2016-01-13 12:21 +0100
  Re: Data Entry Chris Angelico <rosuav@gmail.com> - 2016-01-13 22:29 +1100

csiph-web