From f110813ec8f000be7929f6cd227b346aac06034a Mon Sep 17 00:00:00 2001 From: C. Scott Ananian Date: Tue, 18 Dec 2007 23:06:21 +0000 Subject: Work around trac #1731; also give journal read permission for our tmpdir. --- (limited to 'pippy_app.py') diff --git a/pippy_app.py b/pippy_app.py index 4caf0ba..b56a5c9 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -294,8 +294,9 @@ class PippyActivity(ViewSourceActivity): self._reset_vte() self._vte.feed(_("Creating activity bundle...")) self._vte.feed("\r\n") + TMPDIR='instance' # XXX: should be 'tmp', once trac #1731 is fixed. app_temp = mkdtemp('.activity', 'Pippy', - '%s/tmp/' % self.get_activity_root()) + os.path.join(self.get_activity_root(), TMPDIR)) sourcefile = os.path.join(app_temp, 'xyzzy.py') # invoke ourself to build the activity bundle. try: @@ -335,6 +336,7 @@ class PippyActivity(ViewSourceActivity): self._logger.debug("Couldn't find bundle: %s"%str(bundle_file)) return # something went wrong. # hand off to journal + os.chmod(app_temp, 755) jobject = datastore.create() metadata = { 'title': '%s Bundle' % title, -- cgit v0.9.1