<p>f = open( '../' + page.pop() )</p>
<div class="gmail_quote">15.09.2012 17:32 пользователь "Νικόλαος Κούρας" <<a href="mailto:nikos.gr33k@gmail.com">nikos.gr33k@gmail.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Τη Σάββατο, 15 Σεπτεμβρίου 2012 3:34:34 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:<br>
> On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας <<a href="mailto:nikos.gr33k@gmail.com">nikos.gr33k@gmail.com</a>> wrote:<br>
><br>
> > Hello,<br>
><br>
> ><br>
><br>
> > I recently changed webhost and in the new one iam getting this error you can see if you visit <a href="http://superhost.gr" target="_blank">http://superhost.gr</a> when program execution reaches the line:<br>
><br>
> ><br>
><br>
> > f = open( '../' + page )<br>
><br>
> ><br>
><br>
> > In the previous host i wasn't getting this error.<br>
><br>
> ><br>
><br>
> > page's contents is:<br>
><br>
> ><br>
><br>
> > page = form.getvalue('page')<br>
><br>
><br>
><br>
> Well, clearly '../' is a string (str), and page must be a list. But<br>
><br>
> without knowing your web framework it's hard to be sure what's going<br>
><br>
> on.<br>
><br>
><br>
><br>
> My guess is that form.getvalue() is returning a list of form elements<br>
><br>
> with that name, so you have a list with one element in it. But check<br>
><br>
> your documentation to be sure.<br>
><br>
><br>
><br>
> Since this changed when you changed hosts, it may mean you now have a<br>
><br>
> completely different framework. Possibly you can configure this.<br>
><br>
> Alternatively, it may simply be a different version of the same<br>
><br>
> system. It's hard to know just based on this, though.<br>
><br>
><br>
><br>
> ChrisA<br>
<br>
Iam not using frameworks just plain python code written in Notepad++<br>
<br>
Can you please tell me how to switch this line in order for this line to work?<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</blockquote></div>