Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for starzstar

Hi I am using Option parser for creating a command line application . I am able to parse command line options. I have a command for listing the contents of a folder. which goes like this python main.py --listContents When I give this I get an error error: --listContents option …

Member Avatar for adam1122
0
111
Member Avatar for starzstar

I am tryingto download a file from the server ,I dont know why i m getting the following error localFile = open(localFileName, 'wb') TypeError: coercing to Unicode: need string or buffer, type found Any clues..? Thanks

Member Avatar for jrcagle
0
99
Member Avatar for starzstar

Hi, I have the following structure of my project [code] Copyproject(main folder) | |_____src(folder) | | | |__Nertworkpackage | | | | | |__Storepackage | | | | |__FtpPackage |__module1.py | |__module2.py |____ tests |__ module3.py [/code] Module1 takes some commandline parameters that will do some operation Like If I …

Member Avatar for starzstar
0
142
Member Avatar for starzstar

I have some strings like '/home/dir/file1/file2' , '/export/home/file1' '/home/dir1/dir2/folder1/file' I want to only to print the values that come after first two occurences of '/' like for first string '/home/dir/file1/file2' I want to print 'dir/file1/file2' How to do this Thanks

Member Avatar for starzstar
0
54
Member Avatar for starzstar

Hi I want to print something like this to the standard o/p I am currently doing sys.stdout.writelines("%s %10s %10s\n" %(Folders['Table']['Table'][i]['name'],Folders['table']['table'][i]['data']['Place'],Folders['table']['table'][i]['data']['Age'])) but is not very well formatted how do I maintain column structure here ====================================================== Name Place Age ====================================================== John US 11 Mary UK 12 Mike US 14 How to do …

Member Avatar for jlm699
0
94
Member Avatar for starzstar

Hi, I have a nested dictionary like the following how do I loop through such dictionary ,Basically I am looking to get the value of key "name" from the following dictionary Any help is appreciated, [{'resource': ['{"metadata": {"type": "directory", "size": "8"}, "name": "default", "links": {"link": ["{\\"href\\": \\"https://my.server.comdefault\\", \\"rel\\": \\"self\\"}", "{\\"href\\": …

Member Avatar for starzstar
0
110
Member Avatar for starzstar

Are there any equivalent classes in python for the for the following java classes import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.protocol.Protocol; Thanks

Member Avatar for Stefano Mtangoo
0
141
Member Avatar for starzstar

Hi I am using optparser to design a command line interface.How do I read multiple arguments. For eg if I want to create a folder, I will take the arguments path and folder name something lilke the following main.py --createFolder Tesfolder --path C://Test/Test/... How to read these arguments? I can …

Member Avatar for Murtan
0
151
Member Avatar for starzstar

Has any one tried using pyDAV a webDAV library for Python, I am getting a followind error whilw trying to list the contents of a collection 2009-02-05 17:38:58,092: DEBUG: REQUEST Send OPTIONS for /uc910015/home/ 2009-02-05 17:38:58,092: DEBUG: REQUEST Body: None 2009-02-05 17:38:58,092: DEBUG: REQUEST Header: ('AUTHORIZATION', 'Basic U3Rvc nZUVncjAwMTpJSUtD') 2009-02-05 …

Member Avatar for starzstar
0
111
Member Avatar for starzstar

I am new to Python programming, I want to create a command line application that which can be used for backing up the data on a server and restoring it back when needed. Please help me starting this.. Thanks

Member Avatar for lllllIllIlllI
0
51
Member Avatar for starzstar

Hi, I am new to Python and have a requirement to develop a simple requirement to design a login screen, and then a screen which will have two parts in it one will show local files and other files on server I am planning to use tkinter for this is …

Member Avatar for jlm699
0
112