version 1.80, 2007/02/22 10:29:00
|
version 1.81, 2007/08/15 11:05:43
|
Line 29 from Products.PageTemplates.ZopePageTemp
|
Line 29 from Products.PageTemplates.ZopePageTemp
|
import os.path |
import os.path |
|
|
import urllib |
import urllib |
from ECHO_helpers import displayTypes,checkOnlyOneInGroup |
from ECHO_helpers import displayTypes,checkOnlyOneInGroup,unicodify |
from ECHO_collection import content_html |
from ECHO_collection import content_html |
import logging |
import logging |
|
|
Line 502 class ECHO_navigation(Folder):
|
Line 502 class ECHO_navigation(Folder):
|
|
|
def decode(self,str): |
def decode(self,str): |
"""decoder""" |
"""decoder""" |
if not str: |
return unicodify(str) |
return "" |
|
if type(str) is StringType: |
|
try: |
|
return str.decode('utf-8') |
|
except: |
|
return str.decode('latin-1') |
|
else: |
|
|
|
return str |
|
|
|
def ECHOFormatListStr(self,list,search="\n",replace="<br>"): |
def ECHOFormatListStr(self,list,search="\n",replace="<br>"): |
"""formatiert liste im str""" |
"""formatiert liste im str""" |