version 1.60, 2005/10/26 11:18:19
|
version 1.63, 2005/10/28 12:21:43
|
Line 266 class ECHO_sqlElement(SimpleItem):
|
Line 266 class ECHO_sqlElement(SimpleItem):
|
zLOG.LOG('ECHO_Nav',zLOG.INFO,'ZSQLSimpleSearch not supported') |
zLOG.LOG('ECHO_Nav',zLOG.INFO,'ZSQLSimpleSearch not supported') |
|
|
def getNavList(self): |
def getNavList(self): |
"""ausgabe der treffer list für navigation""" |
"""ausgabe der treffer list fuer navigation""" |
|
|
#naechste schritte sind trial and error, warum geht mal das eine mal das andere 2.3 / 2.4 ?? |
#naechste schritte sind trial and error, warum geht mal das eine mal das andere 2.3 / 2.4 ?? |
|
|
|
try: |
try: |
try: |
|
records=self.ZSQLSimpleSearch(query=self.query) |
|
except: |
records=self.searchQuery(self.aq_parent,query=self.query) #python 2.4 version (??) |
records=self.searchQuery(self.aq_parent,query=self.query) #python 2.4 version (??) |
except: |
except: |
records=self.serchQuery()#python 2.3 version(??) |
records=self.searchQuery()#python 2.3 version(??) |
|
|
|
|
if not records: |
if not records: |
Line 654 class ECHO_navigation(Folder):
|
Line 658 class ECHO_navigation(Folder):
|
try: |
try: |
label=temp[x][1].getLabel() |
label=temp[x][1].getLabel() |
except: |
except: |
label=temp[x][1].label |
label=temp[x][1].label.encode('utf-8') |
else: |
else: |
label=temp[x][1].title.encode('utf-8') |
label=temp[x][1].title.encode('utf-8') |
else: |
else: |
label=temp[x][1].title.encode('utf-8') |
label=temp[x][1].title.encode('utf-8') |
|
|
|
try: |
|
label=label.encode('utf-8') |
|
except: |
|
label=label.decode('latin-1') |
|
|
if location: |
if location: |
|
|
loc=getattr(temp[x][1],'location','top') |
loc=getattr(temp[x][1],'location','top') |