Ejemplo n.º 1
0
 def evaluate(self, expression):
     xml = StringIO.StringIO()
     xml.write("<xml>")
     result = pydevd_vars.eval_in_context(expression, self.get_namespace(), self.get_namespace())
     xml.write(pydevd_vars.var_to_xml(result, expression))
     xml.write("</xml>")
     return xml.getvalue()
 def evaluate(self, expression):
     xml = StringIO.StringIO()
     xml.write("<xml>")
     result = pydevd_vars.eval_in_context(expression, self.get_namespace(), self.get_namespace())
     xml.write(pydevd_vars.var_to_xml(result, expression))
     xml.write("</xml>")
     return xml.getvalue()
Ejemplo n.º 3
0
 def loadFullValue(self, expressions):
     xml = StringIO.StringIO()
     xml.write("<xml>")
     for expression in expressions:
         result = pydevd_vars.eval_in_context(expression, self.get_namespace(), self.get_namespace())
         xml.write(pydevd_vars.var_to_xml(result, expression, evaluate_full_value=True))
     xml.write("</xml>")
     return xml.getvalue()
Ejemplo n.º 4
0
    def evaluate(self, expression):
        xml = "<xml>"
        result = pydevd_vars.eval_in_context(expression, self.get_namespace(), self.get_namespace())

        xml += pydevd_vars.var_to_xml(result, expression)

        xml += "</xml>"

        return xml
Ejemplo n.º 5
0
    def evaluate(self, expression):
        xml = "<xml>"
        result = pydevd_vars.eval_in_context(expression, self.get_namespace(), self.get_namespace())

        xml += pydevd_vars.var_to_xml(result, expression)

        xml += "</xml>"

        return xml
Ejemplo n.º 6
0
    def getVariable(self, attributes):
        xml = "<xml>"
        valDict = pydevd_vars.resolve_var(self.get_namespace(), attributes)
        if valDict is None:
            valDict = {}

        keys = valDict.keys()

        for k in keys:
            xml += pydevd_vars.var_to_xml(valDict[k], to_string(k))

        xml += "</xml>"

        return xml
Ejemplo n.º 7
0
    def getVariable(self, attributes):
        xml = "<xml>"
        valDict = pydevd_vars.resolve_var(self.get_namespace(), attributes)
        if valDict is None:
            valDict = {}

        keys = valDict.keys()

        for k in keys:
            xml += pydevd_vars.var_to_xml(valDict[k], to_string(k))

        xml += "</xml>"

        return xml
    def getVariable(self, attributes):
        xml = StringIO.StringIO()
        xml.write("<xml>")
        val_dict = pydevd_vars.resolve_compound_var_object_fields(self.get_namespace(), attributes)
        if val_dict is None:
            val_dict = {}

        for k, val in dict_iter_items(val_dict):
            val = val_dict[k]
            evaluate_full_value = pydevd_xml.should_evaluate_full_value(val)
            xml.write(pydevd_vars.var_to_xml(val, k, evaluate_full_value=evaluate_full_value))

        xml.write("</xml>")

        return xml.getvalue()
Ejemplo n.º 9
0
    def getVariable(self, attributes):
        xml = StringIO.StringIO()
        xml.write("<xml>")
        val_dict = pydevd_vars.resolve_compound_var_object_fields(self.get_namespace(), attributes)
        if val_dict is None:
            val_dict = {}

        keys = val_dict.keys()
        for k in keys:
            val = val_dict[k]
            evaluate_full_value = pydevd_xml.should_evaluate_full_value(val)
            xml.write(pydevd_vars.var_to_xml(val, k, evaluate_full_value=evaluate_full_value))

        xml.write("</xml>")

        return xml.getvalue()
Ejemplo n.º 10
0
    def getVariable(self, attributes):
        xml = StringIO.StringIO()
        xml.write("<xml>")
        valDict = pydevd_vars.resolve_var(self.get_namespace(), attributes)
        if valDict is None:
            valDict = {}

        keys = valDict.keys()

        for k in keys:
            val = valDict[k]
            evaluate_full_value = pydevd_xml.should_evaluate_full_value(val)
            xml.write(pydevd_vars.var_to_xml(val, k, evaluate_full_value=evaluate_full_value))

        xml.write("</xml>")

        return xml.getvalue()