version 1.47.2.11, 2005/06/08 20:00:16
|
version 1.47.2.12, 2005/06/08 20:13:17
|
Line 449 class MPIWGRoot(ZSQLExtendFolder):
|
Line 449 class MPIWGRoot(ZSQLExtendFolder):
|
|
|
def getDisciplineList(self): |
def getDisciplineList(self): |
"""get disciplines as list""" |
"""get disciplines as list""" |
return self.disciplineList.split("\n") |
list= self.disciplineList.split("\n") |
|
return [x.rstrip().lstrip() for x in list] |
|
|
def getThemeList(self): |
def getThemeList(self): |
"""get themes as list""" |
"""get themes as list""" |
return self.themesList.split("\n") |
list= self.themesList.split("\n") |
|
return [x.rstrip().lstrip() for x in list] |
|
|
def test(self): |
def test(self): |
"""test""" |
"""test""" |
Line 661 class MPIWGRoot(ZSQLExtendFolder):
|
Line 663 class MPIWGRoot(ZSQLExtendFolder):
|
ret+="""<div class="dept">\n<ul class="liste">\n""" |
ret+="""<div class="dept">\n<ul class="liste">\n""" |
else: |
else: |
for i in range(element[0]-actualDepth): |
for i in range(element[0]-actualDepth): |
|
if i>0: |
|
ret+="<li>" |
ret+="""<ul class="liste">\n""" |
ret+="""<ul class="liste">\n""" |
|
|
actualDepth=element[0] |
actualDepth=element[0] |
Line 668 class MPIWGRoot(ZSQLExtendFolder):
|
Line 672 class MPIWGRoot(ZSQLExtendFolder):
|
elif (element[0]<actualDepth): |
elif (element[0]<actualDepth): |
#fuege soviele /ul ein wie unterschied in tiefe |
#fuege soviele /ul ein wie unterschied in tiefe |
for i in range(-element[0]+actualDepth): |
for i in range(-element[0]+actualDepth): |
ret+="<br><br>\n</li>\n</ul>\n</li>\n" |
|
|
ret+="<br><br></li></ul>\n" |
|
|
|
#ret+="<br><br>\n</li>\n</ul>\n</li>\n" |
|
|
|
|
if element[0]==1: |
if element[0]==1: |
department=int(element[3].getContent('xdata_05'))-1 |
department=int(element[3].getContent('xdata_05'))-1 |
Line 687 class MPIWGRoot(ZSQLExtendFolder):
|
Line 695 class MPIWGRoot(ZSQLExtendFolder):
|
ret+="""<li>\n""" |
ret+="""<li>\n""" |
|
|
if actualDepth==1: |
if actualDepth==1: |
departmentName={'1':'Department I','2':'Department II','3':'Department III', '4':'NWG','5':'NWG'} |
departmentName={'1':'Department I','2':'Department II','3':'Department III', '4':'Ind. Research Group','5':'Ind. Research Group'} |
department=element[3].getContent('xdata_05') |
department=element[3].getContent('xdata_05') |
ret+="""<a href="#top"><img src="../grafik/totop.gif" vspace="10" border="0"></a><br><a name="dept%s"></a>%s: """%(department,departmentName[department]) |
ret+="""<a href="#top"><img src="../grafik/totop.gif" vspace="10" border="0"></a><br><a name="dept%s"></a>%s: """%(department,departmentName[department]) |
|
|
Line 1307 class MPIWGProject(CatalogAware,Folder):
|
Line 1315 class MPIWGProject(CatalogAware,Folder):
|
else: |
else: |
splitted=list[0].split(";") |
splitted=list[0].split(";") |
|
|
|
splitted=[y.rstrip().lstrip() for y in splitted] |
|
|
for x in splitted: |
for x in splitted: |
if (not x==u'') and x in wert: |
if (not x==u'') and x in wert: |