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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 4:10 AM, Νικόλαος Κούρας wrote: > ah yes in the index.html page yes...yes i totally forgot about that, that > bwas before creating the python counter logging when i was thinking other > ways of solving this matter. So it's like I was saying, redundant. :) > What about t

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 9:03:00 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Sun, Sep 16, 2012 at 3:59 AM, Νικόλαος Κούρας > wrote: > > > What hidden form value? > > > > > > you mean page variable does not needed? please clarify. > > > > > > Also i dont know what to do if someo

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 3:59 AM, Νικόλαος Κούρας wrote: > What hidden form value? > > you mean page variable does not needed? please clarify. > > Also i dont know what to do if someone enters a false entry as content for > htmlpage. You have this: What is that for? Is it needed? ChrisA -- ht

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

2012-09-15 Thread Νικόλαος Κούρας
What hidden form value? you mean page variable does not needed? please clarify. Also i dont know what to do if someone enters a false entry as content for htmlpage. -- http://mail.python.org/mailman/listinfo/python-list

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 3:26 AM, Νικόλαος Κούρας 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 wa

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 8:22:39 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:56:31 μ.μ. UTC+3, ο χρήστης Chris Angelico > έγραψε: > > > On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας > > wrote: > > > > > > > The 'page' form field is of couse ne

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:56:31 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας > wrote: > > > The 'page' form field is of couse neccessary because how else the python > > counter.py script would know which html file triggered it so to pr

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας wrote: > The 'page' form field is of couse neccessary because how else the python > counter.py script would know which html file triggered it so to present it > and do its log thing?(i intend to create a few html files) > > I still do not see why

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:25:15 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: First, decide whether or not you need the 'page' form > > field. Either it's redundant or it's necessary. > > > > 1) If it's redundant: Easy. Delete it. Your page will begin working again. > > 2) If it's nece

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

2012-09-15 Thread Chris Gonnerman
On 09/15/2012 10:23 AM, Νικόλαος Κούρας wrote: I swicthed back my code to: f = open( '../' + page ) and http://superhost.gr works which means that line gets parsed correctly. Only when i post data to the text area boxes iam getting the error: cannot concatenate 'str' and

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 2:04 AM, Νικόλαος Κούρας wrote: > I'am not sure what to do and i didnt quite understand what the problem is. > > Can you please tell me what parts need fixe so for the users to be able to > leave remakrs in he text area boxes? Your question demonstrates a more fundamental

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

2012-09-15 Thread Chris Gonnerman
I moved to HostGaot because i heard there were the best in the hosting business. They are pretty good. However, you have to understand the site layout to do CGI safely. So long as your script are .cgi, putting them in ~/public_html is fine. If you need to deploy .py files, you need to pu

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

2012-09-15 Thread Νικόλαος Κούρας
I'am not sure what to do and i didnt quite understand what the problem is. Can you please tell me what parts need fixe so for the users to be able to leave remakrs in he text area boxes? -- http://mail.python.org/mailman/listinfo/python-list

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 1:33 AM, Νικόλαος Κούρας wrote: > You are right but iam a new python learner and i created this logging system > script as a poject to better learn the lalguage itself. > > I can always use google analytics for serious visitor logging. > > Apart from that i enjoy reading

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 1:23 AM, Νικόλαος Κούρας wrote: > I swicthed back my code to: f = open( '../' + page ) > > and http://superhost.gr works which means that line gets parsed correctly. > > Only when i post data to the text area boxes iam getting the error: > &g

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

2012-09-15 Thread Νικόλαος Κούρας
You are right but iam a new python learner and i created this logging system script as a poject to better learn the lalguage itself. I can always use google analytics for serious visitor logging. Apart from that i enjoy reading my logs by typing: http://superhost.gr/?show=log :-) -- http://m

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

2012-09-15 Thread Νικόλαος Κούρας
I swicthed back my code to: f = open( '../' + page ) and http://superhost.gr works which means that line gets parsed correctly. Only when i post data to the text area boxes iam getting the error: cannot concatenate 'str' and 'list' objects how is this possib

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 1:06 AM, Νικόλαος Κούρας wrote: > Previous webhost has the same flaw as well, look: > > http://www.errorweb.gr/~nikos/cgi-bin/ > > giving away all my scripts. > > Webhost misconfiguration in both hosts! And when I look at the scripts, I see things that do not fill me with

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

2012-09-15 Thread Νικόλαος Κούρας
Previous webhost has the same flaw as well, look: http://www.errorweb.gr/~nikos/cgi-bin/ giving away all my scripts. Webhost misconfiguration in both hosts! -- http://mail.python.org/mailman/listinfo/python-list

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

2012-09-15 Thread Roy Smith
In article , Íéêüëáïò Êïýñáò wrote: > I cant beleive that my source code can be seen form ANYONE this easily Which is why I pointed it out. I mean no disrespect, but you appear to be in over your head. That's fine (we're all in over our heads at some point, that's how we learn new thing

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

2012-09-15 Thread Νικόλαος Κούρας
The .htaccess file works with HostGator because the page was working all day rediecting all html requests fine to the counter.py script. Only when i tried to post data to the text area boxes this problem made its appearance. -- http://mail.python.org/mailman/listinfo/python-list

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

2012-09-15 Thread Νικόλαος Κούρας
Thank i will do that, ill inform the support right away! -- http://mail.python.org/mailman/listinfo/python-list

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 12:51 AM, Νικόλαος Κούρας wrote: > in my case an .htaccess file gives redirects all html requests to > /cgi-bin/counter.py by also provide as an argument to the counter.py script > the initical html file request > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} -f >

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

2012-09-15 Thread Νικόλαος Κούρας
in my case an .htaccess file gives redirects all html requests to /cgi-bin/counter.py by also provide as an argument to the counter.py script the initical html file request RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?page=$1 [L,PT,QSA] so th

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

2012-09-15 Thread Chris Angelico
On Sun, Sep 16, 2012 at 12:44 AM, Νικόλαος Κούρας wrote: > Τη Σάββατο, 15 Σεπτεμβρίου 2012 5:21:22 μ.μ. UTC+3, ο χρήστης Roy Smith > έγραψε: >> Do you realize that the hosting service you're using (HostGator) is so >> mis-configured that it is exposing your source code and credentials to >> the e

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 5:21:22 μ.μ. UTC+3, ο χρήστης Roy Smith έγραψε: > In article , > > > > > i see you try to extract only the 1st element of the list, i tried that too > > > but it gives me now this weird message: > > > > > > if you visit my website http://superhost.gr > > >

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

2012-09-15 Thread Peter Otten
Νικόλαος Κούρας wrote: > Τη Σάββατο, 15 Σεπτεμβρίου 2012 4:38:51 μ.μ. UTC+3, ο χρήστης Chris > Angelico έγραψε: >> On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας >> wrote: >> >> > Iam not using frameworks just plain python code written in Notepad++ >> >> > >> >> > Can you please tell me how

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

2012-09-15 Thread Roy Smith
In article , > i see you try to extract only the 1st element of the list, i tried that too > but it gives me now this weird message: > > if you visit my website http://superhost.gr Do you realize that the hosting service you're using (HostGator) is so mis-configured that it is exposing your so

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 4:38:51 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας > wrote: > > > Iam not using frameworks just plain python code written in Notepad++ > > > > > > Can you please tell me how to switch this line in order for

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

2012-09-15 Thread Chris Angelico
On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας wrote: > Iam not using frameworks just plain python code written in Notepad++ > > Can you please tell me how to switch this line in order for this line to work? f = open( '../' + page[0]) will possibly work. But do try to understand what's happen

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

2012-09-15 Thread Сахнов Михаил
f = open( '../' + page.pop() ) 15.09.2012 17:32 пользователь "Νικόλαος Κούρας" написал: > Τη Σάββατο, 15 Σεπτεμβρίου 2012 3:34:34 μ.μ. UTC+3, ο χρήστης Chris > Angelico έγραψε: > > On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας > wrote: > > > > > Hello, > > > > > > > > > > I recently changed

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

2012-09-15 Thread Νικόλαος Κούρας
Τη Σάββατο, 15 Σεπτεμβρίου 2012 3:34:34 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: > On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας > wrote: > > > Hello, > > > > > > I recently changed webhost and in the new one iam getting this error you > > can see if you visit http://superhost.gr whe

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

2012-09-15 Thread Chris Angelico
On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας wrote: > Hello, > > I recently changed webhost and in the new one iam getting this error you can > see if you visit http://superhost.gr when program execution reaches the line: > >f = open( '../' + page ) > > In the previous host i wasn't gett

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

2012-09-15 Thread Νικόλαος Κούρας
page = ['index.html', 'index.html'] : cannot concatenate 'str' and 'list' objects args = ("cannot concatenate 'str' and 'list' objects",) message = "cannot concatenate 'str' and 'list' objects" -- http://mail.python.org/mailman/listinfo/python-list

cannot concatenate 'str' and 'list' objects

2012-09-15 Thread Νικόλαος Κούρας
Hello, I recently changed webhost and in the new one iam getting this error you can see if you visit http://superhost.gr when program execution reaches the line: f = open( '../' + page ) In the previous host i wasn't getting this error. page's contents is: page = form.getvalue('page') --