Re: Convert tuples into string

2012-11-25 Thread Smaran Harihar
quot;": str="".join(rec) else: m="".join(rec) str=str+","+m Thanks, Smaran On Sun, Nov 25, 2012 at 7:09 PM, Smaran Harihar wrote: > Hi Guys, > > I am connecting to postgres database and fetching the table names but it > seems that they are being r

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 How can I convert them to string? -- Thanks & Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Running a curl command within py script

2012-11-14 Thread Smaran Harihar
rver/rest/workspaces/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
brary in python? -- Thanks & Regards Smaran Harihar -- http://mail.python.org/mailman/listinfo/python-list

Re: Read number of CSV files

2012-11-12 Thread Smaran Harihar
;] > >>> glob.glob("alpha/*") > ['alpha/one.py', 'alpha/two.py', 'alpha/one.txt', 'alpha/three.py', > 'alpha/three.txt', 'alpha/two.txt'] > >>> glob.glob("alpha/*.py") > ['alpha/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

Re: Invalid syntax

2012-11-07 Thread Smaran Harihar
-07, at 3:17 PM, Smaran Harihar > 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 the code. When it starts indenting (or color

Invalid syntax

2012-11-07 Thread Smaran Harihar
om/826793/> that I am getting. Any idea where am I going wrong? -- 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

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 wrote: > On 08/10/12 14:14, Smaran Harihar wrote: > > If you mean chmod +x > > > > then yes it has been set. > &

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 then yes it has been set. On Fri, Aug 10, 2012 at 12:10 PM, Tim Chase wrote: > On 08/10/12 13:38, Dave Angel wrote: > > On 08/10/2012 01:14 PM, Smaran Harihar wrote: > >> Hi

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 wrote: > Hi Lutz, > &

trying to create simple py script

2012-08-09 Thread Smaran Harihar
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 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 tutorial<http://pointlessprogramming.wordpress.com/2011/02/13/pyt

unable to get simple html file up

2012-08-02 Thread Smaran Harihar
27;t even see the page itself. Any idea why it is like this? I have made link.py executable. Here is the server.py<http://dpaste.de/iEPTk/> . -- 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 wrote: > 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, Sma

Creating a simple CGI Script

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