Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/model/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/model/context.py')
-rw-r--r--sugar_network/model/context.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sugar_network/model/context.py b/sugar_network/model/context.py
index 85d9be8..1763d65 100644
--- a/sugar_network/model/context.py
+++ b/sugar_network/model/context.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2013 Aleksey Lim
+# Copyright (C) 2012-2014 Aleksey Lim
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -95,19 +95,19 @@ class Context(db.Resource):
})
@db.blob_property(mime_type='image/png')
- def preview(self, value):
+ def logo(self, value):
if value:
return value
if 'package' in self['type']:
return Blob({
- 'url': '/static/images/package-preview.png',
- 'blob': static.path('images', 'package-preview.png'),
+ 'url': '/static/images/package-logo.png',
+ 'blob': static.path('images', 'package-logo.png'),
'mime_type': 'image/png',
})
else:
return Blob({
- 'url': '/static/images/missing-preview.png',
- 'blob': static.path('images', 'missing-preview.png'),
+ 'url': '/static/images/missing-logo.png',
+ 'blob': static.path('images', 'missing-.png'),
'mime_type': 'image/png',
})
@@ -159,4 +159,4 @@ class Context(db.Resource):
'digest': hashlib.sha1(svg).hexdigest(),
}
props['icon'] = convert(55, 55)
- props['preview'] = convert(140, 140)
+ props['logo'] = convert(140, 140)