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" |