Can some1 review my code?

2009-04-19 Thread zaheer . agadi
hi I am from java background, I have written some code that actually works :) Need to some one to look at it and tell me if there are better ways of doing same things Will some one help? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Can some1 review my code?

2009-04-19 Thread zaheer . agadi
On Apr 19, 11:29 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sat, 18 Apr 2009 23:18:32 -0700, zaheer.agadi wrote: hi I am from java background, I have written some code that actually works :) Need to some one to look at it and tell me if there are better ways of

Re: Can some1 review my code?

2009-04-19 Thread zaheer . agadi
When done all this you might feel it is not necessary to review the code any more, which is then is a good moment to actually request a review :-) I'll be happy to have a look at it though you might consider posting it here, more chance of useful feedback ;-) Great, Thanks a lot I will

Downloading folders from a server

2009-04-14 Thread zaheer . agadi
Hi , I am trying to download folders using webDAV Protocol, I want to download the folders which in turn have many other folders. I am trying to read each and every folder and create the folder locally.How do I do this? If I have a folder structure like the following Folder1 | |_

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 6:53 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sun, 01 Mar 2009 03:16:53 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py it says __Main__.py not

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 7:40 pm, zaheer.ag...@gmail.com wrote: On Mar 1, 6:53 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sun, 01 Mar 2009 03:16:53 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 7:53 pm, zaheer.ag...@gmail.com wrote: On Mar 1, 7:40 pm, zaheer.ag...@gmail.com wrote: On Mar 1, 6:53 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sun, 01 Mar 2009 03:16:53 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java

Re: what does this mean....?

2009-02-28 Thread zaheer . agadi
On Feb 28, 1:50 pm, Ben Finney bignose+hates-s...@benfinney.id.au wrote: Gabriel Genellina gagsl-...@yahoo.com.ar writes: En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió: One question off the topic., Usually it's better to post a separate message. More specifically

Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
Hi, I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py some how I am getting an error saying __main.py does not exist in the zip file Copyproject(main folder) | |_src(folder) | | |

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py it says __Main__.py not found in

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Mar 1, 1:32 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 16:51:04 -0200, zaheer.ag...@gmail.com escribió: On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar

what does this mean....?

2009-02-27 Thread zaheer . agadi
I am trying to download a file from the server, I am getting this error,what does this mean localFile = open(localFileName, 'wb') TypeError: coercing to Unicode: need string or buffer, type found -- http://mail.python.org/mailman/listinfo/python-list

Re: what does this mean....?

2009-02-27 Thread zaheer . agadi
On Feb 28, 10:50 am, Rhodri James rho...@wildebst.demon.co.uk wrote: On Sat, 28 Feb 2009 05:17:41 -, zaheer.ag...@gmail.com wrote: I am trying to download a file from the server, I am getting this error,what does this mean localFile = open(localFileName, 'wb') TypeError: coercing

Is there any equivalent feature available in Python..?

2009-02-24 Thread zaheer . agadi
Hi, Is there any Python equivalent of java jar,can I include all my sources,properties file etc into a single file.Is there anyway in Python that I can run like the following java -jar Mytest.jar --startwebserver How to so something like this in Python? Thanks --

Re: Is there any equivalent feature available in Python..?

2009-02-24 Thread zaheer . agadi
On Feb 25, 1:10 am, Albert Hopkins mar...@letterboxes.org wrote: On Tue, 2009-02-24 at 11:05 -0800, zaheer.ag...@gmail.com wrote: Hi, Is there any Python equivalent of java jar,can I include all my sources,properties file etc into a single file.Is there anyway in Python that I can run

why do I get name not defined error

2009-02-18 Thread zaheer . agadi
Hi, I have the following declared in my class, I am trying tp call a method defined in the same class I am not sure why I am getting name not defined error if options.uploadFile != None : print This is path, the_rest filePath = the_rest UploadFile(None,filePath) def

Re: Reading a file

2009-02-15 Thread zaheer . agadi
On Feb 15, 10:27 am, Steven D'Aprano st...@pearwood.info wrote: Philipp Pagel wrote: zaheer.ag...@gmail.com wrote: Hi How do i read  a file in Python and search a particular pattern like I have a file char.txt  which has Mango=sweet Sky=blue I want to get the strings sweet and

Python WebDAV library

2009-02-15 Thread zaheer . agadi
Hi I am looking for WebDAV library in Python I found one in http://users.sfo.com/~jdavis/Software/PyDAV/readme.html and one here http://pypi.python.org/packages/any/P/Python_WebDAV_Library/ I basically have to upload and download files/folders to/from a server should be able to copy them move

Reading a file

2009-02-14 Thread zaheer . agadi
Hi How do i read a file in Python and search a particular pattern like I have a file char.txt which has Mango=sweet Sky=blue I want to get the strings sweet and blue,How to do this..? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Internal Server error

2009-02-08 Thread zaheer . agadi
HI I am getting an internal server error while trying get response from a server following is my code def getDetails(self,username,password): urllib = urllib2.Request idurl=https://some.server.com/; port=8181 conn = httplib.HTTPSConnection(some.server.com/,8181);

Re: Internal Server error

2009-02-08 Thread zaheer . agadi
On Feb 8, 4:09 pm, Diez B. Roggisch de...@nospam.web.de wrote: zaheer.ag...@gmail.com schrieb: HI I am getting an internal server error while trying get response from a server following is my code    def getDetails(self,username,password):     urllib = urllib2.Request    

Java to Python

2009-02-07 Thread zaheer . agadi
Hi I have a following class that is written Java and makes use of apache http client library,I am new to python can any one suggest me a python equivalent of this following class, Thanks , public class Authenticate{ private String storageUserName=null; private String storagePassword=null;

Re: Java to Python

2009-02-07 Thread zaheer agadi
Hi Thanks for replying .. I am actually looking for the pure Python options Are there any equivalent clasees for the following import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import