Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/client/implementations.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/client/implementations.py')
-rw-r--r--sugar_network/client/implementations.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/sugar_network/client/implementations.py b/sugar_network/client/implementations.py
index 3cd59de..f78df33 100644
--- a/sugar_network/client/implementations.py
+++ b/sugar_network/client/implementations.py
@@ -261,11 +261,7 @@ class Routes(object):
with file(data_path, 'wb') as f:
shutil.copyfileobj(blob, f)
impl = sel.copy()
- impl['layer'] = []
- impl['ctime'] = impl['mtime'] = int(time.time())
- impl['author'] = {}
- impl['notes'] = ''
- impl['tags'] = []
+ impl['mtime'] = impl['ctime']
impls.create(impl)
return cache_call(guid, size)
except Exception:
@@ -320,7 +316,9 @@ class Routes(object):
guid = basename(os.readlink(context.path('.clone')))
impl = self._volume['implementation'].get(guid)
response.meta = impl.properties([
- 'guid', 'context', 'license', 'version', 'stability', 'data'])
+ 'guid', 'ctime', 'layer', 'author', 'tags',
+ 'context', 'version', 'stability', 'license', 'notes', 'data',
+ ])
return impl.meta('data')