version 1.6, 2003/10/09 08:21:16
|
version 1.7, 2003/10/12 21:19:13
|
Line 83 class OSAS_StoreOnline(SimpleItem):
|
Line 83 class OSAS_StoreOnline(SimpleItem):
|
def readContexts(self,path): |
def readContexts(self,path): |
"""Zeige Contexte""" |
"""Zeige Contexte""" |
if os.path.exists(path+"/index.meta"): |
if os.path.exists(path+"/index.meta"): |
|
|
return readContexts(path) |
return readContexts(path) |
|
|
else: |
else: |
|
|
return [] |
return [] |
|
|
def getfilesystem2(self,start,reload=0): |
def getfilesystem2(self,start,reload=0): |
Line 199 def readContexts(path):
|
Line 202 def readContexts(path):
|
nodes=dom.getElementsByTagName('context') |
nodes=dom.getElementsByTagName('context') |
ret=[] |
ret=[] |
|
|
for node in nodes: |
|
|
|
|
for node in nodes: |
|
try: |
link=getText(node.getElementsByTagName('link')[0].childNodes) |
link=getText(node.getElementsByTagName('link')[0].childNodes) |
name=getText(node.getElementsByTagName('name')[0].childNodes) |
name=getText(node.getElementsByTagName('name')[0].childNodes) |
ret.append((link,name)) |
ret.append((link,name)) |
|
except: |
|
"""nothing""" |
return ret |
return ret |
|
|
|
|