py_ext/PythonFileCTNMixin.py
changeset 1120 35d772ec1a76
parent 1118 2c96a2f36295
child 1124 b1705000eba1
equal deleted inserted replaced
1119:34db4294c177 1120:35d772ec1a76
    76             ("__cleanup_", "", "", self.CodeFile.cleanUpFunction),
    76             ("__cleanup_", "", "", self.CodeFile.cleanUpFunction),
    77             ("__retrieve_", "", "", self.CodeFile.retrieveFunction),
    77             ("__retrieve_", "", "", self.CodeFile.retrieveFunction),
    78             ("__publish_", "", "", self.CodeFile.publishFunction),]:
    78             ("__publish_", "", "", self.CodeFile.publishFunction),]:
    79             text += "def %s%s(%s):\n" % (func, location_str, args)
    79             text += "def %s%s(%s):\n" % (func, location_str, args)
    80             lines = code_object.gettext().strip().splitlines()
    80             lines = code_object.gettext().strip().splitlines()
    81             print lines
       
    82             if len(lines) > 0 or return_code != "":
    81             if len(lines) > 0 or return_code != "":
    83                 for line in lines:
    82                 for line in lines:
    84                     text += "    " + line + "\n"
    83                     text += "    " + line + "\n"
    85                 if return_code != "":
    84                 if return_code != "":
    86                     text += "    " + return_code + "\n"
    85                     text += "    " + return_code + "\n"