Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ka_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'ka_controller.py')
-rw-r--r--ka_controller.py25
1 files changed, 1 insertions, 24 deletions
diff --git a/ka_controller.py b/ka_controller.py
index a1aa8c7..5603936 100644
--- a/ka_controller.py
+++ b/ka_controller.py
@@ -1,5 +1,5 @@
# coding: UTF-8
-# Copyright 2009 Thomas Jourdan
+# Copyright 2009, 2010 Thomas Jourdan
#
# 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
@@ -14,11 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-from sugar.activity import activityfactory
-import os
import gtk
-import gtk.glade
import gobject
import cairo
import model_population
@@ -335,29 +332,9 @@ class KandidController(object):
"""
ka_debug.info('on_explain_activate [%s]' % args[0].get_name())
protozoon = self.model.protozoans[name_to_index(args[0].get_name())]
-#!! folder = os.path.join(self.activity_root, 'tmp')
-#!! file_path = 'file://' + self.explain('html', protozoon, 'index', folder)
-#!! result = webbrowser.open(file_path)
-#!! ka_debug.info('webbrowser.open: [%s] %s' % (file_path, str(result)))
-#!! #Start up a new instance of the Web activity.
-#!! ka_debug.info('webbrowser.open: [%s]' % (file_path))
-#!! activityfactory.create_with_uri('org.laptop.WebActivity', file_path)
if self._details_controller is not None:
self._details_controller.start_calculation(protozoon)
-#!! def explain(self, ep_key, protozoon, base_name, base_folder):
-#!! formater = ka_extensionpoint.create('formater_'+ep_key,
-#!! base_name,
-#!! protozoon.get_unique_id(),
-#!! base_folder)
-#!! class DummyTask:
-#!! def __init__(self):
-#!! self.quit = False
-#!! protozoon.explain(DummyTask(), formater)
-#!! file_path = formater.get_absolutename(ep_key)
-#!! formater.write_html_file(file_path)
-#!! return file_path
-
def on_favorite_activate(self, *args):
"""Set best ranking for this protozoon.
pre: len(args) >= 1