version 1.12, 2004/07/08 07:04:31
|
version 1.14, 2004/07/08 11:42:31
|
Line 100 class MPIWGRoot(ZSQLExtendFolder):
|
Line 100 class MPIWGRoot(ZSQLExtendFolder):
|
"""sort names""" |
"""sort names""" |
|
|
def sortLastName(x_c,y_c): |
def sortLastName(x_c,y_c): |
|
try: |
|
x=urllib.unquote(x_c).encode('utf-8','ignore') |
|
except: |
x=urllib.unquote(x_c) |
x=urllib.unquote(x_c) |
y=urllib.unquote(y_c) |
|
|
try: |
|
y=urllib.unquote(y_c).encode('utf-8','ignore') |
|
except: |
|
x=urllib.unquote(y_c) |
|
|
|
|
|
|
try: |
try: |
last_x=x.split()[len(x.split())-1] |
last_x=x.split()[len(x.split())-1] |
Line 198 class MPIWGRoot(ZSQLExtendFolder):
|
Line 207 class MPIWGRoot(ZSQLExtendFolder):
|
RESPONSE.redirect("showHistoricalPersons") |
RESPONSE.redirect("showHistoricalPersons") |
|
|
|
|
|
def getPersonDict(self,name): |
|
"""name von dict""" |
|
|
|
try: |
|
return self.personDict[name][0].encode('utf-8') |
|
except: |
|
return self.personDict[name][0] |
|
return self.personDict[name][0].decode('latin-1').encode('utf-8') |
|
|
|
|
def showHistoricalPersons(self): |
def showHistoricalPersons(self): |
"""show persons""" |
"""show persons""" |
pt=PageTemplateFile('Products/MPIWGWeb/zpt/showHistoricalPersons').__of__(self) |
pt=PageTemplateFile('Products/MPIWGWeb/zpt/showHistoricalPersons').__of__(self) |
Line 263 class MPIWGRoot(ZSQLExtendFolder):
|
Line 282 class MPIWGRoot(ZSQLExtendFolder):
|
if re.match(searchStr,project[1]): |
if re.match(searchStr,project[1]): |
|
|
if depth: |
if depth: |
print "ho" |
|
if int(depth)>=len(project[1].split("."))-len(childs.split(".")): |
if int(depth)>=len(project[1].split("."))-len(childs.split(".")): |
|
|
ret.append(project) |
ret.append(project) |
Line 393 class MPIWGRoot(ZSQLExtendFolder):
|
Line 412 class MPIWGRoot(ZSQLExtendFolder):
|
splittedId=idNr.split(".") |
splittedId=idNr.split(".") |
depth=len(splittedId) |
depth=len(splittedId) |
nr=idNr |
nr=idNr |
title=project[0].WEB_title |
#title=project[0].WEB_title |
|
title=[project[0].getContent('WEB_title')] |
|
#print title |
|
|
returnList.append((depth,nr,title,project[0])) |
returnList.append((depth,nr,title,project[0])) |
|
|
Line 717 class MPIWGProject(Folder):
|
Line 738 class MPIWGProject(Folder):
|
try: |
try: |
text =x.encode('utf-8') |
text =x.encode('utf-8') |
except: |
except: |
text="ERROR" |
text=x.decode('latin-1').encode('utf-8') |
|
|
#delete separator (;) if is there is one |
#delete separator (;) if is there is one |
try: |
try: |