--- a/web/ldt/ldt_utils/fileimport.py Wed Sep 15 15:20:26 2010 +0200
+++ b/web/ldt/ldt_utils/fileimport.py Tue Sep 21 04:27:08 2010 +0200
@@ -328,12 +328,10 @@
#get annotation of file ldt
- #result = xml.xpath.Evaluate("/iri/annotations/content", context=con)
result = doc.xpath("/iri/annotations/content")
for contentnode in result:
id = contentnode.attrib['id']
- # pocketfilms.utils.log.debug("ID : " + str(id))
if contents.has_key(id):
if self.author:
contentnode.set("author", unicode(self.author))
@@ -372,17 +370,14 @@
#load ldt
foldersToProcess = [self.__tempdir]
while len(foldersToProcess):
- # pocketfilms.utils.log.debug("folder stack length : "+ str(len(foldersToProcess)))
currentFolder = foldersToProcess.pop()
for entry in os.listdir(currentFolder):
if entry in settings.ZIP_BLACKLIST:
continue
entryPath = os.path.join(currentFolder, entry)
if(os.path.isdir(entryPath)):
- # pocketfilms.utils.log.debug("Push folder : " + entryPath)
foldersToProcess.append(entryPath)
elif fnmatch.fnmatch(entry, "*.ldt"):
- # pocketfilms.utils.log.debug("Process file : " + entryPath)
ldtid = self.processLdt(entryPath)
processedids.append(ldtid)
elif fnmatch.fnmatch(entry, "*.flv"):