[Zope] python help needed

2010-01-19 Thread Garry Saddington
I am trying to upload a csv file (called data) using the following script: i=0 d=data.readlines() for row in d: i+=1 a=row.split(',') if i > 1: subjectid=a[0] entry=a[1] type=a[2] studentid=a[3] try: contex

Re: [Zope] python help needed

2010-01-19 Thread Andrew Milton
+---[ Garry Saddington ]-- | I am trying to upload a csv file (called data) using the following script: | | i=0 | d=data.readlines() | for row in d: | i+=1 | a=row.split(',') | if i > 1: | subjectid=a[0] | entry=a[1] |

Re: [Zope] python help needed

2010-01-19 Thread Garry Saddington
Andrew Milton wrote: > +---[ Garry Saddington ]-- > | I am trying to upload a csv file (called data) using the following script: > | > | i=0 > | d=data.readlines() > | for row in d: > | i+=1 > | a=row.split(',') > | if i > 1: > | subj