OK, lemme spend the weekend on that, XML namespaces are always a pleasure (*)
Meanwhile:
is best written using direct "unpacking":
Also, to avoid hard-coding options number, I found a sleek technique. The whole thing is explained here.
(*) Not the whole weekend, mind
Meanwhile:
Code:
imageExt=os.path.splitext(image.filename)[1]
imageName=os.path.splitext(image.filename)[0]
is best written using direct "unpacking":
Code:
imageName,imageExt=os.path.splitext(image.filename)
Also, to avoid hard-coding options number, I found a sleek technique. The whole thing is explained here.
(*) Not the whole weekend, mind