Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-03-15 18:55:15 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-03-15 18:55:15 (GMT)
commit4dc88118d5b0269380b592a23ba744599c4fe416 (patch)
tree1cc5ab8362f82bdc8d0de1557f8366f1ec3351ee
parent88472b93c6f2c1e3f1e9c6e8bb2938c0104308eb (diff)
Removed unused code
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--server.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/server.py b/server.py
index dfc908d..05f4014 100644
--- a/server.py
+++ b/server.py
@@ -135,7 +135,6 @@ class JournalManager():
title = ''
desc = ''
comment = []
- preview = None
object_id = dsobj.object_id
if hasattr(dsobj, 'metadata'):
if 'title' in dsobj.metadata:
@@ -145,32 +144,14 @@ class JournalManager():
if 'comments' in dsobj.metadata:
try:
comment = json.loads(dsobj.metadata['comments'])
- _logger.debug(comment)
except:
comment = []
- """
- if 'mime_type' in dsobj.metadata and \
- dsobj.metadata['mime_type'][0:5] == 'image':
- preview = get_pixbuf_from_file(
- dsobj.file_path,
- int(PREVIEW[self._orientation][2] * self._scale),
- int(PREVIEW[self._orientation][3] * self._scale))
- elif 'preview' in dsobj.metadata:
- preview = get_pixbuf_from_journal(dsobj, 300, 225)
- """
else:
logging.debug('dsobj has no metadata')
results.append({'title': title, 'desc': desc, 'comment': comment,
'id': object_id})
return json.dumps(results)
- def get_json(self, query):
- """
- Receive a dictionary with the query parameters and creates
- a json with the results
- """
- pass
-
def setup_server(activity_path, port):
server = JournalHTTPServer(("", port), activity_path)