Convert tuples into string

2012-11-25 Thread Smaran Harihar
Hi Guys, I am connecting to postgres database and fetching the table names but it seems that they are being returned in type 'tuple' How can I convert them to string? -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert tuples into string

2012-11-25 Thread Smaran Harihar
Thanks, Smaran On Sun, Nov 25, 2012 at 7:09 PM, Smaran Harihar smaran.hari...@gmail.comwrote: Hi Guys, I am connecting to postgres database and fetching the table names but it seems that they are being returned in type 'tuple' How can I convert them to string? -- Thanks Regards Smaran

Running a curl command within py script

2012-11-14 Thread Smaran Harihar
/acme/datastores/Quercus_iltisii/external.shp ? This is the curl command. -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Zipping files

2012-11-13 Thread Smaran Harihar
? -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Re: Read number of CSV files

2012-11-12 Thread Smaran Harihar
/one.py', 'alpha/two.py', 'alpha/three.py'] See the documentation for more. -- http://mail.python.org/mailman/listinfo/python-list -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Read number of CSV files

2012-11-07 Thread Smaran Harihar
to read the files? -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Invalid syntax

2012-11-07 Thread Smaran Harihar
am getting. Any idea where am I going wrong? -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Re: Invalid syntax

2012-11-07 Thread Smaran Harihar
...@python.org, Demian Brecht demianbre...@gmail.com wrote: On 2012-11-07, at 3:17 PM, Smaran Harihar smaran.hari...@gmail.com wrote: Any idea where am I going wrong? Looks like you're missing a closing parenthesis: What I find is useful in situations like this is to just let emacs auto-indent

Re: trying to create simple py script

2012-08-10 Thread Smaran Harihar
Sorry forgot to update. I did change the port to 8000 and now server is running but I am getting a 404 page. http://128.196.142.94:8000/bottle/hello.py I have the server up right now you can see. Thanks, Smaran On Fri, Aug 10, 2012 at 11:35 AM, Smaran Harihar smaran.hari...@gmail.comwrote

Re: Unable to execute the script

2012-08-10 Thread Smaran Harihar
The file is on Ubuntu Server 12.04 and not sure how to set the executable bits? If you mean chmod +x filename then yes it has been set. On Fri, Aug 10, 2012 at 12:10 PM, Tim Chase python.l...@tim.thechases.comwrote: On 08/10/12 13:38, Dave Angel wrote: On 08/10/2012 01:14 PM, Smaran Harihar

Re: Unable to execute the script

2012-08-10 Thread Smaran Harihar
Hi Tim, this is the output for the ls -lsF filename 8 -rwxr-xr-x 1 root root 5227 Jul 30 13:54 iplantgeo_cgi.py* On Fri, Aug 10, 2012 at 12:20 PM, Tim Chase python.l...@tim.thechases.comwrote: On 08/10/12 14:14, Smaran Harihar wrote: If you mean chmod +x filename then yes it has been

trying to create simple py script

2012-08-09 Thread Smaran Harihar
. They said, it makes more sense to use django or bottle which are python web framework. So I am confused and wanted some guidance as to which should I chose? Should I go with cgi or django/bottle? -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Fwd: unable to get simple html file up

2012-08-03 Thread Smaran Harihar
guys i m still waiting for a reply -- Forwarded message -- From: Smaran Harihar smaran.hari...@gmail.com Date: Thu, Aug 2, 2012 at 12:26 PM Subject: unable to get simple html file up To: python-list@python.org Hi, I am following this tutorialhttp

Creating a simple CGI Script

2012-08-02 Thread Smaran Harihar
functions. This is my server.py http://dpaste.de/iEPTk/ and this is my test_cgi.pyhttp://dpaste.de/7SsAj/ -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a simple CGI Script

2012-08-02 Thread Smaran Harihar
Thanks a lot Xavier, that was exactly what was needed. On Thu, Aug 2, 2012 at 11:44 AM, Xavier Combelle xavier.combe...@free.frwrote: In server.py you made a mistake in the declaration of the cgi directory it should be handler.cgi_directories = [/] Le 02/08/2012 20:20, Smaran Harihar

unable to get simple html file up

2012-08-02 Thread Smaran Harihar
itself. Any idea why it is like this? I have made link.py executable. Here is the server.pyhttp://dpaste.de/iEPTk/ . -- Thanks Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list