version 1.61, 2005/02/23 14:53:57
|
version 1.62, 2005/04/27 19:35:22
|
Line 11 from Products.PageTemplates.ZopePageTemp
|
Line 11 from Products.PageTemplates.ZopePageTemp
|
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
|
|
from Products.ZSQLMethods.SQL import SQLConnectionIDs |
from Products.ZSQLMethods.SQL import SQLConnectionIDs |
|
from xml.sax.saxutils import escape |
|
from types import * |
import Shared.DC.ZRDB.DA |
import Shared.DC.ZRDB.DA |
import zLOG |
import zLOG |
import os.path |
import os.path |
Line 1292 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 1294 class ZSQLBibliography(Folder,ZSQLExtend
|
"""create RDF""" |
"""create RDF""" |
if content: |
if content: |
tag=namespace+":"+tag |
tag=namespace+":"+tag |
|
if (type(content) is StringType) or (type(content) is UnicodeType): |
|
ret=""" <%s>%s</%s>"""%(tag,escape(content),tag) |
|
else: |
ret=""" <%s>%s</%s>"""%(tag,content,tag) |
ret=""" <%s>%s</%s>"""%(tag,content,tag) |
return ret.decode('latin-1') |
return ret.decode('latin-1') |
else: |
else: |
Line 1299 class ZSQLBibliography(Folder,ZSQLExtend
|
Line 1304 class ZSQLBibliography(Folder,ZSQLExtend
|
|
|
def createIndexTag(self,tag,content): |
def createIndexTag(self,tag,content): |
"""create tag""" |
"""create tag""" |
|
|
if content: |
if content: |
|
if (type(content) is StringType) or (type(content) is UnicodeType): |
|
ret=""" <%s>%s</%s>"""%(tag,escape(content),tag) |
|
else: |
ret="""<%s>%s</%s>"""%(tag,content,tag) |
ret="""<%s>%s</%s>"""%(tag,content,tag) |
return ret |
return ret.decode('latin-1') |
|
|
else: |
else: |
return "" |
return "" |
|
|