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


Groups > comp.lang.python > #29264

Re: cannot concatenate 'str' and 'list' objects

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; '16,': 0.03; 'rewrite': 0.07; "subject:' ": 0.07; 'decision.': 0.09; 'doing?': 0.09; 'issue:': 0.09; 'sep': 0.09; 'spelling': 0.09; 'language,': 0.11; 'ignore': 0.13; 'charset:iso-8859-7': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "isn't.": 0.16; 'tempted': 0.16; 'wrote:': 0.17; 'issue,': 0.17; 'variables': 0.17; 'solution.': 0.18; 'trying': 0.21; 'received:209.85.214.174': 0.21; 'work.': 0.23; 'needed.': 0.23; 'posts': 0.23; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'probably': 0.29; "i'm": 0.29; 'usually': 0.30; 'expect': 0.31; 'could': 0.32; 'impression': 0.33; 'reputation': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'needed': 0.35; 'solving': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'problems': 0.36; 'bad': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'nothing': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'takes': 0.39; 'header:Received:5': 0.40; 'your': 0.60; "you've": 0.61; 'first': 0.61; 'free': 0.61; "you'll": 0.62; 'time,': 0.62; 'truly': 0.62; 'results': 0.65; 'hours': 0.66; 'study': 0.66; 'walk': 0.71; 'yourself': 0.77; 'gain': 0.79; 'cube,': 0.84; 'reap': 0.84; 'riding': 0.84; 'road.': 0.84; 'careful': 0.91; 'difficult,': 0.91; 'magical': 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:content-transfer-encoding; bh=s1L6wYx6o4Amu6sWaYvxElxvuT1HCA1lrcLdFHd5sLs=; b=nLsN+DM03lqXOjkYVst4aRCexiu90VfNq9BIs7QGvMb7jiLmw0zc3kQBgDwrEoarn7 E//R9NFXp4HZHeZ+ub4nu55RSsAqPr/emCc0DS70XxPAe3rK3OYon5lvOpLRx3iaIIIB D2/m2ZfjO0iHLpYPJnzXfE37BPj8uSyd5pxNxoieboEWrqtvwkwauKjPv7mj6dZ83onQ ao30hwPm48onk5ilXeloe9A4HJh8ViYgS0gXmuBfKOhS5rf9X1kADoAHnEGdsZNA6byB ak5RZvi/u5MFeQFgFnVM58rwGwQiQAx+3bH0evqk+5FOcaF5ZYzvwYqOhXfPze84R2nM BbCw==
MIME-Version 1.0
In-Reply-To <6d5a37e2-c7f4-440c-bff7-53298a367453@googlegroups.com>
References <071ad036-77ca-42d3-b68d-0dd3e3fac43e@googlegroups.com> <9c166e95-e70f-4294-833b-1071a24c6d6d@googlegroups.com> <mailman.757.1347723857.27098.python-list@python.org> <65a098bd-4fc7-4df6-9436-3d084b810f22@googlegroups.com> <mailman.761.1347726315.27098.python-list@python.org> <e2b81b76-03c1-4ebb-a458-678997afe865@googlegroups.com> <mailman.764.1347728190.27098.python-list@python.org> <38625eb0-3072-44f8-98db-cf112c1f1159@googlegroups.com> <6d5a37e2-c7f4-440c-bff7-53298a367453@googlegroups.com>
Date Sun, 16 Sep 2012 03:42:53 +1000
Subject Re: cannot concatenate 'str' and 'list' objects
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-7
Content-Transfer-Encoding quoted-printable
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.769.1347730976.27098.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347730976 news.xs4all.nl 6853 [2001:888:2000:d::a6]:51908
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29264

Show key headers only | View raw


On Sun, Sep 16, 2012 at 3:26 AM, Νικόλαος Κούρας <nikos.gr33k@gmail.com> wrote:
> aahhh! alo it needed change to
>
> page = form.getvalue('htmlpage')
>
> now its working! at last!
>
> but can you please tell me what was wrong?
>
> Tha names of the variables was the same both in counter.py and the .htaccess
>
> But why was that confusing?

This is what I'm trying to explain. You need to get to know what's
really happening; what is the rewrite rule doing? I could walk you
through it, there's nothing magical about it, but you really need to
study it for yourself so that you actually understand what's going on.

You've now solved your immediate issue, so you'll probably be tempted
to ignore everything else and move on. And if you're on time pressure,
that's perhaps the right decision. (Five hours and you have a fully
working solution. Not bad for free assistance!) But you still have the
page-breaking issue:

http://superhost.gr/?htmlpage=broken

And there's still the question of whether or not the hidden form field
is needed. I suspect it probably isn't. But these are questions for
you to work out the answers to yourself.

I get an impression from your posts that you're working shallowly, and
probably in some haste. Your posts are somewhat sloppy in spelling and
capitalization; I understand that English probably isn't your first
language, but careful writing is not difficult, and you'll spare
yourself the reputation of sloppy work and sloppy thinking.

It takes time to truly master anything. Whether it's riding a bicycle,
solving Rubik's Cube, or building a web site, you'll need to put in
some hours before you can truly expect to comprehend your work. Trying
to short-cut that usually results in problems down the road. Put in
the time, gain the skill, and you'll reap the rewards!

ChrisA

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


Thread

cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 05:22 -0700
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 05:26 -0700
  Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-15 22:33 +1000
    Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 06:28 -0700
      Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-15 23:38 +1000
        Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 06:53 -0700
          Re: cannot concatenate 'str' and 'list' objects Peter Otten <__peter__@web.de> - 2012-09-15 16:29 +0200
            Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 07:51 -0700
              Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 00:55 +1000
            Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 07:51 -0700
        Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 06:53 -0700
          Re: cannot concatenate 'str' and 'list' objects Roy Smith <roy@panix.com> - 2012-09-15 10:21 -0400
            Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 07:44 -0700
              Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 00:49 +1000
              Re: cannot concatenate 'str' and 'list' objects Roy Smith <roy@panix.com> - 2012-09-15 11:01 -0400
                Re: cannot concatenate 'str' and 'list' objects Chris Gonnerman <chris@gonnerman.org> - 2012-09-15 11:09 -0500
    Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 06:28 -0700
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 07:56 -0700
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 08:01 -0700
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 08:06 -0700
    Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 01:23 +1000
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 08:23 -0700
    Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 01:44 +1000
      Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 09:04 -0700
        Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 02:25 +1000
          Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 09:53 -0700
            Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 02:56 +1000
              Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:22 -0700
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:26 -0700
                Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 03:42 +1000
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:59 -0700
                Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 04:02 +1000
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 11:10 -0700
                Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 09:11 +1000
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 11:10 -0700
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:59 -0700
                Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:26 -0700
              Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 10:22 -0700
          Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 09:53 -0700
      Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 09:04 -0700
    Re: cannot concatenate 'str' and 'list' objects Chris Gonnerman <chris@gonnerman.org> - 2012-09-15 11:13 -0500
  Re: cannot concatenate 'str' and 'list' objects Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2012-09-15 08:33 -0700
    Re: cannot concatenate 'str' and 'list' objects Chris Angelico <rosuav@gmail.com> - 2012-09-16 01:46 +1000

csiph-web