summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Silver <sasilver@yahoo.com>2008-07-09 09:09:20 +0000
committersasilver <sasilver@users.sourceforge.net>2008-07-09 09:09:20 +0000
commitb2827f46bd1e53159d637354b051fd37536f06f0 (patch)
tree8f6705e35c8cadeba73ba66643b52006c22fd7fa
parentmove tolerance range towards roughness (diff)
downloadinkscape-b2827f46bd1e53159d637354b051fd37536f06f0.tar.gz
inkscape-b2827f46bd1e53159d637354b051fd37536f06f0.zip
Remove use of obsolete sodipodi:docbase from Python scripts (see bug 246721).
(bzr r6245)
-rw-r--r--share/extensions/embedimage.py9
-rw-r--r--share/extensions/svg_and_media_zip_output.py1
2 files changed, 2 insertions, 8 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py
index 80030a000..ab903a18e 100644
--- a/share/extensions/embedimage.py
+++ b/share/extensions/embedimage.py
@@ -57,19 +57,14 @@ class Embedder(inkex.Effect):
absref=node.get(inkex.addNS('absref','sodipodi'))
href=xlink
svg=self.document.getroot().xpath('/svg:svg', namespaces=inkex.NSS)[0]
- docbase=svg.get(inkex.addNS('docbase','sodipodi'))
-
path=''
#path selection strategy:
# 1. href if absolute
- # 2. sodipodi:docbase + href
- # 3. realpath-ified href
- # 4. absref, only if the above does not point to a file
+ # 2. realpath-ified href
+ # 3. absref, only if the above does not point to a file
if (href != None):
if (os.path.isabs(href)):
path=os.path.realpath(href)
- elif (docbase != None):
- path=os.path.join(docbase,href)
else:
path=os.path.realpath(href)
if (not os.path.isfile(path)):
diff --git a/share/extensions/svg_and_media_zip_output.py b/share/extensions/svg_and_media_zip_output.py
index e34f01749..cc8f7db0e 100644
--- a/share/extensions/svg_and_media_zip_output.py
+++ b/share/extensions/svg_and_media_zip_output.py
@@ -53,7 +53,6 @@ class MyEffect(inkex.Effect):
def effect(self):
ttmp_orig = self.document.getroot()
- docbase = ttmp_orig.get(inkex.addNS('docbase',u'sodipodi'),'')
docname = ttmp_orig.get(inkex.addNS('docname',u'sodipodi'))
orig_tmpfile = sys.argv[1]