version 1.163, 2004/08/17 15:22:14
|
version 1.172, 2004/10/04 12:57:19
|
Line 270 def getText(nodelist):
|
Line 270 def getText(nodelist):
|
rc = rc + node.data |
rc = rc + node.data |
return rc |
return rc |
|
|
|
def getTextFromNode(nodename): |
|
nodelist=nodename.childNodes |
|
rc = "" |
|
for node in nodelist: |
|
if node.nodeType == node.TEXT_NODE: |
|
rc = rc + node.data |
|
return rc |
|
|
def sendFile(self, filename, type): |
def sendFile(self, filename, type): |
"""sends an object or a local file (in the product) as response""" |
"""sends an object or a local file (in the product) as response""" |
Line 383 def writeMetadata(url,metadict,project=N
|
Line 390 def writeMetadata(url,metadict,project=N
|
metanode.removeChild(nodeOld[0]).unlink() |
metanode.removeChild(nodeOld[0]).unlink() |
|
|
metanodeneu=dom.createElement(metaData) |
metanodeneu=dom.createElement(metaData) |
try: |
metanodetext=dom.createTextNode(metadict[metaData]) |
metanodetext=dom.createTextNode(unicode(metadict[metaData],"utf-8")) |
#try: |
except: |
#metanodetext=dom.createTextNode(unicode(metadict[metaData],"utf-8")) |
metanodetext=dom.createTextNode(metadict[metaData].encode('utf-8')) |
#except: |
|
#metanodetext=dom.createTextNode(metadict[metaData].encode('utf-8')) |
metanodeneu.appendChild(metanodetext) |
metanodeneu.appendChild(metanodetext) |
metanode.appendChild(metanodeneu) |
metanode.appendChild(metanodeneu) |
|
|
Line 413 def writeMetadata(url,metadict,project=N
|
Line 421 def writeMetadata(url,metadict,project=N
|
if digiliburlprefix: |
if digiliburlprefix: |
updateTextToolNode('digiliburlprefix',digiliburlprefix) |
updateTextToolNode('digiliburlprefix',digiliburlprefix) |
|
|
|
try: |
return dom.toxml().encode('utf-8') |
return dom.toxml().encode('utf-8') |
|
except: |
|
return dom.toxml('utf-8') |
|
|
|
|
|
|
Line 513 class ECHO_copyright(Folder):
|
Line 524 class ECHO_copyright(Folder):
|
{'label':'Main Config','action':'ECHO_copyright_configForm'}, |
{'label':'Main Config','action':'ECHO_copyright_configForm'}, |
) |
) |
|
|
|
|
def ECHO_copyright_configForm(self): |
def ECHO_copyright_configForm(self): |
"""change form""" |
"""change form""" |
pt=PageTemplateFile('Products/ECHO_content/zpt/ChangeECHO_copyright').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/ChangeECHO_copyright').__of__(self) |
Line 666 class ECHO_fullText(ZopePageTemplate):
|
Line 678 class ECHO_fullText(ZopePageTemplate):
|
# 3 handler functions |
# 3 handler functions |
def start_element(name, attrs): |
def start_element(name, attrs): |
global retLex |
global retLex |
print name |
|
retLex+=createTag(name,attrs) |
retLex+=createTag(name,attrs) |
def end_element(name): |
def end_element(name): |
global retLex |
global retLex |
Line 689 class ECHO_fullText(ZopePageTemplate):
|
Line 701 class ECHO_fullText(ZopePageTemplate):
|
p.CharacterDataHandler = char_data |
p.CharacterDataHandler = char_data |
|
|
p.Parse(lemmatized.encode('utf-8'),1) |
p.Parse(lemmatized.encode('utf-8'),1) |
print repr(lemmatized.encode('utf-8')) |
#print repr(lemmatized.encode('utf-8')) |
|
|
return retLex |
return retLex |
|
|
Line 797 class ECHO_resource(Folder,Persistent):
|
Line 809 class ECHO_resource(Folder,Persistent):
|
"""showrdf""" |
"""showrdf""" |
self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml') |
self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml') |
ret="""<?xml version="1.0" encoding="utf-8"?>\n<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ECHONAVIGATION="http://www.echo.eu/rdf#">\n""" |
ret="""<?xml version="1.0" encoding="utf-8"?>\n<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ECHONAVIGATION="http://www.echo.eu/rdf#">\n""" |
ret+=self.getRDF(urn="echo:collectionroot")+"\n" |
ret+=self.getRDF(urn="echo:colllectionroot")+"\n" |
|
|
ret+="""</RDF:RDF>""" |
ret+="""</RDF:RDF>""" |
return ret |
return ret |
Line 1019 class ECHO_resource(Folder,Persistent):
|
Line 1031 class ECHO_resource(Folder,Persistent):
|
path=re.sub('http://foxridge.rz-berlin.mpg.de:8080','',path) # falls foxridge als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de:8080','',path) # falls foxridge als server |
path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server |
path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de','',path) # falls foxridge als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de','',path) # falls foxridge als server |
|
path=re.sub('http://vision.rz-berlin.mpg.de','',path) # falls vision als server |
|
path=re.sub('http://echo.mpiwg-berlin.mpg.de','',path) # falls echo |
path=re.sub('/index.meta','',path) |
path=re.sub('/index.meta','',path) |
|
|
|
|
Line 1082 class ECHO_resource(Folder,Persistent):
|
Line 1096 class ECHO_resource(Folder,Persistent):
|
path=re.sub('http://foxridge.rz-berlin.mpg.de:8080','',path) # falls foxridge als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de:8080','',path) # falls foxridge als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de','',path) # falls foxridge als server |
path=re.sub('http://foxridge.rz-berlin.mpg.de','',path) # falls foxridge als server |
path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server |
path=re.sub('http://content.mpiwg-berlin.mpg.de','',path) # falls content als server |
|
path=re.sub('http://echo.mpiwg-berlin.mpg.de','',path) # falls echo |
|
|
|
path=re.sub('http://vision.rz-berlin.mpg.de','',path) # falls vision als server |
|
|
return ECHO_helpers.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines() |
return ECHO_helpers.urlopen("http://nausikaa2.rz-berlin.mpg.de:86/cgi-bin/toc/admin/reg.cgi?path=%s"%path).readlines() |
|
|
|
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
Line 1122 class ECHO_resource(Folder,Persistent):
|
Line 1141 class ECHO_resource(Folder,Persistent):
|
texttools=dom.getElementsByTagName('texttool') |
texttools=dom.getElementsByTagName('texttool') |
text=texttools[0].getElementsByTagName('text') |
text=texttools[0].getElementsByTagName('text') |
texturl=getText(text[0].childNodes) |
texturl=getText(text[0].childNodes) |
|
if not (texturl.split(":")[0] in ['http','ftp','file']): |
|
texturl=re.sub("//","/",texturl) |
|
#return texturl+"::"+texturl.split(":")[0] |
if not noredirect: |
if not noredirect: |
self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml') |
self.REQUEST.RESPONSE.setHeader('Content-Type','text/xml') |
self.REQUEST.RESPONSE.redirect(texturl) |
self.REQUEST.RESPONSE.redirect(texturl) |
Line 2076 class ECHO_collection(Folder, Persistent
|
Line 2097 class ECHO_collection(Folder, Persistent
|
pt=PageTemplateFile('Products/ECHO_content/zpt/changeViewerTemplateSet').__of__(self) |
pt=PageTemplateFile('Products/ECHO_content/zpt/changeViewerTemplateSet').__of__(self) |
return pt() |
return pt() |
|
|
def getViewerTemplateSets(self,obj_ids=None): |
def getViewerTemplateSets(self,obj_ids=None,RESPONSE=None): |
"""Get the ViewerTemplateSet title for configuration""" |
"""Get the ViewerTemplateSet title for configuration""" |
ret=[] |
ret=[] |
|
|
Line 2265 class ECHO_collection(Folder, Persistent
|
Line 2286 class ECHO_collection(Folder, Persistent
|
def getCollectionTreeXML(self): |
def getCollectionTreeXML(self): |
"""Tree as XML""" |
"""Tree as XML""" |
|
|
|
def addPassWd(str): |
|
"""adds a user/passwd to an url""" |
|
txt2=re.sub(r"(http://)(.*?)","\g<1>www:3333@\g<2>",str) |
|
return txt2 |
|
|
def getCollection(object,depth=0): |
def getCollection(object,depth=0): |
depth+=1 |
depth+=1 |
collections="" |
collections="" |
Line 2272 class ECHO_collection(Folder, Persistent
|
Line 2298 class ECHO_collection(Folder, Persistent
|
element=getattr(object,entry) |
element=getattr(object,entry) |
try: |
try: |
if element.meta_type in ["ECHO_collection","ECHO_group"]: |
if element.meta_type in ["ECHO_collection","ECHO_group"]: |
collections+="<element name=\""+quote(element.title)+"\" url=\""+element.absolute_url()+"\">" |
collections+="<element name=\""+quote(element.title)+"\" url=\""+addPassWd(element.absolute_url())+"\">" |
collections+=getCollection(element,depth)+"</element>\n" |
collections+=getCollection(element,depth)+"</element>\n" |
except: |
except: |
"""nothing""" |
"""nothing""" |
Line 2529 class ECHO_collection(Folder, Persistent
|
Line 2555 class ECHO_collection(Folder, Persistent
|
else: |
else: |
return "#dddddd" |
return "#dddddd" |
|
|
def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",viewClassification=None,location=None): |
def changeECHO_collection(self,title,label,description,contentType,responsible,weight,secondaryLink,secondaryLinkTitle,credits=None,sortfield="weight",coords=None,RESPONSE=None,imageTag="",bgcolour="",viewClassification=None,location=None,isAlwaysClickable=None): |
"""Aenderung der Properties""" |
"""Aenderung der Properties""" |
|
|
self.secondaryLink=secondaryLink |
self.secondaryLink=secondaryLink |
Line 2538 class ECHO_collection(Folder, Persistent
|
Line 2564 class ECHO_collection(Folder, Persistent
|
self.bgcolour=bgcolour |
self.bgcolour=bgcolour |
self.viewClassification=viewClassification |
self.viewClassification=viewClassification |
self.location=location |
self.location=location |
|
self.isAlwaysClickable=isAlwaysClickable |
|
|
if coords: |
if coords: |
coordsnew=[ string.split(x,",") for x in coords] |
coordsnew=[ string.split(x,",") for x in coords] |
Line 2557 class ECHO_collection(Folder, Persistent
|
Line 2584 class ECHO_collection(Folder, Persistent
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
|
def setAlwaysClickable(self,flag="yes"): |
|
"""set clickable""" |
|
if flag=="yes": |
|
self.isAlwaysClickable="yes" |
|
else: |
|
self.isAlwaysClickable=None |
|
|
|
return flag |
|
|
def showOverview(self): |
def showOverview(self): |
"""overview""" |
"""overview""" |
Line 2929 def manage_addECHO_userFolderForm(self):
|
Line 2964 def manage_addECHO_userFolderForm(self):
|
"""add a user folder form""" |
"""add a user folder form""" |
return manage_addECHO_userFolder(self) |
return manage_addECHO_userFolder(self) |
|
|
|
|
|
|
|
def createNode(self,descrs,node): |
|
name=descrs[node]['name'] |
|
type=descrs[node]['type'] |
|
urn=node |
|
#print " will create",node.encode('utf-8') |
|
id=re.sub('[^a-zA-Z0-9]','',name).encode('ascii','ignore') |
|
#print "id",id |
|
#print type |
|
#self.REQUEST.RESPONSE.write("<p>%s<p>\n"%id) |
|
if type=="CDLI_group": |
|
|
|
try: |
|
manage_addECHO_collection(self,id,name,name,"","","","","") |
|
|
|
except: |
|
self.REQUEST.RESPONSE.write("<p>Error%s</p>\n"%id) |
|
|
|
self.REQUEST.RESPONSE.write("<p>Creates:%s</p>\n"%getattr(self,id).absolute_url()) |
|
|
|
return type,getattr(self,id),urn |
|
|
|
if type=="CDLI_item": |
|
try: |
|
manage_addECHO_resource(self,id,name,name,"","",urn,"","") |
|
except: |
|
self.REQUEST.RESPONSE.write("<p>Error%s</p>\n"%id) |
|
self.REQUEST.RESPONSE.write("<p>Creates:%s</p>\n"%getattr(self,id).absolute_url()) |
|
|
|
|
|
return "XX" |
|
|
|
|
class ECHO_root(Folder,Persistent,Implicit): |
class ECHO_root(Folder,Persistent,Implicit): |
"""ECHO Root Folder""" |
"""ECHO Root Folder""" |
|
|
Line 2936 class ECHO_root(Folder,Persistent,Implic
|
Line 3005 class ECHO_root(Folder,Persistent,Implic
|
|
|
meta_type="ECHO_root" |
meta_type="ECHO_root" |
|
|
|
###CDLI adds -> have to be removed |
|
def getTablet(self,item): |
|
#print "getTablet" |
|
try: |
|
read=urllib.urlopen("http://enlil.museum.upenn.edu/cgi-bin/cdlget.plx?item=%s&project=ncdl"%item).read() |
|
read=re.sub("\[search\]","search",read) |
|
return read[read.find("<body>")+6:read.rfind("</body>")] |
|
except: |
|
return "<h1>Sorry no connection to the data server enlil.museum.upenn.edu</h1>" |
|
#return "http://enlil.museum.upenn.edu/cgi-bin/cdlget.plx?item=%s&project=ncdl" |
|
###END CDLI add |
|
|
|
|
|
def generateFromRDFForm(self): |
|
"""change form""" |
|
pt=PageTemplateFile('Products/ECHO_content/zpt/generateFromRDFForm').__of__(self) |
|
pt.content_type="text/html" |
|
return pt() |
|
|
|
def generateFromRDF(self,file,startNode="/Cuneiform Corpus"): |
|
|
|
"""generate from RDF""" |
|
|
|
global seqs |
|
seqs={} |
|
global descrs |
|
descrs={} |
|
global key |
|
key="" |
|
global value |
|
value="" |
|
|
|
def getEdges(seqs,urn): |
|
"""edges""" |
|
ret=[] |
|
return seqs[urn] |
|
|
|
def createSubs(self,seqs,descrs,urn,level=0): |
|
"""create subs""" |
|
for edge in getEdges(seqs,urn): |
|
cn=createNode(self,descrs,edge) |
|
if cn[0]=="CDLI_group": |
|
createSubs(cn[1],seqs,descrs,cn[2],level+1) |
|
return |
|
|
|
def start_element(name,attrs): |
|
|
|
global seqs |
|
global descrs |
|
global key |
|
global value |
|
seq="" |
|
if name=="RDF:Seq": |
|
key=attrs.get('RDF:about') |
|
try: # teste ob liste |
|
x=seqs[key][0] |
|
except: |
|
|
|
seqs[key]=[] |
|
|
|
|
|
elif name=="RDF:Description": |
|
key=attrs.get('RDF:about') |
|
|
|
|
|
elif name=="RDF:li": |
|
name=attrs.get('RDF:resource') |
|
seqs[key].append(name) |
|
|
|
elif name=="ECHONAVIGATION:type": |
|
value="type" |
|
|
|
elif name=="ECHONAVIGATION:name": |
|
value="name" |
|
elif name=="ECHONAVIGATION:linkClickable": |
|
value="linkClickable" |
|
|
|
def end_element(name): |
|
"""nothing""" |
|
key="" |
|
value="" |
|
|
|
def char_data(data): |
|
"""nothing""" |
|
|
|
data=re.sub("\n","",data) |
|
try: |
|
if descrs[key].has_key(value): |
|
descrs[key][value]+=data |
|
else: |
|
descrs[key][value]=data |
|
except: |
|
|
|
descrs[key]={} |
|
descrs[key][value]=data |
|
|
|
p = xml.parsers.expat.ParserCreate() |
|
|
|
p.StartElementHandler = start_element |
|
p.EndElementHandler = end_element |
|
p.CharacterDataHandler = char_data |
|
|
|
|
|
p.ParseFile(file) |
|
self.REQUEST.RESPONSE.write("<html><body><h1>Start</h1>") |
|
createSubs(self,seqs,descrs,startNode) |
|
self.REQUEST.RESPONSE.write("<h1>done</h1></body></html>") |
|
#print "done" |
|
|
|
|
|
return "done" |
|
|
|
|
|
|
|
|
def changeWeightsInCollection(self): |
def changeWeightsInCollection(self): |
"""change all lables of a collection""" |
"""change all lables of a collection""" |
ret="" |
ret="" |
Line 2962 class ECHO_root(Folder,Persistent,Implic
|
Line 3146 class ECHO_root(Folder,Persistent,Implic
|
{'label':'Main Config','action':'ECHO_copyright_configForm'}, |
{'label':'Main Config','action':'ECHO_copyright_configForm'}, |
{'label':'Reload Metadata','action':'reloadMetaDataFromStorageWarning'}, |
{'label':'Reload Metadata','action':'reloadMetaDataFromStorageWarning'}, |
{'label':'Change Weights','action':'changeWeights'}, |
{'label':'Change Weights','action':'changeWeights'}, |
|
{'label':'Generate from RDF','action':'generateFromRDFForm'}, |
|
|
) |
) |
|
|
|
|
Line 3228 class ECHO_root(Folder,Persistent,Implic
|
Line 3414 class ECHO_root(Folder,Persistent,Implic
|
|
|
return "changed all contenttypes in: "+self.title |
return "changed all contenttypes in: "+self.title |
|
|
|
def deleteCache(self,obj=None,RESPONSE=None): |
|
"""setze alle collections auf cache = CacheManager""" |
|
|
|
|
|
if not obj: |
|
obj = self |
|
|
|
entries=obj.ZopeFind(obj,search_sub=1) |
|
|
|
for entry in entries: |
|
if hasattr(entry[1],'_v_hash'): |
|
entry[1]._v_hash=None |
|
|
|
|
|
|
|
|
|
return "changed all CM in: "+self.title |
|
|
|
|
|
|
def ECHO_newViewerLink(self,obj=None): |
def ECHO_newViewerLink(self,obj=None): |
"""change links (:86 faellt weg)""" |
"""change links (:86 faellt weg)""" |
|
|
Line 3294 class ECHO_root(Folder,Persistent,Implic
|
Line 3500 class ECHO_root(Folder,Persistent,Implic
|
for link in links: |
for link in links: |
link.tagName="a" |
link.tagName="a" |
ref=link.getAttribute("ref") |
ref=link.getAttribute("ref") |
|
pn=link.getAttribute("page") |
|
|
if self.checkRef(ref): |
if self.checkRef(ref): |
|
if pn: |
|
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref+"&p="+pn) |
|
else: |
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) |
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) |
|
|
|
|
newxml=dom.toxml('utf-8') |
newxml=dom.toxml('utf-8') |
|
|
retStr=regexpTXT.search(newxml) |
retStr=regexpTXT.search(newxml) |
Line 3308 class ECHO_root(Folder,Persistent,Implic
|
Line 3520 class ECHO_root(Folder,Persistent,Implic
|
|
|
def xml2html(self,str,quote="yes"): |
def xml2html(self,str,quote="yes"): |
"""link2html fuer VLP muss hier noch raus""" |
"""link2html fuer VLP muss hier noch raus""" |
print str |
#print str |
|
|
if str: |
if str: |
if quote=="yes2": |
if quote=="yes2": |
str=re.sub("\&","&",str) |
str=re.sub("\&","&",str) |
dom=xml.dom.minidom.parseString(str) |
dom=xml.dom.minidom.parseString(str) |
links=dom.getElementsByTagName("link") |
links=dom.getElementsByTagName("link") |
|
|
|
|
for link in links: |
for link in links: |
link.tagName="a" |
link.tagName="a" |
ref=link.getAttribute("ref") |
ref=link.getAttribute("ref") |
|
pn=link.getAttribute("page") |
|
|
if self.checkRef(ref): |
if self.checkRef(ref): |
|
if pn: |
|
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref+"&p="+pn) |
|
else: |
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) |
link.setAttribute("href",self.aq_parent.absolute_url()+"/vlp_coll?id="+ref) |
|
|
str= dom.toxml() |
str= dom.toxml() |
Line 3331 class ECHO_root(Folder,Persistent,Implic
|
Line 3548 class ECHO_root(Folder,Persistent,Implic
|
return "" |
return "" |
|
|
def checkRef(self,ref): |
def checkRef(self,ref): |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':''} |
dbs={'vl_literature':'AND CD LIKE \'%lise%\'','vl_technology':'','vl_people':'','vl_sites':''} |
res=None |
res=None |
for db in dbs.keys(): |
for db in dbs.keys(): |
|
|
Line 3364 class ECHO_root(Folder,Persistent,Implic
|
Line 3581 class ECHO_root(Folder,Persistent,Implic
|
<partners>""" |
<partners>""" |
|
|
for partner in partners: |
for partner in partners: |
ret+="""<partner id="%s" title="%s"/>\n"""%(partner.getId(),unicode(partner.title,'utf-8','replace')) |
ret+="""<partner id="%s" title="%s"/>\n"""%(partner.getId(),partner.title) |
|
|
return ret+"\n</partners>" |
return ret+"\n</partners>" |
|
|
Line 3471 class ECHO_root(Folder,Persistent,Implic
|
Line 3688 class ECHO_root(Folder,Persistent,Implic
|
|
|
def getMetaDatasXML(self,viewerType=None,filter=None): |
def getMetaDatasXML(self,viewerType=None,filter=None): |
"""gebe all ressourcen aus""" |
"""gebe all ressourcen aus""" |
|
# check if the request's host part was OK |
|
http_host = self.REQUEST['HTTP_HOST'] |
|
host_port = self.REQUEST['SERVER_PORT'] |
|
fix_host = None |
|
if http_host and http_host.rfind(host_port) == -1: |
|
print "HTTP_HOST needs fixing!" |
|
fix_host = http_host + ":" + host_port |
|
|
ret="""<?xml version="1.0" ?> |
ret="""<?xml version="1.0" ?> |
<index>""" |
<index>""" |
for resource in self.ZopeFind(self,obj_metatypes=['ECHO_resource'],search_sub=1): |
for resource in self.ZopeFind(self,obj_metatypes=['ECHO_resource'],search_sub=1): |
|
|
echo_url=resource[1].absolute_url() |
echo_url=resource[1].absolute_url() |
|
if fix_host: |
|
#print "replacing ", http_host, " by ", fix_host |
|
echo_url = string.replace(echo_url, http_host, fix_host, 1) |
|
|
if hasattr(resource[1],'link'): |
if hasattr(resource[1],'link'): |
meta_url=echo_url+"/getMetaDataXML" |
meta_url=echo_url+"/getMetaDataXML" |
Line 3494 class ECHO_root(Folder,Persistent,Implic
|
Line 3722 class ECHO_root(Folder,Persistent,Implic
|
|
|
ret +="""\n</index>""" |
ret +="""\n</index>""" |
|
|
|
|
self.REQUEST.RESPONSE.setHeader("Content-Type", "text/xml") |
self.REQUEST.RESPONSE.setHeader("Content-Type", "text/xml") |
self.REQUEST.RESPONSE.write(ret) |
self.REQUEST.RESPONSE.write(ret) |
|
|