Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pippy_app.py
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2007-12-18 23:06:21 (GMT)
committer C. Scott Ananian <cscott@laptop.org>2007-12-18 23:34:18 (GMT)
commitf110813ec8f000be7929f6cd227b346aac06034a (patch)
tree6ca5762048ce7f774d61df727f254ec0594d24c0 /pippy_app.py
parent259bd3d0e475eb1996e6aca2a726ee9f6ad63846 (diff)
Work around trac #1731; also give journal read permission for our tmpdir.
Diffstat (limited to 'pippy_app.py')
-rw-r--r--pippy_app.py4
1 files changed, 3 insertions, 1 deletions
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,