Re: [Tutor] upload xml file via pycurl

2011-05-16 Thread Alan Gauld
"Rayon" wrote I am trying to upload a xml file via pycurl, I really need some help here. So give us a clue. What is wrong with your code? And what does the real code look like, the fragment you have posted doesn't tell us too much - what is c? what have you imported, and how did you do it?

Re: [Tutor] upload xml file via pycurl

2011-05-16 Thread Brett Ritter
On Mon, May 16, 2011 at 2:00 PM, Rayon wrote: > I am trying to upload a xml file via pycurl, I really need some help here. What is the error your are receiving? Did you fix the fact that you had starting whitespace as I mentioned to your last email? -- Brett Ritter / SwiftOne swift...@swiftone

[Tutor] upload xml file via pycurl

2011-05-16 Thread Rayon
I am trying to upload a xml file via pycurl, I really need some help here. url = "https://192.168.0.68/fileupload/upload_file.php"; binaryptr = open('activation.xml','rb').read() head = ['Content-type:text/xml'] c.setopt(c.SSL_VERIFYPEER, 0) c.setopt(c.SSL_VERIFYHOST, 0) c.setopt(c.POS

Re: [Tutor] String Processing Query

2011-05-16 Thread James Reynolds
concatenate the entire thing together, including the "*". Once you have that as a single string, use string.split('*') and you will have your two strings. On Mon, May 16, 2011 at 9:51 AM, Spyros Charonis wrote: > I have a file with the following contents: > > >from header1 > abcdefghijkl > mnopq

[Tutor] String Processing Query

2011-05-16 Thread Spyros Charonis
I have a file with the following contents: >from header1 abcdefghijkl mnopqrs tuvwxyz * >from header2 poiuytrewq lkjhgfdsa mnbvcxz * My string processing code goes as follows: file1=open('/myfolder/testfile.txt') scan = file1.readlines() string1 = ' ' for line in scan: if line.startswith('>

Re: [Tutor] Academic publications

2011-05-16 Thread Steven D'Aprano
On Mon, 16 May 2011 08:38:47 pm I. Dooba wrote: > I'm submitting a paper to a conference. > However, I'm wondering if it's appropriate to include the codes for > my application in the paper. > If it's OK to do that, how much of the code should I include? Why are you asking us? Surely you should be

[Tutor] Academic publications

2011-05-16 Thread I. Dooba
I'm submitting a paper to a conference. However, I'm wondering if it's appropriate to include the codes for my application in the paper. If it's OK to do that, how much of the code should I include? Thanks. Dooba ___ Tutor maillist - Tutor@python.org T