version 1.231, 2005/07/29 11:17:08
|
version 1.232, 2005/08/15 13:34:04
|
Line 3119 class ECHO_root(Folder,Persistent,Implic
|
Line 3119 class ECHO_root(Folder,Persistent,Implic
|
|
|
#str= dom.toxml('utf-8') |
#str= dom.toxml('utf-8') |
buf = cStringIO.StringIO() |
buf = cStringIO.StringIO() |
PrettyPrint(dom, stream=buf, encoding='UTF-8') |
PrettyPrint(dom, stream=buf) |
str = buf.getvalue() |
str = buf.getvalue() |
buf.close() |
buf.close() |
#str=PrettyPrint(dom.documentElement,encoding='UTF-8') |
#str=PrettyPrint(dom.documentElement,encoding='UTF-8') |
#print link.toxml('utf-8') |
#print link.toxml('utf-8') |
#print type(str) |
#print type(str) |
retStr=regexpPage.search(str) |
retStr=regexpPage.search(str) |
|
|
try: # hack warum fehtl manchmal page?? |
try: # hack warum fehtl manchmal page?? |
return retStr.group(1) |
return retStr.group(1) |
except: |
except: |
Line 3142 class ECHO_root(Folder,Persistent,Implic
|
Line 3143 class ECHO_root(Folder,Persistent,Implic
|
except: |
except: |
"""nothing""" |
"""nothing""" |
|
|
dbs={'vl_technology':'','vl_people':'','vl_sites':''} |
dbs={'vl_technology':'','vl_people':" AND complete='yes'",'vl_sites':''} |
res=None |
res=None |
for db in dbs.keys(): |
for db in dbs.keys(): |
res=res or self.search(var=str("select reference from %s where reference =\'%s\' %s"%(db,ref,dbs[db]))) |
res=res or self.search(var=str("select reference from %s where reference =\'%s\' %s"%(db,ref,dbs[db]))) |