SEESenv/web/html/backup/paragraphlist.py
author amit@thunder
Fri, 12 Feb 2010 01:11:21 +0530
changeset 2 52d12eb31c30
parent 0 web/html/backup/paragraphlist.py@8083d21c0020
permissions -rwxr-xr-x
Virtual enviroment for SEES-hacks added ...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     1
import sys
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     2
f=open(sys.argv[1],'r')
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     3
pid_list=[]
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     4
for i in f.readlines():
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     5
    if i.startswith('<p id=') : 
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     6
        list_tmp=i.split('"')[1]
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     7
        pid_list.append(list_tmp)
8083d21c0020 The first commit of all the required files for the review app
amit@thunder
parents:
diff changeset
     8
print pid_list