Mercurial > hg > MPIWGThesaurus
comparison MPIWGThesaurus.py @ 27:aac892c55535
minor - show now WEB_title in list
author | dwinter |
---|---|
date | Sun, 05 May 2013 13:55:26 +0200 |
parents | 1456ddf7583e |
children | 30dee40ff84b |
comparison
equal
deleted
inserted
replaced
26:8731a74ed13c | 27:aac892c55535 |
---|---|
669 # SUBTAG2_1 | 669 # SUBTAG2_1 |
670 # SUBTAG2_2 | 670 # SUBTAG2_2 |
671 #.... | 671 #.... |
672 # und erzeugt daraus eine entsprechende Liste von Entries | 672 # und erzeugt daraus eine entsprechende Liste von Entries |
673 def getEntriesFromTxt(self,txt): | 673 def getEntriesFromTxt(self,txt): |
674 | |
674 apps=[] | 675 apps=[] |
675 lines=txt.split("\n"); | 676 lines=txt.split("\n"); |
676 level=False | 677 level=False |
677 for line in lines: | 678 for line in lines: |
678 line=line.rstrip().lstrip() | 679 line=line.rstrip().lstrip() |
1493 logging.debug("no project!! " +getID) | 1494 logging.debug("no project!! " +getID) |
1494 return | 1495 return |
1495 | 1496 |
1496 link="/en/research/projects/"+getID | 1497 link="/en/research/projects/"+getID |
1497 | 1498 |
1498 title=project.getContent("short_title") | 1499 title=project.getContent("WEB_title") |
1499 #persons=project.getPersonKeyList() | 1500 #persons=project.getPersonKeyList() |
1500 persons=project.getContent('xdata_01') | 1501 persons=project.getContent('xdata_01') |
1501 logging.debug("%s %s %s"%(link,title,persons)) | 1502 logging.debug("%s %s %s"%(link,title,persons)) |
1502 return link,title,persons | 1503 return link,title,persons |
1503 | 1504 |