~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to share/extensions/jessyInk_view.py

Tags: upstream-0.48.0
ImportĀ upstreamĀ versionĀ 0.48.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
# We will use the inkex module with the predefined Effect base class.
27
27
import inkex
28
 
import gettext
29
 
_ = gettext.gettext
30
28
 
31
29
def propStrToList(str):
32
30
        list = []
61
59
 
62
60
        def effect(self):
63
61
                # Check version.
64
 
                scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
 
62
                scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.1']", namespaces=inkex.NSS)
65
63
 
66
64
                if len(scriptNodes) != 1:
67
 
                        inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n"))
 
65
                        sys.stderr.write("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Effects\" menu to install or update the JessyInk script.\n\n")
68
66
 
69
67
                rect = None
70
68
 
72
70
                        if rect == None:
73
71
                                rect = node
74
72
                        else:
75
 
                                inkex.errormsg(_("More than one object selected. Please select only one object.\n"))
 
73
                                sys.stderr.write("More than one object selected. Please select only one object.\n")
76
74
                                exit()
77
75
 
78
76
                if rect == None:
79
 
                        inkex.errormsg(_("No object selected. Please select the object you want to assign a view to and then press apply.\n"))
 
77
                        sys.stderr.write("No object selected. Please select the object you want to assign a view to and then press apply.\n")
80
78
                        exit()
81
79
 
82
80
                if not self.options.removeView: