Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
authorMuriel de Souza Godoi <muriel@laptop.org>2007-11-30 20:18:35 (GMT)
committer Muriel de Souza Godoi <muriel@laptop.org>2007-11-30 20:18:35 (GMT)
commit8cc2593a14c6aa97e28d112d2e83e663699cc044 (patch)
tree7e3b372aeaa8c76cba38778f28f806e81f7ab8ef /model.py
parent0f0e6aa02e9988ab9dd3ce2a365fe546a108f0fe (diff)
Change temp folder permisson to allow activity access
Diffstat (limited to 'model.py')
-rw-r--r--model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.py b/model.py
index 816d5de..81e3c11 100644
--- a/model.py
+++ b/model.py
@@ -18,7 +18,7 @@
#
import libxml2
-from os import environ, makedirs
+from os import environ, makedirs, chmod
from os.path import join, basename, dirname, isdir, split, normpath
import logging
import random
@@ -124,7 +124,7 @@ class Model(object):
def read(self, game_file):
tmp_root = join(environ['SUGAR_ACTIVITY_ROOT'], 'instance')
temp_folder = tempfile.mkdtemp(dir=tmp_root)
-
+ chmod(temp_folder,0777)
self.data['key'] = basename(game_file)
self.data['game_file'] = game_file
self.data['path'] = temp_folder