--- OSA_system2/OSAS_helpers.py 2005/03/07 19:33:42 1.8
+++ OSA_system2/OSAS_helpers.py 2005/10/10 18:11:10 1.10
@@ -13,7 +13,7 @@ def getText(nodelist):
"""gibt text aus nodelist"""
rc = ""
for node in nodelist:
- if node.nodeType == node.TEXT_NODE:
+ if node.nodeType == node.TEXT_NODE:
rc = rc + node.data
return rc
@@ -77,10 +77,10 @@ def getBib(nodelist):
for node in nodelist:
- if node.nodeType == node.ELEMENT_NODE:
- """nothing"""
+ if node.nodeType == node.ELEMENT_NODE:
+ """nothing"""
- rc = rc+"
"+str(node.nodeName)+": | "+getText(node.childNodes)+" |
"
+ rc = rc+""+str(node.nodeName)+": | "+getText(node.childNodes)+" |
"
#print rc
return rc+""
@@ -134,7 +134,7 @@ def isImageFolder(path,indexMeta):
def isVideoFolder(path,indexMeta):
"""check if folder contains images without metadata or with metadata"""
# metadaten ergeben imagefolder
- print "test video",path
+
if dirHasProperty(path,indexMeta,'media-type','video'):
return 1
@@ -153,7 +153,7 @@ def isImageFolderGuess(path):
for a in dir:
suffix=os.path.splitext(a)[1].lower()
-
+
if suffix in imagesuffixes:
return 1
@@ -191,6 +191,6 @@ def toList(fields):
def localDate():
"""gives formatted local date"""
- return strftime("%d.%m.%Y",localtime())
+ return strftime("%d.%m.%Y",localtime())