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: 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> <65a098bd-4fc7-4df6-9436-3d084b810f22@googlegroups.com> <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, Sep 16, 2012 at 3:26 AM, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1= =F2 wrote: > aahhh! alo it needed change to > > page =3D 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 .htacc= ess > > 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=3Dbroken 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