version 1.47.2.52, 2006/05/18 13:00:26
|
version 1.47.2.53, 2006/07/13 09:56:56
|
Line 270 class MPIWGRoot(ZSQLExtendFolder):
|
Line 270 class MPIWGRoot(ZSQLExtendFolder):
|
folders=['MPIWGProject','Folder','ECHO_Navigation'] |
folders=['MPIWGProject','Folder','ECHO_Navigation'] |
meta_type='MPIWGRoot' |
meta_type='MPIWGRoot' |
|
|
|
def decode(self,str): |
|
"""decoder""" |
|
if not str: |
|
return "" |
|
if type(str) is StringType: |
|
try: |
|
return str.decode('utf-8') |
|
except: |
|
return str.decode('latin-1') |
|
else: |
|
|
|
return str |
|
|
def versionHeaderEN(self): |
def versionHeaderEN(self): |
"""version header text""" |
"""version header text""" |
|
|
Line 765 class MPIWGRoot(ZSQLExtendFolder):
|
Line 778 class MPIWGRoot(ZSQLExtendFolder):
|
|
|
RESPONSE.setHeader('Content-type', 'text/html') |
RESPONSE.setHeader('Content-type', 'text/html') |
RESPONSE.write("<html><body>\n") |
RESPONSE.write("<html><body>\n") |
|
RESPONSE.write("Update Institutsbibliography\n") |
|
ret=self.upDateSQL('personalwww.xml') |
|
RESPONSE.write("done Insitutsbibliography:%s\n"%ret) |
url="http://itgroup.mpiwg-berlin.mpg.de:8050/FMPro?-db=personal-www&-format=-dso_xml&-lay=sql_export&-max=20000&-findall" |
url="http://itgroup.mpiwg-berlin.mpg.de:8050/FMPro?-db=personal-www&-format=-dso_xml&-lay=sql_export&-max=20000&-findall" |
dom = NonvalidatingReader.parseUri(url) |
dom = NonvalidatingReader.parseUri(url) |
#fh=urllib.urlopen(url) |
#fh=urllib.urlopen(url) |
#dom=xml.dom.minidom.parse(fh) |
#dom=xml.dom.minidom.parse(fh) |
|
|
RESPONSE.write("got_xml_File\n") |
RESPONSE.write("got_xml_File\n") |
|
|
|
|