File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/plugins/sextante/parameters Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,19 +40,19 @@ def setValue(self, obj):
40
40
if obj is None :
41
41
self .value = self .default
42
42
return True
43
- self .value = str (obj ).replace (ParameterString .ESCAPED_NEWLINE ,ParameterString .NEWLINE )
43
+ self .value = unicode (obj ).replace (ParameterString .ESCAPED_NEWLINE ,ParameterString .NEWLINE )
44
44
return True
45
45
46
46
def getValueAsCommandLineParameter (self ):
47
- return "\" " + str (self .value .replace (ParameterString .NEWLINE ,ParameterString .ESCAPED_NEWLINE )) + "\" "
47
+ return "\" " + unicode (self .value .replace (ParameterString .NEWLINE ,ParameterString .ESCAPED_NEWLINE )) + "\" "
48
48
49
49
def serialize (self ):
50
50
return self .__module__ .split ("." )[- 1 ] + "|" + self .name + "|" + self .description + \
51
- "|" + str (self .default )
51
+ "|" + unicode (self .default )
52
52
53
53
def deserialize (self , s ):
54
54
tokens = s .split ("|" )
55
55
return ParameterString (tokens [0 ], tokens [1 ], tokens [2 ])
56
56
57
57
def getAsScriptCode (self ):
58
- return "##" + self .name + "=string " + self .default
58
+ return "##" + self .name + "=string " + self .default
You can’t perform that action at this time.
0 commit comments