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


Groups > comp.lang.python > #34609

Re: MySQLdb insert HTML code error

Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'failing': 0.05; 'subject:code': 0.07; 'expected.': 0.09; 'worked.': 0.09; 'subject:error': 0.11; "wouldn't": 0.11; 'dec': 0.15; 'digest': 0.15; 'clear.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle.': 0.16; 'plus,': 0.16; 'wrote:': 0.17; 'appears': 0.18; 'question.': 0.20; 'trying': 0.21; 'smallest': 0.22; 'example': 0.23; 'mention': 0.23; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'starts': 0.29; "i'm": 0.29; 'worked': 0.30; 'figure': 0.30; 'code': 0.31; 'getting': 0.33; '11,': 0.33; 'exhibit': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'fail': 0.35; 'problem,': 0.35; 'especially': 0.35; 'received:209.85.220': 0.35; 'sometimes': 0.35; 'continue': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'url:org': 0.36; "didn't": 0.36; 'anything': 0.36; 'turn': 0.36; 'possible': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'description': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'your': 0.60; 'real': 0.61; 'is.': 0.62; 'become': 0.65; 'cut': 0.71; 'discover': 0.72; 'difference.': 0.84; 'easier,': 0.84; 'hardly': 0.84; 'cutting': 0.93
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:to :content-type; bh=1xIy6apdjf5fc+b8BjOFU8QanuScCn45/yQl9NdBFo8=; b=yGsqeati/kSzITq7+NzXJzJ3a1kO9IbT95pgxGIaa4D811tSUpJycVY50fIZdhlngh 4sE9EUhKUMlfuBFCnwI/hK/TorQNjMjxqx/Q3rqvmUgdxDnQITLbb02w9h+xJm2yhWCX 3PxbMBaxfw8VY1k4lYCyLQw4rDKgm8XCkh52NhTWFLRzKz3Onjg+k2r8A8M139Cavfa5 F53kVaE0jGwrgbROCid77Q7si53WXFHMsyXuGZXKLPhfgPBYAcqfEpYSbKkNjAbMFEFk /fj+br3NfhQvFRcZCW7HEGp3ttnQdJis5blmrDU/yaB5IUV30jieWKKiz+XLqd2ub8S8 YouA==
MIME-Version 1.0
In-Reply-To <CAKhY55OFzkf4V9d-bu6C5BkWYty1ptcdRKd1jM+8QUF3eKwr9g@mail.gmail.com>
References <CAKhY55Nfq7+CsjqrksdGYxODNYUvBSowXQYjZ6-FzxQeOgBnUQ@mail.gmail.com> <ka5u84$pij$1@ger.gmane.org> <CAKhY55ODkiru_2Vn4e=CNoKnvdaNehQ+4+XJ8xcPLsi9R+x=KA@mail.gmail.com> <ka5v4n$vu8$1@ger.gmane.org> <CAKhY55OFzkf4V9d-bu6C5BkWYty1ptcdRKd1jM+8QUF3eKwr9g@mail.gmail.com>
Date Tue, 11 Dec 2012 20:59:55 +1100
Subject Re: MySQLdb insert HTML code error
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.718.1355219999.29569.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1355219999 news.xs4all.nl 6925 [2001:888:2000:d::a6]:42380
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:34609

Show key headers only | View raw


On Tue, Dec 11, 2012 at 11:46 AM, Anatoli Hristov <tolidtm@gmail.com> wrote:
>> Brilliant, I think your problem is in line 97 of the code that you *HAVEN'T
>> QUOTED*.  Please go here, read and inwardly digest before you say anything
>> else http://www.sscce.org/
>
> :) I thought it was clear. the "spec" is the description and when the
> str"spec" contains the html code I'm getting an error, if you don't
> want to help then just don't become an..........

SSCCE starts with "Short". The HTML you unloaded into that email
hardly qualifies.

When you're trying to figure out a problem that appears to happen only
when you have X and not when you have Y, see what the smallest example
data for X and Y are that continue to exhibit the difference. It's way
easier, especially on those of us who might have been interested in
helping, had it been possible to paste your failing code into IDLE.
Plus, in cutting it down you might discover what the real cause of the
problem is.

Of course, sometimes you fail to cut something down as expected. In
this example, HTML didn't turn out to be the problem, so cutting it
down to "<html></html>" wouldn't have worked. But do at least _try_,
and then mention what worked and didn't work in your question.

ChrisA

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


Thread

Re: MySQLdb insert HTML code error Chris Angelico <rosuav@gmail.com> - 2012-12-11 20:59 +1100

csiph-web