Data Entry

Chris Angelico rosuav at gmail.com
Tue Jan 12 21:01:12 EST 2016


On Wed, Jan 13, 2016 at 12:52 PM,  <tdsperth at 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



More information about the Python-list mailing list