##// END OF EJS Templates
ipy_leo: remove more @ipy stuff, use format_for_leo generic for LeoNode.v
Ville M. Vainio -
Show More
@@ -96,8 +96,8 b' class LeoNode(object, UserDict.DictMixin):'
96 96
97 97 b = property(get_b, set_b)
98 98
99 def set_val(self, val):
100 self.b = pprint.pformat(val)
99 def set_val(self, val):
100 self.b = format_for_leo(val)
101 101
102 102 v = property(lambda self: eval_node(self), set_val)
103 103
@@ -176,12 +176,10 b' def workbook_complete(obj, prev):'
176 176 def add_var(varname, value = _dummyval):
177 177 c.beginUpdate()
178 178 try:
179
180 nodename = '@ipy-var ' + varname
181 p2 = g.findNodeAnywhere(c,nodename)
179 p2 = g.findNodeAnywhere(c,varname)
182 180 if not c.positionExists(p2):
183 181 p2 = c.currentPosition().insertAfter()
184 c.setHeadString(p2,'@ipy ' + varname)
182 c.setHeadString(p2,varname)
185 183
186 184 c.setCurrentPosition(p2)
187 185 if value is _dummyval:
General Comments 0
You need to be logged in to leave comments. Login now