Hi people,

later I found myself using OSOR forge quite a bit. As I was not able to search bugs by a keyword (or I missed the link to do it), I built a silly script. I guess it could be useful for some of you.

How I did to search a bug by keyword:

1. Download csv file from gvsig-desktop forge.

2. Filter the csv files by the keyword you I was looking for:
  `cat file.csv|grep keyword > output.csv`

3. Execute the script attached using "output.csv" to build the right bug URLs I could be interested in.

For sure, the process could be *a lot* more automated. If someone wants to improve it, please, be my guest and let me know!

best,
amaneiro
#!/usr/bin/python

import csv, sys

csv_data = sys.argv[1]

csv_file = file(csv_data, 'r')
csv_reader = csv.reader(csv_file)

def build_url(bug_number):
    url = "https://forge.osor.eu/tracker/index.php?func=detail&aid="; + bug_number
    return url

def get_bug_numer(row):
    return row[0]

for row in csv_reader:
    bug_number = get_bug_numer(row)
    print build_url(bug_number)
_______________________________________________
Gvsig_internacional mailing list
[email protected]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional

Reply via email to